Class KubernetesClientProvider

java.lang.Object
org.csanchez.jenkins.plugins.kubernetes.KubernetesClientProvider

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

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