-
Notifications
You must be signed in to change notification settings - Fork 24
[VC-43403] Disable events when not in cluster and only require installNamespace when using venafi-connection mode #695
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,21 +15,12 @@ import ( | |
| // after the first data gathering iteration. | ||
| func TestAgentRunOneShot(t *testing.T) { | ||
| if _, found := os.LookupEnv("GO_CHILD"); found { | ||
| // Silence the warning about missing pod name for event generation | ||
| // TODO(wallrj): This should not be required when an `--input-file` has been supplied. | ||
| t.Setenv("POD_NAME", "venafi-kubernetes-e2e") | ||
| // Silence the error about missing kubeconfig. | ||
| // TODO(wallrj): This should not be required when an `--input-file` has been supplied. | ||
| t.Setenv("KUBECONFIG", "testdata/agent/one-shot/success/kubeconfig.yaml") | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These deleted TODO comments were slightly inaccurate. What I meant was...if the agent is not running in a cluster, there's no Pod to attach events to, so the POD_NAME is not necessary. |
||
|
|
||
| os.Args = []string{ | ||
| "preflight", | ||
| "agent", | ||
| "--one-shot", | ||
| // TODO(wallrj): This should not be required when an `--input-file` has been supplied. | ||
| "--api-token=should-not-be-required", | ||
| // TODO(wallrj): This should not be required when an `--input-file` has been supplied. | ||
| "--install-namespace=default", | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And this deleted TODO comment should have said... |
||
| "--agent-config-file=testdata/agent/one-shot/success/config.yaml", | ||
| "--input-path=testdata/agent/one-shot/success/input.json", | ||
| "--output-path=/dev/null", | ||
|
|
||
This file was deleted.
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.