File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
commands/operator-sdk/cmd Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,14 @@ For example:
60
60
return buildCmd
61
61
}
62
62
63
+ /*
64
+ * verifyDeploymentImages checks image names of pod 0 in deployments found in the provided yaml file.
65
+ * This is done because e2e tests require a namespaced manifest file to configure a namespace with
66
+ * required resources. This function is intended to identify if a user used a different image name
67
+ * for their operator in the provided yaml, which would result in the testing of the wrong operator
68
+ * image. As it is possible for a namespaced yaml to have multiple deployments (such as the vault
69
+ * operator, which depends on the etcd-operator), this is just a warning, not a fatal error.
70
+ */
63
71
func verifyDeploymentImage (yamlFile []byte , imageName string ) string {
64
72
warningMessages := ""
65
73
yamlSplit := bytes .Split (yamlFile , []byte ("\n ---\n " ))
You can’t perform that action at this time.
0 commit comments