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
Neither Labels nor Annotations are currently supported for CRDs #45
Comments
We also need it, we tried to work with Ambassador Edge Stack CRDs but got junk due to this issue |
@AssafKatz3 @fire-ant please upgrade to release v0.3.15. All CRD labels and annotations are preserved. Standard labels like: labels:
helm.sh/chart: operator-0.1.0
app.kubernetes.io/name: operator
app.kubernetes.io/instance: tst
app.kubernetes.io/version: "0.1.0"
app.kubernetes.io/managed-by: Helm will be generated by Helm. Thank you for reporting the issue! |
Hi, |
Ok, now i am not sure that it is a good idea to use |
@arttor |
Currently I must use:
But there is no reason why need two tools for it. |
Please don't use |
@arttor It still breaks the CRD into another directory so it still useful for it. |
I can disable crd templating for So we will always have situation when option What are benefits of having CRDs in a separate directory? |
Hi, HELM 3 requires the CRDs to be in crds directory, so splitting them is required. |
For kubebuilder/operator-sdk projecs kustomize config or helm chart does not contain CRD instances. You install operator with one chart and the create CRD instances with a separate one. |
Hi, |
I fully understand that cert-manager is not relevant for you project. But is required for most of operators which is also using this tool. |
Hi, |
It is relevant for kubebuilder projects. |
But anyway i will remove CRD templating from |
@AssafKatz3 disabled CRD templating for -crd-dir in v0.3.17. |
@arttor thanks for the. fix. I think to satisfy both use cases it might be useful to list out a set of labels which are applied to everything but crd's and filter these out at the point of rendering. we can have our cake and eat it :) |
until the follow are reviewed and merged can we remove the labels and annotations from the CRD template?
kubernetes-sigs/controller-tools#691
kubernetes-sigs/controller-tools#454
It doesnt make sense to include something which will be rejected at a later point by native tooling. Maybe better to use kustomize and point to how that could work if needed as an option
The text was updated successfully, but these errors were encountered: