-
Notifications
You must be signed in to change notification settings - Fork 432
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
Feature Requests: Support for Generics #844
Comments
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues 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. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
This would be really useful for my use cases too |
Should we deduplicate the issues? |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close not-planned |
@k8s-triage-robot: Closing this issue, marking it as "Not Planned". 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. |
/reopen Very interested in this. Is this on anybody's radar right now? |
@mdbooth: Reopened 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-sigs/prow repository. |
/remove-lifecycle rotten |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
This issue exists, apart from that, I don't know :) Not seeing much demand |
Beyond applying an enum validation to the condition type here, what is the benefit of using generics here? If you were to use |
- Schema for generic types are currently not supported by controller-gen, see kubernetes-sigs/controller-tools#844 - Fix bug in examples: - TaskSpec -> taskSpec - PipelineSpec -> pipelineSpec
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
- Implement script to add OpenAPI schema to Tekton CRDs using controller-gen - Add updated CRDs with OpenAPI schema - Fix issues in tests related to schema validation - Fix bug in examples: - TaskSpec -> taskSpec - PipelineSpec -> pipelineSpec - Remove schema for generic types since they are currently not supported by controller-gen, see kubernetes-sigs/controller-tools#844 - Reduce size of openAPIV3Schema to support kubectl apply - Omit schema for Pod.spec.volumes, Pod.spec.affinity, VolumeClaimTemplate - Omit schema for TaskSpec in TaskRun - Omit schema for TaskSpec in Pipeline - Omit schema for PipelineSpec in PipelineRun - Add references to schema and API version in all omitted schemas Note1: the current script 'hack/update-schemas.sh' return several errors/warnings and status code 1 from execution of the controller-gen CLI due to issues when parsing the schema from the source code. Note2: Markes were addded to avoid creating the schema for recursive types that results in invalid schemata. Related issue: kubernetes-sigs/controller-tools#585 Note3: Schema for PipelineSpec was omitted from PipelineRun to reduce size. A comment was added in the description of the field for the user to refer to the schema of Pipeline. Note4: Schema of TaskSpec was omitted from TaskRun to reduce size. A comment was added in the description of the field for the user to refer to the schema of Task.
I'm trying to define structures using generalizations
Here is one of my structs
In this scenario, I can quickly reuse the Condition type because they have the same fields
When I generate this type using the current latest version (v0.13.0), I get the following error
The text was updated successfully, but these errors were encountered: