Skip to content

Commit

Permalink
Merge pull request #183 from kubevirt-bot/cherry-pick-182-to-release-…
Browse files Browse the repository at this point in the history
…0.11

[release-0.11] Add priorityClassName
  • Loading branch information
kubevirt-bot authored Feb 23, 2022
2 parents 9d1ef54 + 832d565 commit fc26139
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ spec:
memory: 20Mi
securityContext:
allowPrivilegeEscalation: false
priorityClassName: system-cluster-critical
securityContext:
runAsNonRoot: true
serviceAccountName: node-maintenance-operator-controller-manager
Expand Down
1 change: 1 addition & 0 deletions config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,6 @@ spec:
requests:
cpu: 100m
memory: 20Mi
priorityClassName: system-cluster-critical
serviceAccountName: controller-manager
terminationGracePeriodSeconds: 10
3 changes: 3 additions & 0 deletions hack/csv-generator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ sed -i -E "s|image: .*node-maintenance.*|image: ${OPERATOR_IMAGE}|g" ${TMP_CSV}
# fix deployment and service account name for HCO's deployment on k8s (with cert manager certs)
sed -i "s/node-maintenance-operator-controller-manager/node-maintenance-operator/g" ${TMP_CSV}

# switch priority class
sed -i "s/priorityClassName: system-cluster-critical/priorityClassName: kubevirt-cluster-critical/g" ${TMP_CSV}

# dump CSV and CRD manifests to stdout
echo "---"
cat ${TMP_CSV}
Expand Down

0 comments on commit fc26139

Please sign in to comment.