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
cc084df7
Unverified
Commit
cc084df7
authored
Feb 20, 2023
by
Dan
Committed by
GitHub
Feb 20, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
integrate suggestions for PDB enhancements
parent
8af604bd
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
5 deletions
+20
-5
_helpers.tpl
...ts/nfs-subdir-external-provisioner/templates/_helpers.tpl
+11
-0
poddisruptionbudget.yaml
...r-external-provisioner/templates/poddisruptionbudget.yaml
+4
-5
values.yaml
charts/nfs-subdir-external-provisioner/values.yaml
+5
-0
No files found.
charts/nfs-subdir-external-provisioner/templates/_helpers.tpl
View file @
cc084df7
...
...
@@ -62,6 +62,17 @@ Return the appropriate apiVersion for podSecurityPolicy.
{{- end -}}
{
{
/*
Return
the
appropriate
apiVersion
for
podDisruptionBudget
.
*/
}
}
{{- define "podDisruptionBudget.apiVersion" -}}
{{- if semverCompare ">=1.21-0" .Capabilities.KubeVersion.GitVersion -}}
{{- print "policy/v1" -}}
{{- else -}}
{{- print "policy/v1beta1" -}}
{{- end -}}
{{- end -}}
{
{
/*
Common
labels
*/
}
}
{{- define "nfs-subdir-external-provisioner.labels" -}}
...
...
charts/nfs-subdir-external-provisioner/templates/poddisruptionbudget.yaml
View file @
cc084df7
{{
if gt .Values.replicaCount 1.0
}}
apiVersion
:
policy/v1
{{
- if .Values.podDisruptionBudget.enabled
}}
apiVersion
:
{{
template "podDisruptionBudget.apiVersion" .
}}
kind
:
PodDisruptionBudget
metadata
:
labels
:
{{
- include "nfs-subdir-external-provisioner.labels" . | nindent 4
}}
name
:
{{
template "nfs-subdir-external-provisioner.fullname" .
}}
namespace
:
{{
.Release.Namespace
}}
spec
:
maxUnavailable
:
1
maxUnavailable
:
{{
.Values.podDisruptionBudget.maxUnavailable | default 1
}}
selector
:
matchLabels
:
{{
- include "nfs-subdir-external-provisioner.selectorLabels" . | nindent 6
}}
{{
end
}}
{{
-
end
}}
charts/nfs-subdir-external-provisioner/values.yaml
View file @
cc084df7
...
...
@@ -108,3 +108,7 @@ affinity: {}
# Additional labels for any resource created
labels
:
{}
podDisruptionBudget
:
enabled
:
false
maxUnavailable
:
1
\ No newline at end of file
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