-
Notifications
You must be signed in to change notification settings - Fork 425
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
🐛 CRD generation: remove status before writing #630
🐛 CRD generation: remove status before writing #630
Conversation
485e19d
to
82dce5f
Compare
82dce5f
to
7cf088b
Compare
It's odd to include status for two reasons:
|
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 |
pkg/genall/genall.go
Outdated
@@ -147,6 +160,41 @@ func (g GenerationContext) WriteYAML(itemPath string, objs ...interface{}) error | |||
return nil | |||
} | |||
|
|||
// MarshalToYAML is based on sigs.k8s.io/yaml.Marshal, but allows for transforming the final data before writing. |
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.
typo?
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.
Well spotted - thanks!
This PR can greatly highlight and reemphasize the definition of object spec and status |
/lgtm |
/assign @mengqiy |
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.
/lgtm
/approve
/hold |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: justinsb, mengqiy 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 |
/retest |
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
7cf088b
to
4e829c2
Compare
/lgtm |
This patch updates hack/tools to use controller-tools 0.10.0. In version 0.9+ of controller-tools, an upstream patch removed the status sub-resource from the CustomResourceDefinition (CRD) for a...CRD. That's right, the "kind: CustomResourceDefinition" no longer has a status sub-resource, and that's why all of the manifests have been touched during this patch. For more info, please see kubernetes-sigs/controller-tools#630.
This patch updates hack/tools to use controller-tools 0.10.0. In version 0.9+ of controller-tools, an upstream patch removed the status sub-resource from the CustomResourceDefinition (CRD) for a...CRD. That's right, the "kind: CustomResourceDefinition" no longer has a status sub-resource, and that's why all of the manifests have been touched during this patch. For more info, please see kubernetes-sigs/controller-tools#630.
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 #456