Closed abays closed 1 week ago
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: abays, stuggi
The full list of commands accepted by this bot can be found here.
The pull request process is described here
/cherry-pick 18.0.0-proposed
@abays: once the present PR merges, I will cherry-pick it on top of 18.0.0-proposed in a new PR and assign it to you.
Going to hold this until I understand more why this is needed only recently. I don't think there is a problem with this, but I'm not sure the user should change the default as that should always get set to availableVersion via an environment variable
@abays: new pull request created: #1077
Still not understanding, I uncommented the unit test and it breaks it with the old code
+++ b/apis/core/v1beta1/openstackversionwebhook.go @@ -70,9 +70,9 @@ var webhook.Defaulter = &OpenStackVersion{} // Default implements webhook.Defaulter so a webhook will be registered for the type func (r *OpenStackVersion) Default() { openstackversionlog.Info("default", "name", r.Name)
The
OpenStackVersion
defaults struct declaresavailableVersion
as a private field. It needs to be public (capitalized) so that it can be accessed outside of the function in which the surrounding struct/object was created.