-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
Feature/helm chart #437
Feature/helm chart #437
Conversation
5fbfee6
to
f07354d
Compare
@@ -0,0 +1,8 @@ | |||
apiVersion: cert-manager.io/v1 |
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 think we could add a condition to create this issuer or not.
Users can choose to not use cert-manager Issuer to create webhook's certs
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.
Add certissue: true
in the values file to make it optional.
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.
Why and
? Isn't {{- if .Values.certissue }}
enough ?
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.
What do you think about .Values.webhook.certManager.selfSignedIssuer.enabled
?
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.
Good point and what do you think if certissue values will look like this?
certManager:
certificate:
enabled: true
useCustomIssuer: false
# Issuer references if you want to use custom issuer
# In other case will be used selfSigned issuer
issuerRef: {}
@ganievs any update for the pull request? We would like to adopt helm chart for the increasing complexity of multiple temporal operator. |
HI @yujunz! I'm going to make the changes proposed by @alexandrevilain in a few days. |
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 update @ganievs !
I still have some comments but it starts to become really cool!
Makefile
Outdated
@@ -169,6 +169,11 @@ artifacts: kustomize | |||
$(KUSTOMIZE) build config/crd > ${RELEASE_PATH}/temporal-operator.crds.yaml | |||
$(KUSTOMIZE) build config/default > ${RELEASE_PATH}/temporal-operator.yaml | |||
|
|||
.PHONY: artifacts | |||
helm: manifests helmify |
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.
As you've overwritten the generated chart, are the new Makefile targets still useful ? IMO we can remove them.
Helmify was just a bootstraping tool, am I wrong ?
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.
Hum this target could still be revelent to push new CRDS to the helm chart when preparing release ?
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.
Seems the helmify is unnecessary in this case. Enough to copy ${RELEASE_PATH}/temporal-operator.crds.yaml
to the chart's crds directory.
@@ -0,0 +1,8 @@ | |||
apiVersion: cert-manager.io/v1 |
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.
Why and
? Isn't {{- if .Values.certissue }}
enough ?
@@ -0,0 +1,8 @@ | |||
apiVersion: cert-manager.io/v1 |
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.
What do you think about .Values.webhook.certManager.selfSignedIssuer.enabled
?
charts/temporal-operator/values.yaml
Outdated
certissue: true | ||
imagePullSecrets: [] | ||
kubernetesClusterDomain: cluster.local | ||
webhookService: |
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.
webhookService: | |
webhook: | |
service: |
What do you think ?
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.
Agree. Rendamed
Once everything is ready, could you please squash your commits ? Thanks :) |
898afb0
to
793a994
Compare
Hi @ganievs ! |
793a994
to
8e8029c
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Hi, @alexandrevilain sorry for the inconvenience. I forgot to add the chart directory. |
Hi @ganievs, thank's for the contribution. I did the the helm chart with 0.15.4 and before merging the CRD should be updated. |
HI @bjet007! Done. |
Hi @ganievs, since 0.16.0 is out, I guess the MR should be updated again to match the CRD? @alexandrevilain do you have an ETA to merge it back into master and be published at the same time than your release? |
charts/temporal-operator/values.yaml
Outdated
allowPrivilegeEscalation: false | ||
image: | ||
repository: ghcr.io/alexandrevilain/temporal-operator | ||
tag: v0.13.3 |
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.
The tag here does not match the appVersion bumped to v0.15.4
Yes sorry, it went under the radar. I have to double check for this PR content again and merge it asap. |
No problem, found a small issue with the image tag not matching the chart appVersion which lead to running 0.13.0 operator while chart is 0.15.4. |
f3191f0
to
cdc6152
Compare
Removed |
Hi @ganievs ! |
- args: {{- toYaml .Values.manager.args | nindent 8 }} | ||
command: | ||
- /manager | ||
image: {{ .Values.manager.image.repository }}:{{ .Values.manager.image.tag | default .Chart.AppVersion }} |
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.
The default .Chart.AppVersion
will not work because it lacks the v
prefix
i.e. ghcr.io/alexandrevilain/temporal-operator:0.16.0
does not exist
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.
Hi @Nepoxx! Thanks for highlight, fixed
0bcb180
to
06632b8
Compare
Signed-off-by: Shamil Ganiev <ganiev@pm.me>
06632b8
to
be10c2d
Compare
done |
be10c2d
to
1792dea
Compare
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
Thanks @ganievs ! This PR is now approved ! Waiting for the CI to pass. |
Congratulations on this great milestone!! |
Add the ability to generate the operator's chart from manifests