Skip to content
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

Update windows_fluent_bit default to disable #1201

Merged
merged 2 commits into from Mar 12, 2024

Conversation

jatakiajanvi12
Copy link
Contributor

@jatakiajanvi12 jatakiajanvi12 commented Mar 11, 2024

This pull request primarily modifies the handling of the windows_fluent_bit_disabled variable in various scripts. The changes primarily involve reversing the logic for this variable, which changes the default behavior of the system.

Here are the key changes:

Changes to default values and conditions:

Changes to value assignment:

Changes to output:

  • build/common/installer/scripts/tomlparser-agent-config.rb: The conditions for writing the AZMON_WINDOWS_FLUENT_BIT_DISABLED environment variable in the populateSettingValuesFromConfigMap and get_command_windows methods are reversed. Now, the environment variable is written only if Fluent Bit is not disabled. [1] [2]

Changes to configuration:

  • kubernetes/container-azm-ms-agentconfig.yaml: The commented-out configuration for disabled under agent_settings.windows_fluent_bit is changed from "false" to "true". This suggests a recommended change in configuration for users who wish to modify this setting.

Changes to script logic:

  • kubernetes/linux/main.sh: The condition for a block of code is modified to also execute if AZMON_WINDOWS_FLUENT_BIT_DISABLED is not set. This ensures that the block of code will execute by default, unless the user explicitly disables Fluent Bit.

@jatakiajanvi12 jatakiajanvi12 requested a review from a team as a code owner March 11, 2024 17:55
@pfrcks
Copy link
Contributor

pfrcks commented Mar 12, 2024

can we test these changes with the yaml changes? you can copy the changes to the backdoor ama-logs.yaml you might be using https://msazure.visualstudio.com/CloudNativeCompute/_git/aks-rp/pullrequest/9685117?path=/ccp/charts/kube-control-plane/charts/kube-addons/templates/addons/partner-addons/_omsagent.yaml&_a=files

@pfrcks pfrcks merged commit afecf34 into ci_prod Mar 12, 2024
15 checks passed
jatakiajanvi12 added a commit that referenced this pull request Apr 15, 2024
* Update the default to disable

* Update to use rs for no value of env as well

---------

Co-authored-by: Janvi Jatakia (from Dev Box) <jajataki@microsoft.com>
jatakiajanvi12 added a commit that referenced this pull request Apr 15, 2024
* Update the default to disable

* Update to use rs for no value of env as well

---------

Co-authored-by: Janvi Jatakia (from Dev Box) <jajataki@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants