-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chart: set overide_host_root as an env var rather than a config entry (…
- Loading branch information
Showing
9 changed files
with
41 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
charts/newrelic-infrastructure/tests/unprivileged_override_host_root_test.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
suite: Test NRIA_OVERRIDE_HOST_ROOT | ||
templates: | ||
- templates/kubelet/daemonset.yaml | ||
- templates/kubelet/scraper-configmap.yaml | ||
- templates/kubelet/agent-configmap.yaml | ||
- templates/kubelet/integrations-configmap.yaml | ||
- templates/agent-configmap.yaml | ||
- templates/secret.yaml | ||
tests: | ||
- it: NRIA_OVERRIDE_HOST_ROOT is not present in privileged mode | ||
set: | ||
licenseKey: test | ||
cluster: test | ||
privileged: true | ||
asserts: | ||
- notContains: | ||
path: spec.template.spec.containers[1].env | ||
content: | ||
name: "NRIA_OVERRIDE_HOST_ROOT" | ||
value: "" | ||
template: templates/kubelet/daemonset.yaml | ||
- it: NRIA_OVERRIDE_HOST_ROOT is present in unprivileged mode | ||
set: | ||
licenseKey: test | ||
cluster: test | ||
privileged: false | ||
asserts: | ||
- contains: | ||
path: spec.template.spec.containers[1].env | ||
content: | ||
name: "NRIA_OVERRIDE_HOST_ROOT" | ||
value: "" | ||
template: templates/kubelet/daemonset.yaml |