Class KubernetesClientProvider


  • public class KubernetesClientProvider
    extends Object
    Manages the Kubernetes client creation per cloud
    • Method Detail

      • getValidity

        @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
        public static int getValidity​(@NonNull
                                      KubernetesCloud cloud)
        Compute the hash of connection properties of the given cloud. This hash can be used to determine if a cloud was updated and a new connection is needed.
        Parameters:
        cloud - cloud to compute validity hash for
        Returns:
        client validity hash code
      • invalidate

        @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
        public static void invalidate​(String displayName)
      • invalidateAll

        @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
        public static void invalidateAll()