You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 26, 2025. It is now read-only.
// Per the kubectl spec, "dry-run" strategy must be "none", "server", or "client".
47
+
// With current use cases in e2e tests, we only expect to use "server" so the other options are commented out.
48
+
dryRunStrategyArgServerstring="--dry-run=server"// submit server-side request without persisting the resource
49
+
//dryRunStrategyArgClient string = "--dry-run=client" // the resource is only validated locally but not sent to the Api-server.
50
+
//dryRunStrategyArgNone string = "--dry-run=none" // default value; submit server-side request and persist the resource
51
+
45
52
)
46
53
47
54
// applyK8sResourceManifests applies the specified manifest to the provided
48
55
// kubectl context and namespace.
49
-
funcapplyK8sResourceManifest(kubectlOptions k8s.KubectlOptions, manifestPathstring) { //nolint:unused // Note: this might come in handy for manual K8s resource operations.
funcapplyK8sResourceManifest(kubectlOptions k8s.KubectlOptions, manifestPathstring, extraArgs...string) error { //nolint:unused // Note: this might come in handy for manual K8s resource operations.
57
+
args:= []string{"apply", "-f", manifestPath}
58
+
logMsg:=fmt.Sprintf("Applying k8s manifest from path %s", manifestPath)
0 commit comments