Class VerificationTask
- java.lang.Object
-
- com.google.jenkins.plugins.k8sengine.VerificationTask
-
public class VerificationTask extends Object
This a task that verifies the givenManifests.ManifestObject
was applied to the Kubernetes cluster.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description KubernetesVerifiers.VerificationResult
getVerificationResult()
static boolean
verifyObjects(KubectlWrapper kubectl, List<Manifests.ManifestObject> manifestObjects, PrintStream consoleLogger, int timeoutInMinutes)
The caller's entrypoint for verifying that a list ofManifests.ManifestObject
's were applied to the Kubernetes cluster.
-
-
-
Method Detail
-
getVerificationResult
public KubernetesVerifiers.VerificationResult getVerificationResult()
- Returns:
- The
KubernetesVerifiers.VerificationResult
.
-
verifyObjects
public static boolean verifyObjects(@NonNull KubectlWrapper kubectl, @NonNull List<Manifests.ManifestObject> manifestObjects, @NonNull PrintStream consoleLogger, int timeoutInMinutes)
The caller's entrypoint for verifying that a list ofManifests.ManifestObject
's were applied to the Kubernetes cluster.- Parameters:
kubectl
- KubectlWrapper object for issuing commands to Kubernetes cluster.manifestObjects
- List ofManifests.ManifestObject
's to verify.consoleLogger
-PrintStream
for outputting results (intended to be user facing).timeoutInMinutes
- Stop retrying verification after this many minutes.- Returns:
- If the
Manifests.ManifestObject
's were successfully verified.
-
-