Skip to content

Commit

Permalink
update(yaml): update priority class name for csi driver (#381)
Browse files Browse the repository at this point in the history
* update(yaml): update priority class name for csi driver

use cstor in priority class name to avoid naming clash between
different storage engine.


* give option to change priority class value

now user can set priority value in priority class
use csiController.priorityClass.value and
csiNode.priorityClass.value key to define the values

Signed-off-by: Shovan Maity <shovan.cse91@gmail.com>
  • Loading branch information
shovanmaity authored Sep 9, 2021
1 parent e26eb0a commit 0f32713
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
8 changes: 4 additions & 4 deletions deploy/csi-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -923,15 +923,15 @@ roleRef:
apiVersion: scheduling.k8s.io/v1
kind: PriorityClass
metadata:
name: openebs-csi-controller-critical
name: openebs-cstor-csi-controller-critical
value: 900000000
globalDefault: false
description: "This priority class should be used for the CStor CSI driver controller deployment only."
---
apiVersion: scheduling.k8s.io/v1
kind: PriorityClass
metadata:
name: openebs-csi-node-critical
name: openebs-cstor-csi-node-critical
value: 900001000
globalDefault: false
description: "This priority class should be used for the CStor CSI driver node deployment only."
Expand Down Expand Up @@ -963,7 +963,7 @@ spec:
openebs.io/component-name: openebs-cstor-csi-controller
openebs.io/version: dev
spec:
priorityClassName: openebs-csi-controller-critical
priorityClassName: openebs-cstor-csi-controller-critical
serviceAccount: openebs-cstor-csi-controller-sa
containers:
- name: csi-resizer
Expand Down Expand Up @@ -1217,7 +1217,7 @@ spec:
openebs.io/component-name: openebs-cstor-csi-node
openebs.io/version: dev
spec:
priorityClassName: openebs-csi-node-critical
priorityClassName: openebs-cstor-csi-node-critical
serviceAccount: openebs-cstor-csi-node-sa
hostNetwork: true
containers:
Expand Down
2 changes: 1 addition & 1 deletion deploy/helm/charts/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: CStor-Operator helm chart for Kubernetes
type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 2.12.1
version: 2.12.2
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
appVersion: 2.12.0
Expand Down
4 changes: 2 additions & 2 deletions deploy/helm/charts/templates/priority-class.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: scheduling.k8s.io/v1
kind: PriorityClass
metadata:
name: {{ template "cstor.csiController.priorityClassName" . }}
value: 900000000
value: {{ .Values.csiController.priorityClass.value }}
globalDefault: false
description: "This priority class should be used for the CStor CSI driver controller deployment only."
{{- end }}
Expand All @@ -13,7 +13,7 @@ apiVersion: scheduling.k8s.io/v1
kind: PriorityClass
metadata:
name: {{ template "cstor.csiNode.priorityClassName" . }}
value: 900001000
value: {{ .Values.csiNode.priorityClass.value }}
globalDefault: false
description: "This priority class should be used for the CStor CSI driver node deployment only."
{{- end }}
2 changes: 2 additions & 0 deletions deploy/helm/charts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ csiController:
priorityClass:
create: true
name: cstor-csi-controller-critical
value: 900000000
componentName: "openebs-cstor-csi-controller"
resizer:
name: "csi-resizer"
Expand Down Expand Up @@ -165,6 +166,7 @@ csiNode:
priorityClass:
create: true
name: cstor-csi-node-critical
value: 900001000
componentName: "openebs-cstor-csi-node"
driverRegistrar:
name: "csi-node-driver-registrar"
Expand Down

0 comments on commit 0f32713

Please sign in to comment.