Skip to content

Commit

Permalink
Separate out management cluster RMO objects from standard cluster obj…
Browse files Browse the repository at this point in the history
…ects. Remove console routemonitor from hypershift MCs until stable
  • Loading branch information
tnierman committed Mar 12, 2024
1 parent 7d48634 commit bb8a3ab
Show file tree
Hide file tree
Showing 8 changed files with 176 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: monitoring.openshift.io/v1alpha1
kind: ClusterUrlMonitor
metadata:
name: api
namespace: openshift-route-monitor-operator
spec:
prefix: https://api.
port: "6443"
suffix: /livez
slo:
targetAvailabilityPercent: "99.0"
1 change: 1 addition & 0 deletions deploy/hypershift-route-monitor-operator/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
reviewers:
22 changes: 22 additions & 0 deletions deploy/hypershift-route-monitor-operator/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# File Convention

the convention is:
```
${NUMBER}-${NS}.${NAME}.${TYPE}.yaml
```

## Number
a way to order the resources (if need be),
should be a 3 digit number just in case.

## Ns
the namespace the resource is created in

## Name
the name of the resource

## Type
the type of the resource

# Caveat
the alert name will be comprised from the RouteMonitor/ClusterUrlMonitor name, so be careful when renaming || Adding
12 changes: 12 additions & 0 deletions deploy/hypershift-route-monitor-operator/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
deploymentMode: SelectorSyncSet
selectorSyncSet:
matchExpressions:
- key: ext-hypershift.openshift.io/cluster-type
operator: In
values: ["management-cluster"]
- key: api.openshift.com/fedramp
operator: NotIn
values: ["true"]
- key: ext-hypershift.openshift.io/cluster-sector
operator: NotIn
values: ["ibm-infra"]
4 changes: 4 additions & 0 deletions deploy/osd-route-monitor-operator/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@ selectorSyncSet:
operator: NotIn
values:
- "true"
- key: ext-hypershift.openshift.io/cluster-type
operator: NotIn
values:
- "management-cluster"
42 changes: 42 additions & 0 deletions hack/00-osd-managed-cluster-config-integration.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -21868,6 +21868,44 @@ objects:
namespace: openshift-observability-operator
patch: '{"spec":{"tolerations":[{"effect":"NoSchedule","key":"obo","value":"true"}]}}'
patchType: merge
- apiVersion: hive.openshift.io/v1
kind: SelectorSyncSet
metadata:
labels:
managed.openshift.io/gitHash: ${IMAGE_TAG}
managed.openshift.io/gitRepoName: ${REPO_NAME}
managed.openshift.io/osd: 'true'
name: hypershift-route-monitor-operator
spec:
clusterDeploymentSelector:
matchLabels:
api.openshift.com/managed: 'true'
matchExpressions:
- key: ext-hypershift.openshift.io/cluster-type
operator: In
values:
- management-cluster
- key: api.openshift.com/fedramp
operator: NotIn
values:
- 'true'
- key: ext-hypershift.openshift.io/cluster-sector
operator: NotIn
values:
- ibm-infra
resourceApplyMode: Sync
resources:
- apiVersion: monitoring.openshift.io/v1alpha1
kind: ClusterUrlMonitor
metadata:
name: api
namespace: openshift-route-monitor-operator
spec:
prefix: https://api.
port: '6443'
suffix: /livez
slo:
targetAvailabilityPercent: '99.0'
- apiVersion: hive.openshift.io/v1
kind: SelectorSyncSet
metadata:
Expand Down Expand Up @@ -30741,6 +30779,10 @@ objects:
operator: NotIn
values:
- 'true'
- key: ext-hypershift.openshift.io/cluster-type
operator: NotIn
values:
- management-cluster
resourceApplyMode: Sync
resources:
- apiVersion: monitoring.openshift.io/v1alpha1
Expand Down
42 changes: 42 additions & 0 deletions hack/00-osd-managed-cluster-config-production.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -21868,6 +21868,44 @@ objects:
namespace: openshift-observability-operator
patch: '{"spec":{"tolerations":[{"effect":"NoSchedule","key":"obo","value":"true"}]}}'
patchType: merge
- apiVersion: hive.openshift.io/v1
kind: SelectorSyncSet
metadata:
labels:
managed.openshift.io/gitHash: ${IMAGE_TAG}
managed.openshift.io/gitRepoName: ${REPO_NAME}
managed.openshift.io/osd: 'true'
name: hypershift-route-monitor-operator
spec:
clusterDeploymentSelector:
matchLabels:
api.openshift.com/managed: 'true'
matchExpressions:
- key: ext-hypershift.openshift.io/cluster-type
operator: In
values:
- management-cluster
- key: api.openshift.com/fedramp
operator: NotIn
values:
- 'true'
- key: ext-hypershift.openshift.io/cluster-sector
operator: NotIn
values:
- ibm-infra
resourceApplyMode: Sync
resources:
- apiVersion: monitoring.openshift.io/v1alpha1
kind: ClusterUrlMonitor
metadata:
name: api
namespace: openshift-route-monitor-operator
spec:
prefix: https://api.
port: '6443'
suffix: /livez
slo:
targetAvailabilityPercent: '99.0'
- apiVersion: hive.openshift.io/v1
kind: SelectorSyncSet
metadata:
Expand Down Expand Up @@ -30741,6 +30779,10 @@ objects:
operator: NotIn
values:
- 'true'
- key: ext-hypershift.openshift.io/cluster-type
operator: NotIn
values:
- management-cluster
resourceApplyMode: Sync
resources:
- apiVersion: monitoring.openshift.io/v1alpha1
Expand Down
42 changes: 42 additions & 0 deletions hack/00-osd-managed-cluster-config-stage.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -21868,6 +21868,44 @@ objects:
namespace: openshift-observability-operator
patch: '{"spec":{"tolerations":[{"effect":"NoSchedule","key":"obo","value":"true"}]}}'
patchType: merge
- apiVersion: hive.openshift.io/v1
kind: SelectorSyncSet
metadata:
labels:
managed.openshift.io/gitHash: ${IMAGE_TAG}
managed.openshift.io/gitRepoName: ${REPO_NAME}
managed.openshift.io/osd: 'true'
name: hypershift-route-monitor-operator
spec:
clusterDeploymentSelector:
matchLabels:
api.openshift.com/managed: 'true'
matchExpressions:
- key: ext-hypershift.openshift.io/cluster-type
operator: In
values:
- management-cluster
- key: api.openshift.com/fedramp
operator: NotIn
values:
- 'true'
- key: ext-hypershift.openshift.io/cluster-sector
operator: NotIn
values:
- ibm-infra
resourceApplyMode: Sync
resources:
- apiVersion: monitoring.openshift.io/v1alpha1
kind: ClusterUrlMonitor
metadata:
name: api
namespace: openshift-route-monitor-operator
spec:
prefix: https://api.
port: '6443'
suffix: /livez
slo:
targetAvailabilityPercent: '99.0'
- apiVersion: hive.openshift.io/v1
kind: SelectorSyncSet
metadata:
Expand Down Expand Up @@ -30741,6 +30779,10 @@ objects:
operator: NotIn
values:
- 'true'
- key: ext-hypershift.openshift.io/cluster-type
operator: NotIn
values:
- management-cluster
resourceApplyMode: Sync
resources:
- apiVersion: monitoring.openshift.io/v1alpha1
Expand Down

0 comments on commit bb8a3ab

Please sign in to comment.