Skip to content

Commit

Permalink
add priorityClassName attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
jianzhangbjz committed Apr 17, 2019
1 parent c718ec8 commit 61dd959
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ spec:
app: olm-operator
spec:
serviceAccountName: olm-operator-serviceaccount
{{- if and .Values.installType (eq .Values.installType "ocp") }}
priorityClassName: "system-cluster-critical"
{{- end }}
containers:
- name: olm-operator
command:
Expand Down Expand Up @@ -47,9 +50,6 @@ spec:
{{- end }}
image: {{ .Values.olm.image.ref }}
imagePullPolicy: {{ .Values.olm.image.pullPolicy }}
{{- if and .Values.installType (eq .Values.installType "ocp") }}
priorityClassName: "system-cluster-critical"
{{- end }}
ports:
- containerPort: {{ .Values.olm.service.internalPort }}
- containerPort: 8081
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ spec:
app: catalog-operator
spec:
serviceAccountName: olm-operator-serviceaccount
{{- if and .Values.installType (eq .Values.installType "ocp") }}
priorityClassName: "system-cluster-critical"
{{- end }}
containers:
- name: catalog-operator
command:
Expand Down Expand Up @@ -49,9 +52,6 @@ spec:
{{- end }}
image: {{ .Values.catalog.image.ref }}
imagePullPolicy: {{ .Values.catalog.image.pullPolicy }}
{{- if and .Values.installType (eq .Values.installType "ocp") }}
priorityClassName: "system-cluster-critical"
{{- end }}
ports:
- containerPort: {{ .Values.catalog.service.internalPort }}
- containerPort: 8081
Expand Down
6 changes: 3 additions & 3 deletions deploy/chart/templates/_packageserver.deployment-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ spec:
app: packageserver
spec:
serviceAccountName: packageserver
{{- if and .Values.installType (eq .Values.installType "ocp") }}
priorityClassName: "system-cluster-critical"
{{- end }}
{{- if .Values.package.nodeSelector }}
nodeSelector:
{{- toYaml .Values.package.nodeSelector | nindent 8 }}
Expand Down Expand Up @@ -41,9 +44,6 @@ spec:
{{- end }}
image: {{ .Values.package.image.ref }}
imagePullPolicy: {{ .Values.package.image.pullPolicy }}
{{- if and .Values.installType (eq .Values.installType "ocp") }}
priorityClassName: "system-cluster-critical"
{{- end }}
ports:
- containerPort: {{ .Values.package.service.internalPort }}
livenessProbe:
Expand Down

0 comments on commit 61dd959

Please sign in to comment.