Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nfs-subdir-external-provisioner
Project
Overview
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Rancher商店
nfs-subdir-external-provisioner
Commits
4ee25693
Commit
4ee25693
authored
May 13, 2021
by
Yonatan Kahana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use podLabels with user defined labels in deployment pod template
Signed-off-by:
Yonatan Kahana
<
yonatankahana.il@gmail.com
>
parent
ae50b6da
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
2 deletions
+12
-2
Chart.yaml
charts/nfs-subdir-external-provisioner/Chart.yaml
+1
-1
_helpers.tpl
...ts/nfs-subdir-external-provisioner/templates/_helpers.tpl
+10
-0
deployment.yaml
...nfs-subdir-external-provisioner/templates/deployment.yaml
+1
-1
No files found.
charts/nfs-subdir-external-provisioner/Chart.yaml
View file @
4ee25693
...
...
@@ -3,7 +3,7 @@ appVersion: 4.0.2
description
:
nfs-subdir-external-provisioner is an automatic provisioner that used your *already configured* NFS server, automatically creating Persistent Volumes.
name
:
nfs-subdir-external-provisioner
home
:
https://github.com/kubernetes-sigs/nfs-subdir-external-provisioner
version
:
4.0.1
0
version
:
4.0.1
1
kubeVersion
:
"
>=1.9.0-0"
sources
:
-
https://github.com/kubernetes-sigs/nfs-subdir-external-provisioner
...
...
charts/nfs-subdir-external-provisioner/templates/_helpers.tpl
View file @
4ee25693
...
...
@@ -74,6 +74,16 @@ heritage: {{ .Release.Service }}
{{- end }}
{
{
/*
Pod
template
labels
*/
}
}
{{- define "nfs-subdir-external-provisioner.podLabels" -}}
{{ include "nfs-subdir-external-provisioner.selectorLabels" . }}
{{- with .Values.labels }}
{{- toYaml . | nindent 0 }}
{{- end }}
{{- end }}
{
{
/*
Selector
labels
*/
}
}
{{- define "nfs-subdir-external-provisioner.selectorLabels" -}}
...
...
charts/nfs-subdir-external-provisioner/templates/deployment.yaml
View file @
4ee25693
...
...
@@ -21,7 +21,7 @@ spec:
scheduler.alpha.kubernetes.io/tolerations
:
'
{{
toJson
.Values.tolerations
}}'
{{
- end
}}
labels
:
{{
- include "nfs-subdir-external-provisioner.
selector
Labels" . | nindent 8
}}
{{
- include "nfs-subdir-external-provisioner.
pod
Labels" . | nindent 8
}}
spec
:
serviceAccountName
:
{{
template "nfs-subdir-external-provisioner.serviceAccountName" .
}}
{{
- if .Values.nodeSelector
}}
...
...
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