bugfix(tiller): replace + with - in Chart version to support Kubernetes constraint

pull/1816/head
Lachlan Evenson 8 years ago
parent 6f77869d41
commit 2e0f949d49
No known key found for this signature in database
GPG Key ID: 40B69FE8539DFAB0

@ -97,7 +97,7 @@ kind: Deployment
metadata:
name: {{ template "fullname" . }}
labels:
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
spec:
replicas: {{ .Values.replicaCount }}
template:
@ -128,7 +128,7 @@ kind: Service
metadata:
name: {{ template "fullname" . }}
labels:
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
spec:
type: {{ .Values.service.type }}
ports:

@ -32,7 +32,7 @@ func TestCreate(t *testing.T) {
}
defer os.RemoveAll(tdir)
cf := &chart.Metadata{Name: "foo"}
cf := &chart.Metadata{Name: "foo", Version: "1.0.0+a056a76"}
c, err := Create(cf, tdir)
if err != nil {
@ -83,7 +83,7 @@ func TestCreateFrom(t *testing.T) {
}
defer os.RemoveAll(tdir)
cf := &chart.Metadata{Name: "foo"}
cf := &chart.Metadata{Name: "foo", Version: "1.0.0+a056a76"}
srcdir := "./testdata/mariner"
if err := CreateFrom(cf, tdir, srcdir); err != nil {

Loading…
Cancel
Save