charts icon indicating copy to clipboard operation
charts copied to clipboard

[stable/datadog] Checking minor kubernets version breaks our deployment

Open jewilmeer opened this issue 8 years ago • 7 comments

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.

jewilmeer avatar Dec 20 '17 14:12 jewilmeer

cc: @cw-sakamoto

jewilmeer avatar Dec 20 '17 14:12 jewilmeer

@jewilmeer did you use helm template to generate the resource files? If so, what version of helm are you using.

mattfarina avatar Dec 20 '17 19:12 mattfarina

@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

cw-sakamoto avatar Dec 21 '17 06:12 cw-sakamoto

@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!

jewilmeer avatar Dec 21 '17 07:12 jewilmeer

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

fejta-bot avatar Mar 21 '18 07:03 fejta-bot

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

fejta-bot avatar Apr 20 '18 08:04 fejta-bot

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

fejta-bot avatar May 20 '18 08:05 fejta-bot