-
Notifications
You must be signed in to change notification settings - Fork 1.6k
🐛 (helm/v1-alpha): Append project name to webhook service name #4808
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
🐛 (helm/v1-alpha): Append project name to webhook service name #4808
Conversation
|
Welcome @fhirscher! |
Hi @fhirscher. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
@@ -424,6 +424,9 @@ func copyFileWithHelmLogic(srcFile, destFile, subDir, projectName string, hasCon | |||
labels: | |||
{{- include "chart.labels" . | nindent 4 }}`, 1) | |||
|
|||
// Append project name to webhook service name | |||
contentStr = strings.Replace(contentStr, "name: webhook-service", "name: "+projectName+"-webhook-service", 1) |
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 @fhirscher
Thank you a lot for your contribution.
See that we are passing :
ServiceName: fmt.Sprintf("%s-webhook-service", s.config.GetProjectName()), |
So, here we are updating the CRD with, it seems right 👍
However, the usage of 1
will result in update just the first one found, so I think need to be -1
instead . WDYT?
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.
That's right. I can't find any unwanted effects when we use replaceAll()
.
Hi @fhirscher Thank you a lot for your contribution 🥇 Please, my comment above and that for which we accept your contribution, you need to sign: #4808 (comment) |
/easycla |
72bbe2c
to
8acd516
Compare
8acd516
to
fb2fd76
Compare
fb2fd76
to
5e91ffe
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.
/ok-to-test
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: camilamacedo86, fhirscher 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 |
fixes: #4807
The Helm plugin scaffolding did not adjust the service name for conversion webhooks in the CRDs. This prevented the conversion webhook from being reached.