Class KubernetesCredentialProvider
- java.lang.Object
-
- hudson.model.Descriptor<com.cloudbees.plugins.credentials.CredentialsProvider>
-
- com.cloudbees.plugins.credentials.CredentialsProvider
-
- com.cloudbees.jenkins.plugins.kubernetes_credentials_provider.KubernetesCredentialProvider
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<com.cloudbees.plugins.credentials.CredentialsProvider>
,Saveable
,io.fabric8.kubernetes.client.Watcher<io.fabric8.kubernetes.api.model.Secret>
,OnMaster
,IconSpec
@Extension public class KubernetesCredentialProvider extends com.cloudbees.plugins.credentials.CredentialsProvider implements io.fabric8.kubernetes.client.Watcher<io.fabric8.kubernetes.api.model.Secret>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from class com.cloudbees.plugins.credentials.CredentialsProvider
CREATE, DELETE, GROUP, MANAGE_DOMAINS, NONE, UPDATE, USE_ITEM, USE_OWN, VIEW
-
Fields inherited from class hudson.model.Descriptor
clazz
-
-
Constructor Summary
Constructors Constructor Description KubernetesCredentialProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
eventReceived(io.fabric8.kubernetes.client.Watcher.Action action, io.fabric8.kubernetes.api.model.Secret secret)
<C extends com.cloudbees.plugins.credentials.Credentials>
List<C>getCredentials(Class<C> type, ItemGroup itemGroup, Authentication authentication)
<C extends com.cloudbees.plugins.credentials.Credentials>
List<C>getCredentials(Class<C> type, Item item, Authentication authentication)
<C extends com.cloudbees.plugins.credentials.Credentials>
List<C>getCredentials(Class<C> type, Item item, Authentication authentication, List<com.cloudbees.plugins.credentials.domains.DomainRequirement> domainRequirements)
String
getIconClassName()
com.cloudbees.plugins.credentials.CredentialsStore
getStore(ModelObject object)
void
onClose(io.fabric8.kubernetes.client.WatcherException cause)
void
startWatchingForSecrets()
void
stopWatchingForSecrets()
-
Methods inherited from class com.cloudbees.plugins.credentials.CredentialsProvider
_isApplicable, all, allCredentialsDescriptors, enabled, enabled, findCredentialById, findCredentialById, getCredentialIds, getCredentialIds, getCredentials, getCredentialsDescriptors, getDescriptor, getDisplayName, getFingerprintOf, getOrCreateFingerprintOf, getScopes, hasCredentialsDescriptors, hasStores, isApplicable, isApplicable, isEnabled, isEnabled, listCredentials, listCredentials, lookupCredentials, lookupCredentials, lookupCredentials, lookupCredentials, lookupCredentials, lookupCredentials, lookupCredentials, lookupCredentials, lookupCredentials, lookupCredentials, lookupScopes, lookupStores, saveAll, snapshot, snapshot, track, track, track, trackAll, trackAll, trackAll, trackAll, trackAll, trackAll
-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
-
-
-
Method Detail
-
startWatchingForSecrets
@Initializer(after=PLUGINS_PREPARED, fatal=false) @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public void startWatchingForSecrets()
-
stopWatchingForSecrets
@Terminator(after=STARTED) @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public void stopWatchingForSecrets()
-
getCredentials
public <C extends com.cloudbees.plugins.credentials.Credentials> List<C> getCredentials(Class<C> type, ItemGroup itemGroup, Authentication authentication)
- Specified by:
getCredentials
in classcom.cloudbees.plugins.credentials.CredentialsProvider
-
getCredentials
@NonNull public <C extends com.cloudbees.plugins.credentials.Credentials> List<C> getCredentials(@NonNull Class<C> type, @NonNull Item item, Authentication authentication)
- Overrides:
getCredentials
in classcom.cloudbees.plugins.credentials.CredentialsProvider
-
getCredentials
public <C extends com.cloudbees.plugins.credentials.Credentials> List<C> getCredentials(@NonNull Class<C> type, @NonNull Item item, Authentication authentication, List<com.cloudbees.plugins.credentials.domains.DomainRequirement> domainRequirements)
- Overrides:
getCredentials
in classcom.cloudbees.plugins.credentials.CredentialsProvider
-
eventReceived
public void eventReceived(io.fabric8.kubernetes.client.Watcher.Action action, io.fabric8.kubernetes.api.model.Secret secret)
- Specified by:
eventReceived
in interfaceio.fabric8.kubernetes.client.Watcher<io.fabric8.kubernetes.api.model.Secret>
-
onClose
public void onClose(io.fabric8.kubernetes.client.WatcherException cause)
- Specified by:
onClose
in interfaceio.fabric8.kubernetes.client.Watcher<io.fabric8.kubernetes.api.model.Secret>
-
getStore
public com.cloudbees.plugins.credentials.CredentialsStore getStore(ModelObject object)
- Overrides:
getStore
in classcom.cloudbees.plugins.credentials.CredentialsProvider
-
getIconClassName
public String getIconClassName()
- Specified by:
getIconClassName
in interfaceIconSpec
- Overrides:
getIconClassName
in classcom.cloudbees.plugins.credentials.CredentialsProvider
-
-