Skip to content

Commit

Permalink
bug 1871890: add current profile annotations to CVO manifests
Browse files Browse the repository at this point in the history
This is matches openshift/enhancements#414 and doesn't change existing behavior
  • Loading branch information
deads2k authored and retroflexer committed Sep 22, 2020
1 parent be96a0b commit 0b5a52f
Show file tree
Hide file tree
Showing 13 changed files with 25 additions and 29 deletions.
29 changes: 0 additions & 29 deletions go.sum

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ kind: Role
metadata:
name: prometheus-k8s
namespace: openshift-authentication-operator
annotations:
include.release.openshift.io/self-managed-high-availability: "true"
rules:
- apiGroups:
- ""
Expand All @@ -22,6 +24,8 @@ kind: Role
metadata:
name: prometheus-k8s
namespace: openshift-authentication
annotations:
include.release.openshift.io/self-managed-high-availability: "true"
rules:
- apiGroups:
- ""
Expand All @@ -40,6 +44,8 @@ kind: RoleBinding
metadata:
name: prometheus-k8s
namespace: openshift-authentication-operator
annotations:
include.release.openshift.io/self-managed-high-availability: "true"
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
Expand All @@ -55,6 +61,8 @@ kind: RoleBinding
metadata:
name: prometheus-k8s
namespace: openshift-authentication
annotations:
include.release.openshift.io/self-managed-high-availability: "true"
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ kind: ServiceMonitor
metadata:
name: authentication-operator
namespace: openshift-authentication-operator
annotations:
include.release.openshift.io/self-managed-high-availability: "true"
spec:
endpoints:
- bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
Expand All @@ -30,6 +32,8 @@ kind: ServiceMonitor
metadata:
name: oauth-openshift
namespace: openshift-authentication
annotations:
include.release.openshift.io/self-managed-high-availability: "true"
spec:
endpoints:
- bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
Expand Down
1 change: 1 addition & 0 deletions manifests/00_namespace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: Namespace
metadata:
name: openshift-authentication-operator
annotations:
include.release.openshift.io/self-managed-high-availability: "true"
openshift.io/node-selector: ""
labels:
openshift.io/cluster-monitoring: "true"
1 change: 1 addition & 0 deletions manifests/02_config.cr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: Authentication
metadata:
name: cluster
annotations:
include.release.openshift.io/self-managed-high-availability: "true"
release.openshift.io/create-only: "true"
spec:
managementState: Managed
1 change: 1 addition & 0 deletions manifests/02_service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: v1
kind: Service
metadata:
annotations:
include.release.openshift.io/self-managed-high-availability: "true"
service.alpha.openshift.io/serving-cert-secret-name: serving-cert
labels:
app: authentication-operator
Expand Down
2 changes: 2 additions & 0 deletions manifests/03_configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ kind: ConfigMap
metadata:
namespace: openshift-authentication-operator
name: authentication-operator-config
annotations:
include.release.openshift.io/self-managed-high-availability: "true"
data:
operator-config.yaml: |
apiVersion: operator.openshift.io/v1alpha1
Expand Down
1 change: 1 addition & 0 deletions manifests/03_openshift_service_ca.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ metadata:
name: service-ca-bundle
namespace: openshift-authentication-operator
annotations:
include.release.openshift.io/self-managed-high-availability: "true"
service.beta.openshift.io/inject-cabundle: "true"
data: {}
1 change: 1 addition & 0 deletions manifests/03_operator_trusted_ca.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ metadata:
namespace: openshift-authentication-operator
name: trusted-ca-bundle
annotations:
include.release.openshift.io/self-managed-high-availability: "true"
release.openshift.io/create-only: "true"
labels:
config.openshift.io/inject-trusted-cabundle: "true"
2 changes: 2 additions & 0 deletions manifests/04_roles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: system:openshift:operator:authentication
annotations:
include.release.openshift.io/self-managed-high-availability: "true"
roleRef:
kind: ClusterRole
name: cluster-admin # TODO fix, this is madness
Expand Down
2 changes: 2 additions & 0 deletions manifests/05_serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ kind: ServiceAccount
metadata:
namespace: openshift-authentication-operator
name: authentication-operator
annotations:
include.release.openshift.io/self-managed-high-availability: "true"
labels:
app: authentication-operator
1 change: 1 addition & 0 deletions manifests/07_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ metadata:
labels:
app: authentication-operator
annotations:
include.release.openshift.io/self-managed-high-availability: "true"
config.openshift.io/inject-proxy: authentication-operator
exclude.release.openshift.io/internal-openshift-hosted: "true"
spec:
Expand Down
1 change: 1 addition & 0 deletions manifests/08_clusteroperator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: ClusterOperator
metadata:
name: authentication
annotations:
include.release.openshift.io/self-managed-high-availability: "true"
exclude.release.openshift.io/internal-openshift-hosted: "true"
status:
versions:
Expand Down

0 comments on commit 0b5a52f

Please sign in to comment.