From 61f2a024cfdf1f90e061aafce167e280ccb0a7ad Mon Sep 17 00:00:00 2001 From: Evan Cordell Date: Wed, 20 Mar 2019 17:09:53 -0400 Subject: [PATCH] chore(deploy): set priorityclass on olm pods --- .../templates/0000_50_olm_07-olm-operator.deployment.yaml | 3 +++ .../templates/0000_50_olm_08-catalog-operator.deployment.yaml | 3 +++ deploy/chart/templates/_packageserver.deployment-spec.yaml | 3 +++ manifests/0000_50_olm_07-olm-operator.deployment.yaml | 1 + manifests/0000_50_olm_08-catalog-operator.deployment.yaml | 1 + manifests/0000_50_olm_11-olm-operators.configmap.yaml | 1 + .../0000_50_olm_16-packageserver.clusterserviceversion.yaml | 1 + manifests/0000_50_olm_17-packageserver.deployment.yaml | 1 + 8 files changed, 14 insertions(+) diff --git a/deploy/chart/templates/0000_50_olm_07-olm-operator.deployment.yaml b/deploy/chart/templates/0000_50_olm_07-olm-operator.deployment.yaml index 1ba510f360..86d7cca6dc 100644 --- a/deploy/chart/templates/0000_50_olm_07-olm-operator.deployment.yaml +++ b/deploy/chart/templates/0000_50_olm_07-olm-operator.deployment.yaml @@ -47,6 +47,9 @@ 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 diff --git a/deploy/chart/templates/0000_50_olm_08-catalog-operator.deployment.yaml b/deploy/chart/templates/0000_50_olm_08-catalog-operator.deployment.yaml index 96a15249ae..902384f521 100644 --- a/deploy/chart/templates/0000_50_olm_08-catalog-operator.deployment.yaml +++ b/deploy/chart/templates/0000_50_olm_08-catalog-operator.deployment.yaml @@ -49,6 +49,9 @@ 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 diff --git a/deploy/chart/templates/_packageserver.deployment-spec.yaml b/deploy/chart/templates/_packageserver.deployment-spec.yaml index f0d68f2ce8..6ad714f38f 100644 --- a/deploy/chart/templates/_packageserver.deployment-spec.yaml +++ b/deploy/chart/templates/_packageserver.deployment-spec.yaml @@ -41,6 +41,9 @@ 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: diff --git a/manifests/0000_50_olm_07-olm-operator.deployment.yaml b/manifests/0000_50_olm_07-olm-operator.deployment.yaml index 0f868faa76..d047565c03 100644 --- a/manifests/0000_50_olm_07-olm-operator.deployment.yaml +++ b/manifests/0000_50_olm_07-olm-operator.deployment.yaml @@ -31,6 +31,7 @@ spec: - /var/run/secrets/serving-cert/tls.key image: quay.io/operator-framework/olm@sha256:4b7dec341fc754fdd2c8784ca7d81747ebbb2b87866b9e61ebbebc8c5614cfdc imagePullPolicy: IfNotPresent + priorityClassName: "system-cluster-critical" ports: - containerPort: 8080 - containerPort: 8081 diff --git a/manifests/0000_50_olm_08-catalog-operator.deployment.yaml b/manifests/0000_50_olm_08-catalog-operator.deployment.yaml index 68d20c5be6..4ea8b5e7e8 100644 --- a/manifests/0000_50_olm_08-catalog-operator.deployment.yaml +++ b/manifests/0000_50_olm_08-catalog-operator.deployment.yaml @@ -34,6 +34,7 @@ spec: - /var/run/secrets/serving-cert/tls.key image: quay.io/operator-framework/olm@sha256:4b7dec341fc754fdd2c8784ca7d81747ebbb2b87866b9e61ebbebc8c5614cfdc imagePullPolicy: IfNotPresent + priorityClassName: "system-cluster-critical" ports: - containerPort: 8080 - containerPort: 8081 diff --git a/manifests/0000_50_olm_11-olm-operators.configmap.yaml b/manifests/0000_50_olm_11-olm-operators.configmap.yaml index 912a358322..b1dfc2601e 100644 --- a/manifests/0000_50_olm_11-olm-operators.configmap.yaml +++ b/manifests/0000_50_olm_11-olm-operators.configmap.yaml @@ -102,6 +102,7 @@ data: - openshift-operator-lifecycle-manager image: quay.io/operator-framework/olm@sha256:4b7dec341fc754fdd2c8784ca7d81747ebbb2b87866b9e61ebbebc8c5614cfdc imagePullPolicy: IfNotPresent + priorityClassName: "system-cluster-critical" ports: - containerPort: 5443 livenessProbe: diff --git a/manifests/0000_50_olm_16-packageserver.clusterserviceversion.yaml b/manifests/0000_50_olm_16-packageserver.clusterserviceversion.yaml index 4efd0485d4..7691696bc1 100644 --- a/manifests/0000_50_olm_16-packageserver.clusterserviceversion.yaml +++ b/manifests/0000_50_olm_16-packageserver.clusterserviceversion.yaml @@ -94,6 +94,7 @@ spec: - openshift-operator-lifecycle-manager image: quay.io/operator-framework/olm@sha256:4b7dec341fc754fdd2c8784ca7d81747ebbb2b87866b9e61ebbebc8c5614cfdc imagePullPolicy: IfNotPresent + priorityClassName: "system-cluster-critical" ports: - containerPort: 5443 livenessProbe: diff --git a/manifests/0000_50_olm_17-packageserver.deployment.yaml b/manifests/0000_50_olm_17-packageserver.deployment.yaml index b108a5d4fa..679c62f34a 100644 --- a/manifests/0000_50_olm_17-packageserver.deployment.yaml +++ b/manifests/0000_50_olm_17-packageserver.deployment.yaml @@ -36,6 +36,7 @@ spec: - openshift-operator-lifecycle-manager image: quay.io/operator-framework/olm@sha256:4b7dec341fc754fdd2c8784ca7d81747ebbb2b87866b9e61ebbebc8c5614cfdc imagePullPolicy: IfNotPresent + priorityClassName: "system-cluster-critical" ports: - containerPort: 5443 livenessProbe: