Skip to content

Commit

Permalink
fix(helm): Pass multiple --api-versions flags to Helm (#573) (#576)
Browse files Browse the repository at this point in the history
Helm expects the --api-versions flag to be passed for each API, not once
with a comma-separated list of APIs.
  • Loading branch information
jtdoepke authored Jul 2, 2021
1 parent caea9de commit 13ab03a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/helm/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"bytes"
"io"
"os"
"strings"

"github.com/grafana/tanka/pkg/kubernetes/manifest"
"github.com/pkg/errors"
Expand Down Expand Up @@ -78,8 +77,7 @@ type TemplateOpts struct {
func (t TemplateOpts) Flags() []string {
var flags []string

if t.APIVersions != nil {
value := strings.Join(t.APIVersions, ",")
for _, value := range t.APIVersions {
flags = append(flags, "--api-versions="+value)
}

Expand Down

0 comments on commit 13ab03a

Please sign in to comment.