Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ARM
k8s
Kured
Commits
36cef41c
Commit
36cef41c
authored
Jun 30, 2020
by
Christian Kotzbauer
Browse files
split matchLabels template
Signed-off-by:
Christian Kotzbauer
<
christian.kotzbauer@gmail.com
>
parent
eb617adc
Changes
4
Hide whitespace changes
Inline
Side-by-side
charts/kured/templates/_helpers.tpl
View file @
36cef41c
...
...
@@ -62,3 +62,11 @@ chart: {{ template "kured.chart" . }}
release:
{{
.
Release.Name
}}
heritage:
{{
.
Release.Service
}}
{{
-
end
-
}}
{
{
/*
Returns
a
set
of
matchLabels
applied
.
*/
}
}
{{
-
define
"
kured.matchLabels
"
-
}}
app:
{{
template
"
kured.name
"
.
}}
release:
{{
.
Release.Name
}}
{{
-
end
-
}}
charts/kured/templates/daemonset.yaml
View file @
36cef41c
...
...
@@ -10,7 +10,7 @@ spec:
type
:
{{
.Values.updateStrategy
}}
selector
:
matchLabels
:
{{
- include "kured.
l
abels" . | nindent 6
}}
{{
- include "kured.
matchL
abels" . | nindent 6
}}
template
:
metadata
:
labels
:
...
...
charts/kured/templates/service.yaml
View file @
36cef41c
...
...
@@ -18,5 +18,5 @@ spec:
port
:
{{
.Values.service.port
}}
targetPort
:
8080
selector
:
{{
- include "kured.
l
abels" . | nindent 4
}}
{{
- include "kured.
matchL
abels" . | nindent 4
}}
{{
- end
}}
\ No newline at end of file
charts/kured/templates/servicemonitor.yaml
View file @
36cef41c
...
...
@@ -24,7 +24,7 @@ spec:
jobLabel
:
"
{{
.Release.Name
}}"
selector
:
matchLabels
:
{{
- include "kured.
l
abels" . | nindent 6
}}
{{
- include "kured.
matchL
abels" . | nindent 6
}}
namespaceSelector
:
matchNames
:
-
{{
.Release.Namespace
}}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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