[stable/datadog] Checking minor kubernets version breaks our deployment
Is this a request for help?: Yes
Is this a BUG REPORT or FEATURE REQUEST? (choose one):
Bug report
Version of Helm and Kubernetes: 1.8.3 GKE
Which chart: datadog
What happened:
While applying the latest chart to our cluster we saw the following error:
chart parsing error: render error in "datadog/templates/clusterrolebinding.yaml": template: datadog/templates/_helpers.tpl:46:23: executing "rbac.apiVersion" at <.Capabilities.KubeVe...>: can't evaluate field Minor in type *version.Info
Which originated here
What you expected to happen:
A successful deployment
How to reproduce it (as minimally and precisely as possible):
We use a small wrapper around helm, to deploy without tiller, so our resource files are generated before being applied to the cluster. That's probably what breaks our deployment right now.
If this version constraint can be templated / ignored our deployments would work again.
Anything else we need to know:
We use https://github.com/blendle/kubecrt to deploy our resources.
cc: @cw-sakamoto
@jewilmeer did you use helm template to generate the resource files? If so, what version of helm are you using.
@jewilmeer Thanks for the report!
Since .Capabilities.KubeVersion method requires revision for each kube release, I will change it to specified apiversion in values.yaml.
FYI
- https://github.com/kubernetes/charts/blob/master/stable/concourse/values.yaml#L595
- https://github.com/kubernetes/charts/blob/master/stable/concourse/templates/worker-rolebinding.yaml#L2
@mattfarina No, kubecrt uses the helm api, but it's generated on the client before being applied to the server.
@cw-sakamoto That would be great. Tnx!
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta. /lifecycle stale
Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta. /lifecycle rotten /remove-lifecycle stale
Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta. /close