-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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): not scaffold webhooks conditionals manifests for projects without webhooks #4584
base: master
Are you sure you want to change the base?
🐛 (helm/v1-alpha): not scaffold webhooks conditionals manifests for projects without webhooks #4584
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: camilamacedo86 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 |
2532ad1
to
44121b9
Compare
44121b9
to
e1333e2
Compare
@@ -96,7 +97,7 @@ func (s *initScaffolder) Scaffold() error { | |||
DeployImages: len(imagesEnvVars) > 0, | |||
HasWebhooks: hasWebhooks, | |||
}, | |||
&templatescertmanager.Certificate{}, | |||
&templatescertmanager.Certificate{HasWebhooks: hasWebhooks}, |
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.
sorry Camila, just wondered whether it is being updated due to scaffalding webhooks conditional issues.
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.
we are passing the value HasWebhooks here because then inside of the boilerplate to generate the Certs we just generate those which related to Webhook Sever only when we have Webhooks
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.
Looks good, but why this has failed. I suspect from here whether intended.
sigs.k8s.io/kubebuilder/v4/pkg/config
Incompatible changes:
- Config.HasWebhooks: added
Regards: #4584 (review) We can either do not change the API and keep the implementation inside of the plugin. |
pkg/config/v3/config.go
Outdated
@@ -172,6 +172,23 @@ func (c Cfg) HasResource(gvk resource.GVK) bool { | |||
return found | |||
} | |||
|
|||
// HasWebhooks checks if any stored resource has associated webhooks. | |||
func (c Cfg) HasWebhooks() bool { |
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.
/hold
Remove from the interface
e1333e2
to
949225f
Compare
/hold cancel It is good to fly now. |
… with webhook conditions when webhooks are not used
949225f
to
0bbf858
Compare
Closes: #4582