Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
k8s-ingress
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
3
Merge Requests
3
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
uplex-varnish
k8s-ingress
Commits
cf7cacbb
Commit
cf7cacbb
authored
Aug 17, 2020
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduce some repetition in the "hello" example helm charts.
parent
e2060a7e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
18 deletions
+3
-18
deployment.yaml
examples/hello/charts/templates/deployment.yaml
+2
-12
service.yaml
examples/hello/charts/templates/service.yaml
+1
-6
No files found.
examples/hello/charts/templates/deployment.yaml
View file @
cf7cacbb
...
...
@@ -5,12 +5,7 @@ metadata:
labels
:
app.kubernetes.io/name
:
{{
$name
}}
app.kubernetes.io/component
:
ingressBackend
helm.sh/chart
:
{{
printf "%s-%s" $.Chart.Name $.Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-"
}}
{{
- if $.Chart.AppVersion
}}
app.kubernetes.io/version
:
{{
$.Chart.AppVersion | quote
}}
{{
- end
}}
app.kubernetes.io/managed-by
:
{{
$.Release.Service
}}
app.kubernetes.io/instance
:
{{
$.Release.Name
}}
{{
- include "viking-ingress.labels" $ | nindent 4
}}
name
:
{{
$name
}}
spec
:
replicas
:
{{
default "1" $app.replicas
}}
...
...
@@ -23,12 +18,7 @@ spec:
labels
:
app.kubernetes.io/name
:
{{
$name
}}
app.kubernetes.io/component
:
ingressBackend
helm.sh/chart
:
{{
printf "%s-%s" $.Chart.Name $.Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-"
}}
{{
- if $.Chart.AppVersion
}}
app.kubernetes.io/version
:
{{
$.Chart.AppVersion | quote
}}
{{
- end
}}
app.kubernetes.io/managed-by
:
{{
$.Release.Service
}}
app.kubernetes.io/instance
:
{{
$.Release.Name
}}
{{
- include "viking-ingress.labels" $ | nindent 8
}}
spec
:
containers
:
-
name
:
{{
$name
}}
...
...
examples/hello/charts/templates/service.yaml
View file @
cf7cacbb
...
...
@@ -5,12 +5,7 @@ metadata:
labels
:
app.kubernetes.io/name
:
{{
$name
}}
-svc
app.kubernetes.io/component
:
ingressBackend
helm.sh/chart
:
{{
printf "%s-%s" $.Chart.Name $.Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-"
}}
{{
- if $.Chart.AppVersion
}}
app.kubernetes.io/version
:
{{
$.Chart.AppVersion | quote
}}
{{
- end
}}
app.kubernetes.io/managed-by
:
{{
$.Release.Service
}}
app.kubernetes.io/instance
:
{{
$.Release.Name
}}
{{
- include "viking-ingress.labels" $ | nindent 4
}}
name
:
{{
$name
}}
-svc
spec
:
ports
:
...
...
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