Class KubernetesVerifiers
- java.lang.Object
-
- com.google.jenkins.plugins.k8sengine.KubernetesVerifiers
-
public class KubernetesVerifiers extends Object
Verification adapters for verifying ManifestObjects using kubectl and returning and logging the result. Inner class,KubernetesVerifiers.VerificationResult
encapsulates the result and the class will keep a registry of Verifiers per Kubernetes API Kind and Version.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
KubernetesVerifiers.VerificationResult
Represents the result object for verification action.static interface
KubernetesVerifiers.Verifier
A verifier is an adapter that uses aKubectlWrapper
to verify that aManifests.ManifestObject
was successfully applied to the Kubernetes cluster.
-
Field Summary
Fields Modifier and Type Field Description static String
DEPLOYMENT_KIND
-
Constructor Summary
Constructors Constructor Description KubernetesVerifiers()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KubernetesVerifiers.VerificationResult
verify(KubectlWrapper kubectl, Manifests.ManifestObject object)
Verify that the Kubernetes object was successfully applied to the Kubernetes cluster.
-
-
-
Field Detail
-
DEPLOYMENT_KIND
public static final String DEPLOYMENT_KIND
- See Also:
- Constant Field Values
-
-
Method Detail
-
verify
public static KubernetesVerifiers.VerificationResult verify(KubectlWrapper kubectl, Manifests.ManifestObject object)
Verify that the Kubernetes object was successfully applied to the Kubernetes cluster.- Parameters:
kubectl
- TheKubectlWrapper
that will query the cluster.object
- TheManifests.ManifestObject
representation of the Kubernetes object to verify.- Returns:
KubernetesVerifiers.VerificationResult
that encapsulates whether the Kubernetes object was verified together with relevant log that is dependent on the type of Kubernetes object.
-
-