Skip to content

Implement values for hubble-relay to properly control sub chart values#11757

Merged
tgraf merged 1 commit intocilium:masterfrom
seanmwinn:cilium-11755
Jun 10, 2020
Merged

Implement values for hubble-relay to properly control sub chart values#11757
tgraf merged 1 commit intocilium:masterfrom
seanmwinn:cilium-11755

Conversation

@seanmwinn
Copy link
Copy Markdown
Contributor

@seanmwinn seanmwinn commented May 28, 2020

Implements hubble-relay values to properly control sub chart values using the parent chart's values file.
Documents values in the parent chart for overriding.

Fixes: #11755

Signed-off-by: Sean Winn sean@isovalent.com

@seanmwinn seanmwinn requested a review from a team as a code owner May 28, 2020 19:23
@seanmwinn seanmwinn requested a review from a team May 28, 2020 19:23
@maintainer-s-little-helper
Copy link
Copy Markdown

Please set the appropriate release note label.

Copy link
Copy Markdown
Member

@gandro gandro left a comment

Choose a reason for hiding this comment

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

Awesome, thanks a lot for doing this! I have a few questions to a few other changes that seem unrelated to the value rename itself.

You will also have to fix the values usage in the CI tests though. See:

"global.hubble.cli.enabled": "true",

Comment thread install/kubernetes/cilium/charts/hubble-cli/templates/daemonset.yaml Outdated
Comment thread install/kubernetes/cilium/charts/hubble-ui/values.yaml Outdated
Comment thread install/kubernetes/cilium/values.yaml Outdated
@seanmwinn seanmwinn requested a review from a team as a code owner May 28, 2020 21:33
@seanmwinn seanmwinn added the release-note/misc This PR makes changes that have no direct user impact. label May 28, 2020
Copy link
Copy Markdown
Contributor

@michi-covalent michi-covalent left a comment

Choose a reason for hiding this comment

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

lgtm, i have a question regarding global vs local values files.

Comment thread install/kubernetes/cilium/values.yaml Outdated
@coveralls
Copy link
Copy Markdown

coveralls commented May 28, 2020

Coverage Status

Coverage increased (+0.02%) to 37.046% when pulling c63c297 on seanmwinn:cilium-11755 into 4673688 on cilium:master.

Copy link
Copy Markdown
Member

@sayboras sayboras left a comment

Choose a reason for hiding this comment

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

You might need to change this as well https://github.com/cilium/cilium/blob/master/install/kubernetes/cilium/requirements.yaml#L10

Just want to express my opinion, I see the benefit of this change, which will help to move one step making sub charts are more self contrained and independent.

However, there is inter-depedency between sub-charts, and currently we are using global as controlling flag (e.g. hubble-cli chart checks global.hubble.enabled). So with change, the subcharts can be using values from other sub-charts directly, I feel this will make it hard to understand and manage.

Comment thread install/kubernetes/cilium/charts/hubble-cli/values.yaml Outdated
@seanmwinn
Copy link
Copy Markdown
Contributor Author

seanmwinn commented May 29, 2020

@sayboras Thanks for your feedback. We are trying to focus more on your first point which indicates this will make the charts function in a manner that allows for proper control of sub-charts. The long-term goal is to minimize the use of global values and build sub-charts that are configurable, tunable, and expose the knobs that operators are used to having available such as update strategy, tolerations, annotation, affinity, and others. Today, the parent chart's values file holds little more than configmap values and is not implemented in a manner that meets basic best practices.

@sayboras
Copy link
Copy Markdown
Member

Thanks for your feedback. We are trying to focus more on your first point which indicates this will make the charts function in a manner that allows for proper control of sub-charts. The long-term goal is to minimize the use of global values and build sub-charts that are configurable, tunable, and expose the knobs that operators are used to having available such as update strategy, tolerations, annotation, affinity, and others. Today, the parent chart's values file holds little more than configmap values and is not implemented in a manner that meets basic best practices.

@seanmwinn making sense to me 💯, thanks for your explaination 🎉

Comment thread install/kubernetes/cilium/values.yaml Outdated
Comment thread install/kubernetes/cilium/values.yaml Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

what do think about moving these two blocks all the way up, right after preflight subchart values? I think it's easier for user to follow.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nits: tag, pullpolicy are still refering to global values. I can send PR later if you are ok.

@michi-covalent
Copy link
Copy Markdown
Contributor

@seanmwinn there is another PR that's related to this: #11784

if we are including the hubble binary in the cilium docker image, does it mean we can simply get rid of the hubble-cli subchart? let's sync up with @rolinh .

Copy link
Copy Markdown
Contributor

@michi-covalent michi-covalent left a comment

Choose a reason for hiding this comment

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

i'm blocking this until we clarify if the hubble-cli chart is still needed after #11784

@seanmwinn seanmwinn changed the title Implement values for hubble-cli and hubble-relay to properly control sub chart values Implement values for hubble-relay to properly control sub chart values Jun 2, 2020
Copy link
Copy Markdown
Contributor

@michi-covalent michi-covalent left a comment

Choose a reason for hiding this comment

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

lgtm, it might conflict with #11806

@michi-covalent michi-covalent added the dont-merge/needs-rebase This PR needs to be rebased because it has merge conflicts. label Jun 2, 2020
Comment thread install/kubernetes/cilium/charts/hubble-relay/values.yaml Outdated
@maintainer-s-little-helper
Copy link
Copy Markdown

Commit f9427cb355b6b0f7e55d9809e4652374be6dda44 does not contain "Signed-off-by".

Please follow instructions provided in https://docs.cilium.io/en/stable/contributing/development/contributing_guide/#developer-s-certificate-of-origin

@maintainer-s-little-helper maintainer-s-little-helper Bot added the dont-merge/needs-sign-off The author needs to add signoff to their commits before merge. label Jun 3, 2020
Comment thread install/kubernetes/cilium/dev-test.yaml Outdated
Comment thread install/kubernetes/cilium/templates/NOTES.txt Outdated
@seanmwinn seanmwinn requested a review from a team June 4, 2020 16:43
@aanm aanm removed the dont-merge/needs-rebase This PR needs to be rebased because it has merge conflicts. label Jun 5, 2020
@aanm
Copy link
Copy Markdown
Member

aanm commented Jun 5, 2020

test-me-please

Copy link
Copy Markdown
Member

@rolinh rolinh left a comment

Choose a reason for hiding this comment

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

LGTM minus this comment.

Comment thread install/kubernetes/cilium/dev-test.yaml Outdated
Comment thread install/kubernetes/cilium/dev-test.yaml Outdated
@maintainer-s-little-helper maintainer-s-little-helper Bot removed request for a team June 5, 2020 14:06
Comment thread install/kubernetes/cilium/charts/hubble-relay/templates/deployment.yaml Outdated
Fixes: #11755

Signed-off-by: Sean Winn <sean@isovalent.com>
@aanm aanm requested review from gandro and rolinh June 9, 2020 21:34
@aanm
Copy link
Copy Markdown
Member

aanm commented Jun 9, 2020

test-me-please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-note/misc This PR makes changes that have no direct user impact.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Helm: Fix values scoping for newly implemented sub-chart

9 participants