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
b7b372f6
Commit
b7b372f6
authored
Feb 27, 2019
by
Luis Davim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add app.kubernetes.io/version label
Signed-off-by:
Luis Davim
<
luis.davim@jet.com
>
parent
367b6fc1
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
17 additions
and
0 deletions
+17
-0
alpine-pod.yaml
...helm/testdata/testcharts/alpine/templates/alpine-pod.yaml
+1
-0
alpine-pod.yaml
...helm/testdata/testcharts/novals/templates/alpine-pod.yaml
+1
-0
alpine-pod.yaml
.../testdata/testcharts/prerelease/templates/alpine-pod.yaml
+1
-0
variables.md
docs/chart_template_guide/variables.md
+1
-0
charts_hooks.md
docs/charts_hooks.md
+1
-0
alpine-pod.yaml
docs/examples/alpine/templates/alpine-pod.yaml
+1
-0
configmap.yaml
docs/examples/nginx/templates/configmap.yaml
+1
-0
deployment.yaml
docs/examples/nginx/templates/deployment.yaml
+1
-0
post-install-job.yaml
docs/examples/nginx/templates/post-install-job.yaml
+1
-0
pre-install-secret.yaml
docs/examples/nginx/templates/pre-install-secret.yaml
+1
-0
service-test.yaml
docs/examples/nginx/templates/service-test.yaml
+1
-0
service.yaml
docs/examples/nginx/templates/service.yaml
+1
-0
create.go
pkg/chartutil/create.go
+4
-0
svc.yaml
pkg/lint/rules/testdata/albatross/templates/svc.yaml
+1
-0
No files found.
cmd/helm/testdata/testcharts/alpine/templates/alpine-pod.yaml
View file @
b7b372f6
...
...
@@ -10,6 +10,7 @@ metadata:
# The "release" convention makes it easy to tie a release to all of the
# Kubernetes resources that were created as part of that release.
app.kubernetes.io/instance
:
{{
.Release.Name | quote
}}
app.kubernetes.io/version
:
{{
.Chart.AppVersion
}}
# This makes it easy to audit chart usage.
helm.sh/chart
:
"
{{.Chart.Name}}-{{.Chart.Version}}"
values
:
{{
.Values.test.Name
}}
...
...
cmd/helm/testdata/testcharts/novals/templates/alpine-pod.yaml
View file @
b7b372f6
...
...
@@ -10,6 +10,7 @@ metadata:
# The "release" convention makes it easy to tie a release to all of the
# Kubernetes resources that were created as part of that release.
app.kubernetes.io/instance
:
{{
.Release.Name | quote
}}
app.kubernetes.io/version
:
{{
.Chart.AppVersion
}}
# This makes it easy to audit chart usage.
helm.sh/chart
:
"
{{.Chart.Name}}-{{.Chart.Version}}"
annotations
:
...
...
cmd/helm/testdata/testcharts/prerelease/templates/alpine-pod.yaml
View file @
b7b372f6
...
...
@@ -10,6 +10,7 @@ metadata:
# The "release" convention makes it easy to tie a release to all of the
# Kubernetes resources that were created as part of that release.
app.kubernetes.io/instance
:
{{
.Release.Name | quote
}}
app.kubernetes.io/version
:
{{
.Chart.AppVersion
}}
# This makes it easy to audit chart usage.
helm.sh/chart
:
"
{{.Chart.Name}}-{{.Chart.Version}}"
annotations
:
...
...
docs/chart_template_guide/variables.md
View file @
b7b372f6
...
...
@@ -114,6 +114,7 @@ metadata:
# I cannot reference .Chart.Name, but I can do $.Chart.Name
helm.sh/chart
:
"
{{
$.Chart.Name
}}-{{
$.Chart.Version
}}"
app.kubernetes.io/instance
:
"
{{
$.Release.Name
}}"
app.kubernetes.io/version
:
{{
.Chart.AppVersion
}}
app.kubernetes.io/managed-by
:
"
{{
$.Release.Service
}}"
type
:
kubernetes.io/tls
data
:
...
...
docs/charts_hooks.md
View file @
b7b372f6
...
...
@@ -129,6 +129,7 @@ metadata:
labels
:
app.kubernetes.io/managed-by
:
{{
.Release.Service | quote
}}
app.kubernetes.io/instance
:
{{
.Release.Name | quote
}}
app.kubernetes.io/version
:
{{
.Chart.AppVersion
}}
helm.sh/chart
:
"
{{.Chart.Name}}-{{.Chart.Version}}"
annotations
:
# This is what defines this resource as a hook. Without this line, the
...
...
docs/examples/alpine/templates/alpine-pod.yaml
View file @
b7b372f6
...
...
@@ -10,6 +10,7 @@ metadata:
# The "app.kubernetes.io/instance" convention makes it easy to tie a release to all of the
# Kubernetes resources that were created as part of that release.
app.kubernetes.io/instance
:
{{
.Release.Name | quote
}}
app.kubernetes.io/version
:
{{
.Chart.AppVersion
}}
# This makes it easy to audit chart usage.
helm.sh/chart
:
{{
.Chart.Name
}}
-{{ .Chart.Version }}
app.kubernetes.io/name
:
{{
template "alpine.name" .
}}
...
...
docs/examples/nginx/templates/configmap.yaml
View file @
b7b372f6
...
...
@@ -6,6 +6,7 @@ metadata:
labels
:
app.kubernetes.io/managed-by
:
{{
.Release.Service
}}
app.kubernetes.io/instance
:
{{
.Release.Name
}}
app.kubernetes.io/version
:
{{
.Chart.AppVersion
}}
helm.sh/chart
:
{{
.Chart.Name
}}
-{{ .Chart.Version }}
app.kubernetes.io/name
:
{{
template "nginx.name" .
}}
data
:
...
...
docs/examples/nginx/templates/deployment.yaml
View file @
b7b372f6
...
...
@@ -14,6 +14,7 @@ metadata:
# to all of the Kubernetes resources that were created as part of that
# release.
app.kubernetes.io/instance
:
{{
.Release.Name
}}
app.kubernetes.io/version
:
{{
.Chart.AppVersion
}}
# This makes it easy to audit chart usage.
helm.sh/chart
:
{{
.Chart.Name
}}
-{{ .Chart.Version }}
app.kubernetes.io/name
:
{{
template "nginx.name" .
}}
...
...
docs/examples/nginx/templates/post-install-job.yaml
View file @
b7b372f6
...
...
@@ -10,6 +10,7 @@ metadata:
# The "app.kubernetes.io/instance" convention makes it easy to tie a release to all of the
# Kubernetes resources that were created as part of that release.
app.kubernetes.io/instance
:
{{
.Release.Name
}}
app.kubernetes.io/version
:
{{
.Chart.AppVersion
}}
# This makes it easy to audit chart usage.
helm.sh/chart
:
{{
.Chart.Name
}}
-{{ .Chart.Version }}
app.kubernetes.io/name
:
{{
template "nginx.name" .
}}
...
...
docs/examples/nginx/templates/pre-install-secret.yaml
View file @
b7b372f6
...
...
@@ -7,6 +7,7 @@ metadata:
labels
:
app.kubernetes.io/managed-by
:
{{
.Release.Service
}}
app.kubernetes.io/instance
:
{{
.Release.Name
}}
app.kubernetes.io/version
:
{{
.Chart.AppVersion
}}
helm.sh/chart
:
{{
.Chart.Name
}}
-{{ .Chart.Version }}
app.kubernetes.io/name
:
{{
template "nginx.name" .
}}
# This declares the resource to be a hook. By convention, we also name the
...
...
docs/examples/nginx/templates/service-test.yaml
View file @
b7b372f6
...
...
@@ -5,6 +5,7 @@ metadata:
labels
:
app.kubernetes.io/managed-by
:
{{
.Release.Service
}}
app.kubernetes.io/instance
:
{{
.Release.Name
}}
app.kubernetes.io/version
:
{{
.Chart.AppVersion
}}
helm.sh/chart
:
{{
.Chart.Name
}}
-{{ .Chart.Version }}
app.kubernetes.io/name
:
{{
template "nginx.name" .
}}
annotations
:
...
...
docs/examples/nginx/templates/service.yaml
View file @
b7b372f6
...
...
@@ -10,6 +10,7 @@ metadata:
helm.sh/chart
:
{{
.Chart.Name
}}
-{{ .Chart.Version }}
app.kubernetes.io/managed-by
:
{{
.Release.Service
}}
app.kubernetes.io/instance
:
{{
.Release.Name
}}
app.kubernetes.io/version
:
{{
.Chart.AppVersion
}}
name
:
{{
template "nginx.fullname" .
}}
spec
:
# Provides options for the service so chart users have the full choice
...
...
pkg/chartutil/create.go
View file @
b7b372f6
...
...
@@ -137,6 +137,7 @@ metadata:
app.kubernetes.io/name: {{ include "<CHARTNAME>.name" . }}
helm.sh/chart: {{ include "<CHARTNAME>.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/version: {{ .Chart.AppVersion }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- with .Values.ingress.annotations }}
annotations:
...
...
@@ -176,6 +177,7 @@ metadata:
app.kubernetes.io/name: {{ include "<CHARTNAME>.name" . }}
helm.sh/chart: {{ include "<CHARTNAME>.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/version: {{ .Chart.AppVersion }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
spec:
replicas: {{ .Values.replicaCount }}
...
...
@@ -229,6 +231,7 @@ metadata:
app.kubernetes.io/name: {{ include "<CHARTNAME>.name" . }}
helm.sh/chart: {{ include "<CHARTNAME>.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/version: {{ .Chart.AppVersion }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
spec:
type: {{ .Values.service.type }}
...
...
@@ -307,6 +310,7 @@ metadata:
app.kubernetes.io/name: {{ include "<CHARTNAME>.name" . }}
helm.sh/chart: {{ include "<CHARTNAME>.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/version: {{ .Chart.AppVersion }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
annotations:
"helm.sh/hook": test-success
...
...
pkg/lint/rules/testdata/albatross/templates/svc.yaml
View file @
b7b372f6
...
...
@@ -7,6 +7,7 @@ metadata:
labels
:
app.kubernetes.io/managed-by
:
{{
.Release.Service | quote
}}
app.kubernetes.io/instance
:
{{
.Release.Name | quote
}}
app.kubernetes.io/version
:
{{
.Chart.AppVersion
}}
helm.sh/chart
:
"
{{.Chart.Name}}-{{.Chart.Version}}"
kubeVersion
:
{{
.Capabilities.KubeVersion.Major
}}
tillerVersion
:
{{
.Capabilities.TillerVersion
}}
...
...
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