Class VerificationTask
java.lang.Object
com.google.jenkins.plugins.k8sengine.VerificationTask
This a task that verifies the given
Manifests.ManifestObject
was applied to the
Kubernetes cluster.-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 Details
-
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.
-