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

Cilium hubble pointer #9967

Merged
merged 1 commit into from
Sep 30, 2020

Conversation

olemarkus
Copy link
Member

Fixes #9966

/cc @hakman @rifelpet

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. area/addons area/api size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Sep 18, 2020
@hakman
Copy link
Member

hakman commented Sep 18, 2020

Would it be a better idea to flatten the struct? Seems that the Hubble thing is the only one.
Something like: hakman@490da20

@olemarkus
Copy link
Member Author

Would it be a better idea to flatten the struct? Seems that the Hubble thing is the only one.
Something like: hakman@490da20

You would need both HubbleEnable and HubbleEnableMetrics.
The primary use case for hubble is to attach hubble-ui or similar to it and view things like service graphs and such. EnableMetrics just enables some prometheus metrics in addition like number of drops per service etc.

@hakman
Copy link
Member

hakman commented Sep 18, 2020

HubbleMetrics is an array, enable/disable can be based on number of items. In any case, was just a suggestion. Structs seems to complicate templates.

@olemarkus
Copy link
Member Author

So HubbleMetrics already determines if prometheus metrics should be enabled or not by the number of items. But one may want to enable hubble without any prometheus metrics enabled.

@olemarkus olemarkus force-pushed the cilium-hubble-pointer branch from 6640f98 to b9111c7 Compare September 18, 2020 07:24
@hakman
Copy link
Member

hakman commented Sep 18, 2020

OK, I understand. It was not meant as an alternate PR, just a suggestion.
The point was not to complicate the code unnecessarily with extra structs and pointer validations. I don't mind either way.

@olemarkus
Copy link
Member Author

Yep. Thanks for the suggestion :)
As long as one uses options builders, one can get away with quite a bit of pointer checks. More annoying that any non-nil bool pointer is evaluated as true by sprig ...

@olemarkus
Copy link
Member Author

/test pull-kops-e2e-cni-cilium

@rifelpet
Copy link
Member

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 30, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: olemarkus, rifelpet

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 30, 2020
@k8s-ci-robot k8s-ci-robot merged commit 13cbd84 into kubernetes:master Sep 30, 2020
@k8s-ci-robot k8s-ci-robot added this to the v1.19 milestone Sep 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/addons area/api cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inaccurate instructions for enabling Cilium
4 participants