-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[newrelic-logging] Update Docs: "fluentBit.k8sLoggingExclude" needs t…
…o be 'true' and not 'On' (#1426) <!-- Thank you for contributing to New Relic's Helm charts. Before you submit this PR we'd like to make sure you are aware of our technical requirements: * https://github.com/newrelic-experimental/helm-charts/blob/master/CONTRIBUTING.md#technical-requirements For a quick overview across what we will look at reviewing your PR, please read our review guidelines: * https://github.com/newrelic-experimental/helm-charts/blob/master/REVIEW_GUIDELINES.md Following our best practices right from the start will accelerate the review process and help get your PR merged quicker. When updates to your PR are requested, please add new commits and do not squash the history. This will make it easier to identify new changes. The PR will be squashed anyways when it is merged. Thanks. For fast feedback, please @-mention maintainers that are listed in the Chart.yaml file. Please make sure you test your changes before you push them. Once pushed, a Github Action will run across your changes and do some initial checks and linting. These checks run very quickly. Please check the results. We would like these checks to pass before we even continue reviewing your changes. --> #### Is this a new chart No. It is an existing chart named newrelic-logging #### What this PR does / why we need it: Template is failing to generate valid YAML file if there are multiple pod labels #### Which issue this PR fixes *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)* - fixes #1312 #### Special notes for your reviewer: Tested scenarios with following values and observed results in compiled yaml file: fluentBit.k8sLoggingExclude: off -> false fluentBit.k8sLoggingExclude: on -> true fluentBit.k8sLoggingExclude: true -> true fluentBit.k8sLoggingExclude: false -> false Not having the attribute fluentBit.k8sLoggingExclude -> false #### Checklist [Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.] - [x] Chart Version bumped - [x] Variables are documented in the README.md - [x] Title of the PR starts with chart name (e.g. `[mychartname]`)
- Loading branch information
1 parent
cb8b13a
commit 97477f2
Showing
7 changed files
with
54 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
dependencies: | ||
- name: common-library | ||
repository: https://helm-charts.newrelic.com | ||
version: 1.1.1 | ||
digest: sha256:3c9053021f3c22aa3cdfc6781d3498bcbedb0b973af9121b1722469744fb5162 | ||
generated: "2023-03-21T22:34:27.606266389Z" | ||
version: 1.2.0 | ||
digest: sha256:fa87cb007564a39a72739a3e850a91d6b03c0fc27a1115deac042b3ef77b4142 | ||
generated: "2024-07-17T19:29:15.951407+05:30" |
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
45 changes: 45 additions & 0 deletions
45
charts/newrelic-logging/tests/fluentbit_k8logging_exclude_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,45 @@ | ||
suite: test fluent-bit exclude logging | ||
templates: | ||
- templates/daemonset.yaml | ||
- templates/configmap.yaml | ||
- templates/persistentvolume.yaml | ||
release: | ||
name: my-release | ||
namespace: my-namespace | ||
tests: | ||
- it: K8S_LOGGING_EXCLUDE set true | ||
templates: | ||
- templates/daemonset.yaml | ||
set: | ||
licenseKey: nr_license_key | ||
fluentBit: | ||
k8sLoggingExclude: true | ||
asserts: | ||
- equal: | ||
path: spec.template.spec.containers[0].env[?(@.name=="K8S_LOGGING_EXCLUDE")].value | ||
value: "true" | ||
template: templates/daemonset.yaml | ||
- it: K8S_LOGGING_EXCLUDE set false | ||
templates: | ||
- templates/daemonset.yaml | ||
set: | ||
licenseKey: nr_license_key | ||
fluentBit: | ||
k8sLoggingExclude: false | ||
asserts: | ||
- equal: | ||
path: spec.template.spec.containers[0].env[?(@.name=="K8S_LOGGING_EXCLUDE")].value | ||
value: "false" | ||
template: templates/daemonset.yaml | ||
- it: K8S_LOGGING_EXCLUDE set value xyz and expect it to be set | ||
templates: | ||
- templates/daemonset.yaml | ||
set: | ||
licenseKey: nr_license_key | ||
fluentBit: | ||
k8sLoggingExclude: xyz | ||
asserts: | ||
- equal: | ||
path: spec.template.spec.containers[0].env[?(@.name=="K8S_LOGGING_EXCLUDE")].value | ||
value: "xyz" | ||
template: templates/daemonset.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