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>
  • 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 class com.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 class com.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 class com.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 interface io.fabric8.kubernetes.client.Watcher<io.fabric8.kubernetes.api.model.Secret>
    • onClose

      public void onClose(io.fabric8.kubernetes.client.WatcherException cause)
      Specified by:
      onClose in interface io.fabric8.kubernetes.client.Watcher<io.fabric8.kubernetes.api.model.Secret>
    • getStore

      public com.cloudbees.plugins.credentials.CredentialsStore getStore(ModelObject object)
      Overrides:
      getStore in class com.cloudbees.plugins.credentials.CredentialsProvider
    • getIconClassName

      public String getIconClassName()
      Specified by:
      getIconClassName in interface IconSpec
      Overrides:
      getIconClassName in class com.cloudbees.plugins.credentials.CredentialsProvider