-
Notifications
You must be signed in to change notification settings - Fork 237
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
Should projectRef be a required field? #604
Comments
Hi @erikjoh, thanks for posting the question. In the long term, we are considering to deprecate the namespace-level Therefore we suggest to specify the project info on the resource level using Note that we are in the process of backfilling the Is specifying the project info on the resource level maybe using kpt an acceptable alternative? Let us know what you think. |
This is a strong enough reason to convince me |
@xiaobaitusi is there an issue we can track for this deprecation? Thanks! |
@zchenyu If you are referring to namespace-level |
I've noticed that several resources now require the
projectRef
field.k8s-config-connector/crds/networkservices_v1beta1_networkservicesmesh.yaml
Lines 128 to 130 in a4b6667
Whereas there are some resources that have but don't require the
projectRef
field.k8s-config-connector/crds/bigquery_v1beta1_bigquerydataset.yaml
Lines 238 to 239 in a4b6667
Based on the discussion about
projectRef
in #349 , shouldn't theprojectRef
field be optional?Since we have namespace level annotations for project I don't really see why it would be required in all cases.
For example now we must do:
to not get a validation error (
spec.projectRef: Required value
).Instead it would be nice to just have to do:
And let the field default based on the namespace annotation.
The text was updated successfully, but these errors were encountered: