-
Notifications
You must be signed in to change notification settings - Fork 428
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
Generated CRDs have status fields in their output set #456
Comments
Rather than:
We get:
The
https://github.com/inlets/inlets-operator/blob/master/hack/update-crds.sh |
Until I can find out how to make kubebuilder output "[]" instead of "null", this manual patch will have to exist. See also: kubernetes-sigs/controller-tools#456 Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
EDIT: I could confirm that this issue has not been fixed.
|
If that was fixed 2 months ago then why are we having issues now? Can yo advise which specific version of the tool we need to take for the fix? |
I see same issue @alexellis mentioned. Had to manually edit the yaml to replace |
the latest versions of controller-tools is still producing following section in CRD.
Reverting the commit b9fd300("sparkles: Remove status from generated CRDs") produces crd versions with empty status fields rather than null and does not produce the validation error @mcristina422 am I missing something here?? |
No, it seems like my commit is indeed wrong and did not actually accomplish what I thought it did. I think we should revert my previous PR #472 |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Hi! Can we remove status field from generation? The CRD shouldn't include the status field as an input (it's an output field). There will be problems with tools like Pulumi pulumi/pulumi-kubernetes#800 |
/remove-lifecycle rotten |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
/remove-lifecycle rotten Unless this has been fixed, it looks like people may still be interested in seeing this fixed. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
/remove-lifecycle rotten |
It's tricky to get the existing CRD types to not include the status, so we instead allow for filtering of the map just before writing. Issue kubernetes-sigs#456
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
This issue should be resolved by #630. |
@knight42: Closing this issue. In response to this:
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/test-infra repository. |
This mostly pulls in many fixes from controller-tools. Mainly controller-gen now respects type marker in types and generated the CRD manifests accordingly. This means that SSA now functions correctly with the generated manifests. Accordingly this also reenables the `revert-test`. The other changes added here are mostly whitespace changes in the manifests, the status being no longer included in the CRD manifests (see kubernetes-sigs/controller-tools#456 for details) and we seem to have forgotten to regenerate some manifests after a version bump. Fixes: rhobs#142 Signed-off-by: Jan Fajerski <[email protected]>
This mostly pulls in many fixes from controller-tools. Mainly controller-gen now respects type marker in types and generated the CRD manifests accordingly. This means that SSA now functions correctly with the generated manifests. Accordingly this also reenables the `revert-test`. The other changes added here are mostly whitespace changes in the manifests, the status being no longer included in the CRD manifests (see kubernetes-sigs/controller-tools#456 for details) and we seem to have forgotten to regenerate some manifests after a version bump. Fixes: rhobs#142 Signed-off-by: Jan Fajerski <[email protected]>
This mostly pulls in many fixes from controller-tools. Mainly controller-gen now respects type marker in types and generated the CRD manifests accordingly. This means that SSA now functions correctly with the generated manifests. Accordingly this also reenables the `revert-test`. The other changes added here are mostly whitespace changes in the manifests, the status being no longer included in the CRD manifests (see kubernetes-sigs/controller-tools#456 for details) and we seem to have forgotten to regenerate some manifests after a version bump. Fixes: rhobs#142 Signed-off-by: Jan Fajerski <[email protected]>
This mostly pulls in many fixes from controller-tools. Mainly controller-gen now respects type marker in types and generated the CRD manifests accordingly. This means that SSA now functions correctly with the generated manifests. Accordingly this also reenables the `revert-test`. The other changes added here are mostly whitespace changes in the manifests, the status being no longer included in the CRD manifests (see kubernetes-sigs/controller-tools#456 for details) and we seem to have forgotten to regenerate some manifests after a version bump. Fixes: rhobs#142 Signed-off-by: Jan Fajerski <[email protected]>
This mostly pulls in many fixes from controller-tools. Mainly controller-gen now respects type marker in types and generated the CRD manifests accordingly. This means that SSA now functions correctly with the generated manifests. Accordingly this also reenables the `revert-test`. The other changes added here are mostly whitespace changes in the manifests, the status being no longer included in the CRD manifests (see kubernetes-sigs/controller-tools#456 for details) and we seem to have forgotten to regenerate some manifests after a version bump. The patch also updates kustomize to 4.5.2 Fixes: #142 Signed-off-by: Jan Fajerski <[email protected]>
Generated CRDs have blank values in their status field. This appears to interfere with ArgoCD.
Given that manifests should not define status, it may be worth explicitly removing status from the output.
Here is some sample output from running controller-gen in the Gatekeeper repository:
The text was updated successfully, but these errors were encountered: