Refactor: Use tpl conditionals for fluent-bit region-specific config#271
Open
treyrichbourg wants to merge 1 commit intoaws-observability:mainfrom
Open
Refactor: Use tpl conditionals for fluent-bit region-specific config#271treyrichbourg wants to merge 1 commit intoaws-observability:mainfrom
treyrichbourg wants to merge 1 commit intoaws-observability:mainfrom
Conversation
564a98b to
7df3ad3
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue #, if available:
N/A (follow-up to #257)
Description of changes:
This change aims to simplify isolated region configuration using single
extraFileswithtplfunctions provided by Helm.Currently, the chart maintains separate configuration for
adcRegionExtraFilesresulting in:extraFileswill be overridden in isolated regions by the template which can be painful to debug)This change uses Helm's
tplfunction with inline conditionals invalues.yamlto dynamically render the correct default fluent-bit configuration for all regions from a single source. Currently values set toOnortrueI simply set toOfforfalsefor isolated regions but conditional can easily be used to simply remove this inline during rendering if needed. I think this is also a good chance to evaluate the parity in these configurations and if they can simply be enabled for these regions.Configuration differences were identified via diff between commercial and isolated region configs:
This change has a lot of benefits including:
extraFiles) where intent is preserved for all regionsTesting
This chart was also successfully deployed in us-west-2 and us-isob-east-1.
Validated addon activated, configmap was accurate, and logs emitting as expected. Screenshots from us-west-2 below.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.