Skip to content

Commit

Permalink
manifests: create CMO Service to trigger secret creation
Browse files Browse the repository at this point in the history
We can then drop the `optional` in the CMO deployment volume spec and
have CMO wait till the requested TLS assets are created.

Signed-off-by: Jan Fajerski <jfajersk@redhat.com>
  • Loading branch information
jan--f committed Oct 27, 2021
1 parent 56b3d77 commit 23c29ca
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
20 changes: 20 additions & 0 deletions manifests/0000_50_cluster-monitoring-operator_03-service.yaml
@@ -0,0 +1,20 @@
apiVersion: v1
kind: Service
metadata:
annotations:
service.beta.openshift.io/serving-cert-secret-name: cluster-monitoring-operator-tls
include.release.openshift.io/ibm-cloud-managed: "true"
include.release.openshift.io/self-managed-high-availability: "true"
include.release.openshift.io/single-node-developer: "true"
labels:
app: cluster-monitoring-operator
name: cluster-monitoring-operator
namespace: openshift-monitoring
spec:
clusterIP: None
ports:
- name: https
port: 8443
targetPort: https
selector:
app: cluster-monitoring-operator
Expand Up @@ -101,5 +101,4 @@ spec:
name: telemetry-config
- name: cluster-monitoring-operator-tls
secret:
optional: true
secretName: cluster-monitoring-operator-tls
Expand Up @@ -47,7 +47,6 @@ spec:
- name: cluster-monitoring-operator-tls
secret:
secretName: cluster-monitoring-operator-tls
optional: true
containers:
- args:
- --logtostderr
Expand Down

0 comments on commit 23c29ca

Please sign in to comment.