Class KubernetesClientProvider
java.lang.Object
org.csanchez.jenkins.plugins.kubernetes.KubernetesClientProvider
Manages the Kubernetes client creation per cloud
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
getValidity
(KubernetesCloud cloud) Compute the hash of connection properties of the given cloud.static void
invalidate
(String displayName) static void
-
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()
-