-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add Ingress feature configuration #176
Conversation
4059713
to
17d8a37
Compare
14d607f
to
1d18a33
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like a bit more description on this for juju administrators to have context
charms/worker/k8s/charmcraft.yaml
Outdated
Sets the name of the secret to be used for providing default encryption to | ||
ingresses. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this a kubernetes secret? Can we clarify it's not to be confused with a juju secret
? Also, is there a namespace this secret should stay in? Is it always kube-system or something else?
Sets the name of the secret to be used for providing default encryption to | |
ingresses. | |
Sets the name of the kubernetes secret to be used for providing default encryption to | |
ingresses. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for pointing this out. I guess the namespace depends on the ingress being used.
For contour (in moonray impl) it's projectcontour-root
: https://github.com/canonical/k8s-snap/blob/main/src/k8s/pkg/k8sd/features/contour/chart.go#L24-L29
For cilium (in default impl) it's kube-system
: https://github.com/canonical/k8s-snap/blob/main/src/k8s/pkg/k8sd/features/cilium/ingress.go#L30-L38
Since I believe we're going with the default implementation which uses Cilium, it's best to say it is in the kube-system
? Or maybe we can point them to a reference page about this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yucky. that's sad
if this secret moves between implementations we shouldn't specify which namespace. We should be clear that's it is closely associated with the ingress implementation.
Who sets this secret by the way? Is the snap creating the secret (via the helm charm)? Why do I want to set this secret name? I'm sorry i have so many questions.
let's make sure the description here is generic enough to handle multiple implementations under the hood, but specific enough to let the juju admin know they need to administer something in the cluster.
if it's useless -- can we just drop the secret?
@bschimke95 do you have any feedback here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the discussion Adam! I removed that option in: 90498a3
5fb6f64
to
17b9576
Compare
1d18a33
to
38e4e23
Compare
45ce421
to
a9e8e5f
Compare
a9e8e5f
to
90498a3
Compare
90498a3
to
7233a6d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
44383e9
to
7e443ad
Compare
Test coverage for 840329d
Static code analysis report
|
Overview
Add ingress feature config options
Rationale
Users should be able to configure ingress feature options on the charm.
Note to reviewers
Should be rebased and merged after #175
default-tls-secret
is not given it will be an empty string which is being used while applying ingress manifests ink8s-snap
: