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>
,Loadable
,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
Nested classes/interfaces inherited from interface io.fabric8.kubernetes.client.Watcher
io.fabric8.kubernetes.client.Watcher.Action
-
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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) com.cloudbees.plugins.credentials.CredentialsStore
getStore
(ModelObject object) void
onClose
(io.fabric8.kubernetes.client.WatcherException cause) void
void
Methods inherited from class com.cloudbees.plugins.credentials.CredentialsProvider
_isApplicable, all, allCredentialsDescriptors, enabled, enabled, findCredentialById, findCredentialById, findCredentialById, getCredentialIds, getCredentialIds, getCredentialIdsInItem, getCredentialIdsInItemGroup, getCredentials, getCredentialsDescriptors, getCredentialsInItem, getCredentialsInItemGroup, getDescriptor, getDisplayName, getFingerprintOf, getOrCreateFingerprintOf, getScopes, hasCredentialsDescriptors, hasStores, isApplicable, isApplicable, isEnabled, isEnabled, listCredentials, listCredentials, listCredentialsInItem, listCredentialsInItemGroup, lookupCredentials, lookupCredentials, lookupCredentials, lookupCredentials, lookupCredentials, lookupCredentials, lookupCredentials, lookupCredentials, lookupCredentials, lookupCredentials, lookupCredentialsInItem, lookupCredentialsInItem, lookupCredentialsInItemGroup, lookupCredentialsInItemGroup, 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, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.fabric8.kubernetes.client.Watcher
onClose, reconnecting
-
Constructor Details
-
KubernetesCredentialProvider
public KubernetesCredentialProvider()
-
-
Method Details
-
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) - Overrides:
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
- Overrides:
getStore
in classcom.cloudbees.plugins.credentials.CredentialsProvider
-
getIconClassName
- Specified by:
getIconClassName
in interfaceIconSpec
- Overrides:
getIconClassName
in classcom.cloudbees.plugins.credentials.CredentialsProvider
-