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

Fix helm chart requirements conditions #731

Merged
merged 6 commits into from Jun 16, 2020

Conversation

sumo-drosiek
Copy link
Contributor

Description

Multiple conditions works as below:

  1. If first value is specified, it decides if the requirement is installed or not
  2. If it's not, the second is taken under consideration

due to point 1 we should change order of conditions and comment the prometheus-operator.enabled

so for prometheus:

If prometheus-operator.enabled is not set, the metrics.enabled decides if we enable prometheus or not, otherwise prometheus-operator.enabled is decisive

Testing performed
  • ci/build.sh
  • Redeploy fluentd and fluentd-events pods
  • Confirm events, logs, and metrics are coming in

Multiple conditions works as below:
1. If first value is specified, it decides if the requirement is installed or not
2. If it's not, the second is taken under consideration
@sumo-drosiek sumo-drosiek force-pushed the drosiek-fix-chart-req-conditions branch from 76bafcc to dbd5704 Compare June 15, 2020 08:18
Copy link
Contributor

@vsinghal13 vsinghal13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

sumo-drosiek and others added 2 commits June 16, 2020 09:40
Co-authored-by: Marcin Stozek <58700054+perk-sumo@users.noreply.github.com>
sumo-drosiek and others added 2 commits June 16, 2020 09:57
Co-authored-by: Marcin Stozek <58700054+perk-sumo@users.noreply.github.com>
@sumo-drosiek
Copy link
Contributor Author

https://helm.sh/docs/topics/charts/#tags-and-condition-fields-in-dependencies

Only the first valid path found in the list is evaluated and if no paths exist then the condition has no effect.

Copy link
Contributor

@frankreno frankreno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@perk-sumo perk-sumo merged commit 668136c into master Jun 16, 2020
@perk-sumo perk-sumo deleted the drosiek-fix-chart-req-conditions branch June 16, 2020 14:42
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

4 participants