-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
commands/.../test/local,pkg/test: add no-setup
flag
#770
commands/.../test/local,pkg/test: add no-setup
flag
#770
Conversation
c18d616
to
5182ece
Compare
/hold |
6aab76c
to
427b377
Compare
/hold cancel |
f912371
to
b90d041
Compare
@@ -57,6 +57,10 @@ type Framework struct { | |||
} | |||
|
|||
func setup(kubeconfigPath, namespacedManPath *string) error { | |||
namespace := "" | |||
if *singleNamespace { | |||
namespace = os.Getenv(TestNamespaceEnv) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If len(namespace) == 0
exit with error TestNamespaceEnv
must be set.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not necessary. We default to the namespace specified in the kubeconfig in that case: https://github.com/operator-framework/operator-sdk/pull/770/files/b7ca022a01320d6b684df1d9e4cec56c86151440#diff-7ebc985f9067a44fc5791eeec5c424e2R84
Co-Authored-By: AlexNPavel <[email protected]>
@AlexNPavel: PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
1 similar comment
@AlexNPavel: PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description of the change: Adds a
no-setup
flag that disables creation of resources by using empty files as the manifests and restricting the test to a single namespaceMotivation for the change: Resolves #743