Skip to content

Commit

Permalink
Avoid patching hypershift oeprator deployment
Browse files Browse the repository at this point in the history
Signed-off-by: Simone Tiraboschi <stirabos@redhat.com>
  • Loading branch information
tiraboschi committed Jan 24, 2024
1 parent 5616132 commit 94b0d2b
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,6 @@ chain:
PULL_SECRET_PATH="/tmp/.dockerconfigjson"
TRUST="--additional-trust-bundle /etc/pki/ca-trust/source/anchors/registry.2.crt "
# TODO: can we avoid this?
ROVERRIDES=\$(oc get imagecontentsourcepolicy image-policy -o=json | jq -r '.spec.repositoryDigestMirrors[] | select (.source | test("registry.ci.openshift.org/ocp/") ) | .source+"="+.mirrors[0]')
oc patch deploy -n hypershift operator --type=json -p="[{\"op\": \"add\", \"path\": \"/spec/template/spec/containers/0/args/-\", \"value\": \"--registry-overrides=\${ROVERRIDES}\"}]"
sleep 30
###
# Enable wildcard routes on the management cluster
oc patch ingresscontroller -n openshift-ingress-operator default --type=json -p \
'[{ "op": "add", "path": "/spec/routeAdmission", "value": {wildcardPolicy: "WildcardsAllowed"}}]'
Expand Down

0 comments on commit 94b0d2b

Please sign in to comment.