From 71a095970b5b867a57ab9af96de8e2b03e1a6521 Mon Sep 17 00:00:00 2001 From: Cesar Wong Date: Tue, 12 Nov 2019 16:57:32 +0100 Subject: [PATCH] Add manifest annotations for hosted deployment exclusions --- install/04_service.yaml | 1 + install/06_servicemonitor.yaml | 2 ++ install/07_deployment.yaml | 2 ++ install/08_clusteroperator.yaml | 4 +++- 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/install/04_service.yaml b/install/04_service.yaml index 9d6dd1c3d..6a7857313 100644 --- a/install/04_service.yaml +++ b/install/04_service.yaml @@ -8,6 +8,7 @@ metadata: k8s-app: cluster-autoscaler-operator annotations: service.beta.openshift.io/serving-cert-secret-name: cluster-autoscaler-operator-cert + exclude.release.openshift.io/internal-openshift-hosted: "true" spec: type: ClusterIP ports: diff --git a/install/06_servicemonitor.yaml b/install/06_servicemonitor.yaml index 03c00d8cd..bf55e7ff0 100644 --- a/install/06_servicemonitor.yaml +++ b/install/06_servicemonitor.yaml @@ -5,6 +5,8 @@ metadata: k8s-app: cluster-autoscaler-operator name: cluster-autoscaler-operator namespace: openshift-machine-api + annotations: + exclude.release.openshift.io/internal-openshift-hosted: "true" spec: endpoints: - bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token diff --git a/install/07_deployment.yaml b/install/07_deployment.yaml index ae23faa5e..7948f1b66 100644 --- a/install/07_deployment.yaml +++ b/install/07_deployment.yaml @@ -6,6 +6,8 @@ metadata: namespace: openshift-machine-api labels: k8s-app: cluster-autoscaler-operator + annotations: + exclude.release.openshift.io/internal-openshift-hosted: "true" spec: replicas: 1 selector: diff --git a/install/08_clusteroperator.yaml b/install/08_clusteroperator.yaml index e092046f7..62527ea88 100644 --- a/install/08_clusteroperator.yaml +++ b/install/08_clusteroperator.yaml @@ -2,7 +2,9 @@ apiVersion: config.openshift.io/v1 kind: ClusterOperator metadata: name: cluster-autoscaler + annotations: + exclude.release.openshift.io/internal-openshift-hosted: "true" status: versions: - name: operator - version: "0.0.1-snapshot" \ No newline at end of file + version: "0.0.1-snapshot"