Skip to content

Commit

Permalink
Use 'eus' channels in non-prod
Browse files Browse the repository at this point in the history
  • Loading branch information
jewzaam committed Aug 20, 2024
1 parent c35c381 commit 2eaab49
Show file tree
Hide file tree
Showing 12 changed files with 420 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: config.openshift.io/v1
kind: ClusterVersion
name: version
applyMode: AlwaysApply
patch: '{"spec":{"channel":"eus-4.12"}}'
patchType: merge
13 changes: 13 additions & 0 deletions deploy/osd-channel-patch/stable-4.12-nonprod/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
deploymentMode: "SelectorSyncSet"
selectorSyncSet:
matchExpressions:
- key: hive.openshift.io/version-major-minor
operator: In
values: ["4.12"]
- key: api.openshift.com/channel-group
operator: NotIn
values: ["nightly","candidate","fast"]
- key: api.openshift.com/environment
operator: NotIn
values:
- "production"
4 changes: 4 additions & 0 deletions deploy/osd-channel-patch/stable-4.12/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ selectorSyncSet:
- key: api.openshift.com/channel-group
operator: NotIn
values: ["nightly","candidate","fast"]
- key: api.openshift.com/environment
operator: In
values:
- "production"
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: config.openshift.io/v1
kind: ClusterVersion
name: version
applyMode: AlwaysApply
patch: '{"spec":{"channel":"eus-4.14"}}'
patchType: merge
13 changes: 13 additions & 0 deletions deploy/osd-channel-patch/stable-4.14-nonprod/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
deploymentMode: "SelectorSyncSet"
selectorSyncSet:
matchExpressions:
- key: hive.openshift.io/version-major-minor
operator: In
values: ["4.14"]
- key: api.openshift.com/channel-group
operator: NotIn
values: ["nightly","candidate","fast"]
- key: api.openshift.com/environment
operator: NotIn
values:
- "production"
4 changes: 4 additions & 0 deletions deploy/osd-channel-patch/stable-4.14/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ selectorSyncSet:
- key: api.openshift.com/channel-group
operator: NotIn
values: ["nightly","candidate","fast"]
- key: api.openshift.com/environment
operator: In
values:
- "production"
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: config.openshift.io/v1
kind: ClusterVersion
name: version
applyMode: AlwaysApply
patch: '{"spec":{"channel":"eus-4.16"}}'
patchType: merge
13 changes: 13 additions & 0 deletions deploy/osd-channel-patch/stable-4.16-nonprod/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
deploymentMode: "SelectorSyncSet"
selectorSyncSet:
matchExpressions:
- key: hive.openshift.io/version-major-minor
operator: In
values: ["4.16"]
- key: api.openshift.com/channel-group
operator: NotIn
values: ["nightly","candidate","fast"]
- key: api.openshift.com/environment
operator: NotIn
values:
- "production"
4 changes: 4 additions & 0 deletions deploy/osd-channel-patch/stable-4.16/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ selectorSyncSet:
- key: api.openshift.com/channel-group
operator: NotIn
values: ["nightly","candidate","fast"]
- key: api.openshift.com/environment
operator: In
values:
- "production"
117 changes: 117 additions & 0 deletions hack/00-osd-managed-cluster-config-integration.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -27538,6 +27538,10 @@ objects:
- nightly
- candidate
- fast
- key: api.openshift.com/environment
operator: In
values:
- production
resourceApplyMode: Sync
patches:
- apiVersion: config.openshift.io/v1
Expand All @@ -27546,6 +27550,41 @@ objects:
applyMode: AlwaysApply
patch: '{"spec":{"channel":"stable-4.12"}}'
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: osd-channel-patch-stable-4.12-nonprod
spec:
clusterDeploymentSelector:
matchLabels:
api.openshift.com/managed: 'true'
matchExpressions:
- key: hive.openshift.io/version-major-minor
operator: In
values:
- '4.12'
- key: api.openshift.com/channel-group
operator: NotIn
values:
- nightly
- candidate
- fast
- key: api.openshift.com/environment
operator: NotIn
values:
- production
resourceApplyMode: Sync
patches:
- apiVersion: config.openshift.io/v1
kind: ClusterVersion
name: version
applyMode: AlwaysApply
patch: '{"spec":{"channel":"eus-4.12"}}'
patchType: merge
- apiVersion: hive.openshift.io/v1
kind: SelectorSyncSet
metadata:
Expand Down Expand Up @@ -27600,6 +27639,10 @@ objects:
- nightly
- candidate
- fast
- key: api.openshift.com/environment
operator: In
values:
- production
resourceApplyMode: Sync
patches:
- apiVersion: config.openshift.io/v1
Expand All @@ -27608,6 +27651,41 @@ objects:
applyMode: AlwaysApply
patch: '{"spec":{"channel":"stable-4.14"}}'
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: osd-channel-patch-stable-4.14-nonprod
spec:
clusterDeploymentSelector:
matchLabels:
api.openshift.com/managed: 'true'
matchExpressions:
- key: hive.openshift.io/version-major-minor
operator: In
values:
- '4.14'
- key: api.openshift.com/channel-group
operator: NotIn
values:
- nightly
- candidate
- fast
- key: api.openshift.com/environment
operator: NotIn
values:
- production
resourceApplyMode: Sync
patches:
- apiVersion: config.openshift.io/v1
kind: ClusterVersion
name: version
applyMode: AlwaysApply
patch: '{"spec":{"channel":"eus-4.14"}}'
patchType: merge
- apiVersion: hive.openshift.io/v1
kind: SelectorSyncSet
metadata:
Expand Down Expand Up @@ -27662,6 +27740,10 @@ objects:
- nightly
- candidate
- fast
- key: api.openshift.com/environment
operator: In
values:
- production
resourceApplyMode: Sync
patches:
- apiVersion: config.openshift.io/v1
Expand All @@ -27670,6 +27752,41 @@ objects:
applyMode: AlwaysApply
patch: '{"spec":{"channel":"stable-4.16"}}'
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: osd-channel-patch-stable-4.16-nonprod
spec:
clusterDeploymentSelector:
matchLabels:
api.openshift.com/managed: 'true'
matchExpressions:
- key: hive.openshift.io/version-major-minor
operator: In
values:
- '4.16'
- key: api.openshift.com/channel-group
operator: NotIn
values:
- nightly
- candidate
- fast
- key: api.openshift.com/environment
operator: NotIn
values:
- production
resourceApplyMode: Sync
patches:
- apiVersion: config.openshift.io/v1
kind: ClusterVersion
name: version
applyMode: AlwaysApply
patch: '{"spec":{"channel":"eus-4.16"}}'
patchType: merge
- apiVersion: hive.openshift.io/v1
kind: SelectorSyncSet
metadata:
Expand Down
Loading

0 comments on commit 2eaab49

Please sign in to comment.