You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What happened:
ReferencePolicy.Spec.From.Namespace is Optional.
What you expected to happen:
It should be required.
Anything else we need to know?:
It looks like the accidental inclusion of omitempty on that field resulted in an optional field. Thanks to @howardjohn for catching this.
I'm not actually sure what the appropriate mitigation is here. Our current versioning guidelines do not allow us to tighten validation. To me this seems to very clearly be a bug, and making this field required could be considered a bug fix, but I think that would also break API conversion. We could consider a new v1alpha2 release just to fix this, but that would also require an update to our versioning guidelines. If we want to fix this, we should probably do it before we hit beta. Alternatively, we could leave this indefinitely and update documentation to state that the lack of a namespace is invalid.
The text was updated successfully, but these errors were encountered:
I don't feel like we have any good options here. Issuing a v1alpaha3 just for this feels bad, updating our guidelines feels bad, leaving this indefinitely feels even worse.
I agree that this is a bug, and we should fix it before v1beta1.
The least worst option seems to me to be updating the versioning guidelines to say "in alpha only, we can tighten validation if there's a bug in the validation, only". That is, we allow fixes to this kind of bug only, and then shout loudly about it in all our comms channels.
What happened:
ReferencePolicy.Spec.From.Namespace is Optional.
What you expected to happen:
It should be required.
Anything else we need to know?:
It looks like the accidental inclusion of
omitempty
on that field resulted in an optional field. Thanks to @howardjohn for catching this.I'm not actually sure what the appropriate mitigation is here. Our current versioning guidelines do not allow us to tighten validation. To me this seems to very clearly be a bug, and making this field required could be considered a bug fix, but I think that would also break API conversion. We could consider a new v1alpha2 release just to fix this, but that would also require an update to our versioning guidelines. If we want to fix this, we should probably do it before we hit beta. Alternatively, we could leave this indefinitely and update documentation to state that the lack of a namespace is invalid.
The text was updated successfully, but these errors were encountered: