Start by deleting the previous operator bundle in your OpenShift Local cluster.
oc -n keycloak delete catalogsource/keycloak-permissions-operator-catalog
oc -n keycloak delete subscription -l operators.coreos.com/keycloak-permissions-operator.keycloak=''
oc -n keycloak delete csv -l operators.coreos.com/keycloak-permissions-operator.keycloak=''
export USERNAME=computate
export VERSION=1.4.1
export IMG=quay.io/nerc-images/keycloak-permissions-operator:$VERSION
export BUNDLE_IMG=quay.io/nerc-images/keycloak-permissions-operator-bundle:$VERSION
perl -pi -e 's/^(VERSION \?= ).*/${1}'"$VERSION"'/g' Makefile
perl -pi -e 's/(containerImage: quay\.io\/nerc-images\/keycloak-permissions-operator:).*/${1}'"$VERSION"'/g' \
config/manifests/bases/keycloak-permissions-operator.clusterserviceversion.yaml
make podman-build podman-push
make bundle
make bundle-build bundle-push
operator-sdk bundle validate $BUNDLE_IMG
operator-sdk -n keycloak run bundle $BUNDLE_IMG --security-context-config restricted
- Create a fork of the community-operators repo: https://github.com/k8s-operatorhub/community-operators
- Clone your community-operators fork repository.
git clone [email protected]:computate/community-operators.git ~/.local/src/community-operators/
cd ~/.local/src/community-operators/
git remote add upstream [email protected]:k8s-operatorhub/community-operators.git
git checkout -b keycloak-permissions-operator-$VERSION
mkdir -p ~/.local/src/community-operators/operators/keycloak-permissions-operator/$VERSION/
rsync -r bundle/ ~/.local/src/community-operators/operators/keycloak-permissions-operator/$VERSION/
- Git add and git commit your changes.
- Be sure to include your signature:
Signed-off-by: My Name <[email protected]>
- Make a pull request with the gh CLI.
gh pr create -f