Class KubernetesClientProvider
- java.lang.Object
-
- org.csanchez.jenkins.plugins.kubernetes.KubernetesClientProvider
-
public class KubernetesClientProvider extends Object
Manages the Kubernetes client creation per cloud
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
KubernetesClientProvider.SaveableListenerImpl
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
getValidity(KubernetesCloud cloud)
Compute the hash of connection properties of the given cloud.static void
invalidate(String displayName)
static void
invalidateAll()
-
-
-
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()
-
-