You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Helm, CustomResourceDefs, and custom controllers #2925
Are there plans to fold these in explicitly to helm?
Are they already implied by the APIService entry in the ordering?
In practice, it seems there are at least some cases in which a custom resource ought to be defined early so other resources could refer to it. I have not had a chance to try this myself but a colleague has said that helm does not handle this case well.
Are we missing something?
Are there plans to enhance helm's handling of this case?
They probably should be added to the explicit ordering. The implicit ordering has CRDs last during install operations and first during delete operations
We're still waiting a little bit to see how a few things settle out with CRDs, but ordering with them is particularly tricky because of the two-stage validation/submission logic. Right now, a CRD must be installed in a separate step before anything else can use it. The reason for this is that when they are all submitted together, everything is validated up front -- before the CRD is actually installed. So any reference to the CRD in that same install will fail the validation check.
Assuming this validation/installation gotcha doesn't get solved in upstream, we'll probably need to write some special handling that does a separate install of the CRD as a pre-step before running the rest of the install.
So it is sort of a more complicated problem than it initially seems. But certainly explicitly putting it in the install order would be better than the implicit ordering even if it doesn't solve all of our outstanding issues with CRDs.
I"m seeing this issue too. even with 2.7.2.
Error: apiVersion "kubeprovision.github.com/v1" in kube-provision-node/charts/reference-templates/templates/kickstart-kpntemplate.yaml is not available
@technosophos@thomastaylor312 according to helm docs, you can install a CRD as a pre-install hook, but in practice it still fails because validation step doesn't yet recognize the 3rd party api definition. Only way I have found is installing resources that depends on the CRD as post-install hook that creates a job that trigger a container that manually install the resources using kubectl apply -f custome-resources-config.yaml so validation doesn't fail and order is right. But this seems too much complicated and also is not what the documation in helm said. I'm I missing something?
Activity
technosophos commentedon Sep 12, 2017
They probably should be added to the explicit ordering. The implicit ordering has CRDs last during install operations and first during delete operations
We're still waiting a little bit to see how a few things settle out with CRDs, but ordering with them is particularly tricky because of the two-stage validation/submission logic. Right now, a CRD must be installed in a separate step before anything else can use it. The reason for this is that when they are all submitted together, everything is validated up front -- before the CRD is actually installed. So any reference to the CRD in that same install will fail the validation check.
Assuming this validation/installation gotcha doesn't get solved in upstream, we'll probably need to write some special handling that does a separate install of the CRD as a pre-step before running the rest of the install.
So it is sort of a more complicated problem than it initially seems. But certainly explicitly putting it in the install order would be better than the implicit ordering even if it doesn't solve all of our outstanding issues with CRDs.
technosophos commentedon Sep 12, 2017
I marked this as a starter for adding CRDs to the sorter. The bigger issue we can tackle separately.
seh commentedon Sep 14, 2017
Take note, @jascott1, as both you and I have been in this area of the code recently.
fix(tiller): Adds CRD ordering
fix(tiller): Adds CRD ordering
kfox1111 commentedon Dec 1, 2017
I"m seeing this issue too. even with 2.7.2.
Error: apiVersion "kubeprovision.github.com/v1" in kube-provision-node/charts/reference-templates/templates/kickstart-kpntemplate.yaml is not available
thomastaylor312 commentedon Dec 1, 2017
@kfox1111 We only fixed the ordering. The full description of the problem is in this comment above. That appears to be what is happening
luisyonaldo commentedon Jan 6, 2018
@technosophos @thomastaylor312 according to helm docs, you can install a CRD as a pre-install hook, but in practice it still fails because validation step doesn't yet recognize the 3rd party api definition. Only way I have found is installing resources that depends on the CRD as post-install hook that creates a job that trigger a container that manually install the resources using
kubectl apply -f custome-resources-config.yamlso validation doesn't fail and order is right. But this seems too much complicated and also is not what the documation in helm said. I'm I missing something?bacongobbler commentedon Jan 6, 2018
I believe that issue is being tracked in #2994. :)
use only isito chart to deploy all components (#2461)
use only isito chart to deploy all components (#2461)