Skip to content

Instantly share code, notes, and snippets.

@jmontleon
Created January 24, 2023 14:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmontleon/18a1bf737daa9913e1d6e3af68f39ec4 to your computer and use it in GitHub Desktop.
Save jmontleon/18a1bf737daa9913e1d6e3af68f39ec4 to your computer and use it in GitHub Desktop.
Add keycloak postgres container image SHA to the operator deployment
1. Mirror registry.access.redhat.com/rhscl/postgresql-10-rhel7@sha256:c90309cc7c5a039654b81c8d1b6aebfd447578841a61bf4d5530e7a927d5a832 internally
2. Configure an ImageContentSourcePolicy if not already done
3. Add the RELATED_IMAGE_POSTGRESQL to the rhsso-operator via the rhsso-operator CSV
$ oc edit csv -n openshift-mta rhsso-operator.7.6.1-opr-005
install:
spec:
deployments:
- name: rhsso-operator
spec:
replicas: 1
selector:
matchLabels:
name: rhsso-operator
strategy: {}
template:
metadata:
labels:
name: rhsso-operator
spec:
containers:
- env:
- name: RELATED_IMAGE_POSTGRESQL
value: registry.access.redhat.com/rhscl/postgresql-10-rhel7@sha256:c90309cc7c5a039654b81c8d1b6aebfd447578841a61bf4d5530e7a927d5a832
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment