cleanup helm chart#16896
Conversation
errordeveloper
left a comment
There was a problem hiding this comment.
Thanks very much, overall this looks good to me!
There was a problem hiding this comment.
remove redundant
namespace: {{ .Release.Namespace }}
I mentioned it in the other PR, but this is unfortunately not redundant. This is needed for correct use of helm template --namespace, see helm/helm#3553 (comment)
We are relying on the fact that one can kubectl create the generated YAML without an explicit -n in the docs, so this will break existing workflows.
|
Thank @gandro for clearify. |
There was a problem hiding this comment.
From a first glance, this looks correct now, thank you! It will require some manual testing to ensure there are no significant differences in the output.
One thing we need to document (because it's a breaking change) is the removal of the Capabilities values. Please add an upgrade note here:
https://github.com/cilium/cilium/blob/master/Documentation/operations/upgrade.rst#111-upgrade-notes
It could be something like:
- The
CapabilitiesHelm value has been removed. When usinghelm templateto generate the Kubernetes manifest for a specific Kubernetes version, please use the--kube-versionflag (introduced in Helm 3.6.0) instead.
|
|
gandro
left a comment
There was a problem hiding this comment.
Starting to look good. A few minor things left that I noticed while comparing the helm template output
install/kubernetes/cilium/templates/cilium-agent/daemonset.yaml
Outdated
Show resolved
Hide resolved
install/kubernetes/cilium/templates/clustermesh-apiserver/deployment.yaml
Outdated
Show resolved
Hide resolved
install/kubernetes/cilium/templates/clustermesh-apiserver/deployment.yaml
Outdated
Show resolved
Hide resolved
qmonnet
left a comment
There was a problem hiding this comment.
Looks good overall, although my knowledge of the Helm chart is limited and I'm not able to provide an in-depth review of the changes.
Here are a few nitpicks below. In addition,
- Please make sure to update the Helm reference in the Documentation (see comment below),
- And please update your commit log message regarding the
remove redundant namespace: {{ .Release.Namespace }}, given that, if I understand the discussion with Sebastian, this is in fact not the case.
install/kubernetes/cilium/templates/cilium-agent/clusterrole.yaml
Outdated
Show resolved
Hide resolved
install/kubernetes/cilium/templates/cilium-preflight/clusterrole.yaml
Outdated
Show resolved
Hide resolved
install/kubernetes/cilium/templates/cilium-agent/daemonset.yaml
Outdated
Show resolved
Hide resolved
|
Travis on ARM failed with a transient error, should not block this PR: https://app.travis-ci.com/github/cilium/cilium/jobs/526175793 |
|
test-me-please |
christarazi
left a comment
There was a problem hiding this comment.
A few more git history related comments.
There was a problem hiding this comment.
This change is supposed to be part of the 1st commit but is part of the 3rd?
There was a problem hiding this comment.
@christarazi The 1st commit also contains priorityClassName changes, so I decided to squash 3rd commit into 1st commit.
I also update 1st commit message to match w/ this PR description.
There was a problem hiding this comment.
This change is supposed to be part of the 1st commit but is part of the 3rd?
There was a problem hiding this comment.
This change is supposed to be part of the 1st commit but is part of the 3rd?
|
|
test-me-please |
* remove .Values.Capabilities in favor of --kube-version in helm template * using `cilium.image` template to unify image render * support `priorityClassName` in all components * move `hubble-metrics` service & `hubble` ServiceMonitor to seperated file (in hubble folder) * make `name` as the first attribute of object * remove unnecessary parentheses * using `nindent` instead of `indent` * using `default` and `ternary` instead of `if-else` * using `with` instead of `if` when it's possible Signed-off-by: Đặng Minh Dũng <dungdm93@live.com>
Signed-off-by: Đặng Minh Dũng <dungdm93@live.com>
|
@christarazi I rebased from master. But seem |
qmonnet
left a comment
There was a problem hiding this comment.
Not sure why you need another review from me, but it still looks good.
|
@qmonnet sorry, I click to request review from @errordeveloper but accident click into your name :) |
|
test-me-please |
|
Ilya is currently out of office, given that his feedback has been addressed I think we can take his earlier comment as an approval. I'm unassigning him. |
|
Considering Ilya's implicit approval (see above) and that all tests have passed, I'm labelling as |
This is next part of refactoring helm chart #16792 with the following changes:
remove
.Values.Capabilitiesin favor of--kube-versionin helm template, as discussion in #16752Unify image using
cilium.imagetemplate.cilium/install/kubernetes/cilium/templates/cilium-agent/daemonset.yaml
Line 226 in c95f6fd
Currently, configuring image is quite long, and not consistent between components (some support digest, some are not). By using
cilium.imagetemplate, it's make configuring image shorter, easier to read and consistent between components.support
priorityClassName.Currently, some components (e.g agent) support define
priorityClassNamein values file, but not using in template :|, other components (e.g hubble-ui, hublle-relay) are not supportpriorityClassName. So, with this MR,priorityClassNameis supported in all components.move
hubble-metricsservice &hubbleServiceMonitor to seperated file (inhubblefolder)remove unnecessary parentheses

make
nameas the first attribute of objectusing

nindentinstead ofindentusing default and ternary instead of if-else

using

withinstead ofifwhen it's possibleSigned-off-by: Đặng Minh Dũng dungdm93@live.com