Class 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>
    • Constructor Detail

      • KubernetesCredentialProvider

        public KubernetesCredentialProvider()
    • Method Detail

      • 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 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