Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
helm3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
helm3
Commits
2e0f949d
Unverified
Commit
2e0f949d
authored
Jan 11, 2017
by
Lachlan Evenson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix(tiller): replace + with - in Chart version to support Kubernetes constraint
parent
6f77869d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
create.go
pkg/chartutil/create.go
+2
-2
create_test.go
pkg/chartutil/create_test.go
+2
-2
No files found.
pkg/chartutil/create.go
View file @
2e0f949d
...
...
@@ -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:
...
...
pkg/chartutil/create_test.go
View file @
2e0f949d
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment