Skip to content

Commit

Permalink
refactor(chart): refactor implementation for adding priorityClassName
Browse files Browse the repository at this point in the history
Signed-off-by: Niladri Halder <[email protected]>
  • Loading branch information
niladrih committed Jul 4, 2024
1 parent 4eb5a65 commit fc47e47
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions deploy/helm/charts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ helm install openebs-localpv openebs-localpv/localpv-provisioner --namespace ope
| `localpv.replicas` | No. of LocalPV Provisioner replica | `1` |
| `localpv.enableLeaderElection` | Enable leader election | `true` |
| `localpv.affinity` | LocalPV Provisioner pod affinity | `{}` |
| `localpv.priorityClassName` | Sets priorityClassName in pod | `""` |
| `rbac.create` | Enable RBAC Resources | `true` |
| `rbac.pspEnabled` | Create pod security policy resources | `false` |

Expand Down
2 changes: 1 addition & 1 deletion deploy/helm/charts/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{ with .Values.priorityClassName }}
{{- with .Values.localpv.priorityClassName }}
priorityClassName: {{ . }}
{{- end }}
{{- with .Values.imagePullSecrets }}
Expand Down
5 changes: 2 additions & 3 deletions deploy/helm/charts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,12 @@ localpv:
tolerations: []
affinity: {}
securityContext: {}
## Sets priorityClassName in pod
priorityClassName: ""

imagePullSecrets:
# - name: img-pull-secret

## Sets priorityClassName in pod
priorityClassName: ""

podSecurityContext: {}
# fsGroup: 2000

Expand Down

0 comments on commit fc47e47

Please sign in to comment.