Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions docs/guides/ocp-hcp-aws-devel.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,37 @@ aws s3api put-bucket-policy --bucket ${OIDC_BUCKET_NAME} --policy file://${bucke

Choose the desired target release from the [release controller](https://openshift-release.apps.ci.l2s4.p1.openshiftapps.com/).

!!! warning "Development Environment"
When using custom release with CI registry (`registry.ci.openshift.org`), you need to disable image check or provide the registry CA.
We'll disable the check as we are runnning in controlled environment, as well disable CVO to prevent reverting it.
1. Scale down CVO
```sh
oc scale deploy/cluster-version-operator -n openshift-cluster-version --replicas=0`
```
2. Patch the policy
a. get current config
```sh
$ oc get clusterimagepolicy openshift -o yaml | yq ea .spec.scopes -
- quay.io/openshift-release-dev/ocp-release
- quay.io/openshift-release-dev/ocp-v4.0-art-dev
- quay.io/openshift-release-dev/ocp-v5.0-art-dev
```
b. disable only v5 (position 2)
```sh
oc patch clusterimagepolicy openshift --type=json -p '[
{"op": "remove", "path": "/spec/scopes/2"}
]'
```
3. Verify the scope is gone
```sh
oc get clusterimagepolicy openshift -o jsonpath='{.spec.scopes}' ; echo
```
4. Watch MCO roll out the new config to nodes
```sh
oc get mcp -w
```

Create the hosted cluster:
```sh
OCP_RELEASE_IMAGE=quay.io/openshift-release-dev/ocp-release:4.21.0-ec.3-x86_64
HOSTED_CLUSTER_NAME=${CLUSTER_PREFIX}-hc1
Expand Down
Loading