-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Move CRDs back to root folder #1785
Comments
@leviplj this has gone back and forth. They were moved out with #1472 due to the opposite requests in #1430 and #1468.
Yep
We're still doing that with them in the templates folder. It does make it harder because we need to make sure we don't accidentally remove any go templating we put in place. I'm going to play with a blank setup again and think on this a bit. Thank you for filing your issue and your patience. |
@leviplj how do you install the chart and the WorkflowTemplate at once? That is not a supported/provided use case on our helm charts here :-) |
@mkilchhofer I was using This would be an example of the structure of the charts we have.
|
+1 for this. As it stands, CRDs are not installed when Argo Workflows is installed as a dependency (I have a custom chart that builds on top of Argo Workflows to create some base workflow templates). Putting the |
When the CRDs are placed in the root folder, helm cannot upgrade them. We had multiple issues where users had old CRDs installed. |
Well, that's a workaround to fix the problem, we are using that for the time being. |
You forgot that updates to CRDs are sometimes due to kubernetes and not as applications extens them. Eg.:
|
@leviplj I've been thinking on this one a lot lately as it actually just affected my day job. Unfortunately, even Helm knows this is an issue and states it in their docs:
We understand the There have been a few PRs to github.com/helm/helm that have stalled. Versioning CRDs is a choice but not an easy one, per se. Our current choice is the approach with the most maintainable perspective. From a consumer perspective it is still not an intuitive or easy one. I'm going to discuss this more with other maintainers. Please know we are not ignoring you. |
…es folder Closes argoproj#1785 Borrowed `Custom resource definition` from argo-cd helm chart README and added it to argo-workflows helm chart README Signed-off-by: jmeridth <jmeridth@gmail.com>
Is your feature request related to a problem?
With
crds
in the templates folder, we can't installargo-workflows
and resources that use its custom resources (eg.WorkflowTemplate
) on a single helm install.From what I understood, this was done to avoid problems with updates to the CRDs when the chart was already installed.
Related helm chart
argo-workflows
Describe the solution you'd like
According to Helm best practices, the custom resources should be in a folder called
crds
on the root directory of the chart.That would allow the installation and usage of the CRDs on a single run.
To solve the problem with CRD updates, I'd suggest we create a new version of the CRD with the changes when needed.
Describe alternatives you've considered
No response
Additional context
When installing argo-workflows and a resource of kind WorkflowTemplate in a single run:
The text was updated successfully, but these errors were encountered: