Skip to content

Commit

Permalink
Olm webhook (#1402)
Browse files Browse the repository at this point in the history
* CRD Updates to avoid create a webhook
* remove webhook section from OLM CSV
* Modify name of the webhook service that will handle the CRD conversion webhook to `operator`
  • Loading branch information
pjuarezd authored Jan 17, 2023
1 parent 03ace75 commit c343c2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions olm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ for catalog in "${redhatCatalogs[@]}"; do
# deploymentName has to be minio-operator, the reason is in case/03206318 or redhat support.
# the deployment name you set is "operator", and in CSV, there are two deployments 'console' and 'minio-operator'
# but there is no 'operator' option, without this change error is: "calculated deployment install is bad"
yq -i '.spec.webhookdefinitions[0].deploymentName = "minio-operator"' bundles/$catalog/$RELEASE/manifests/$package.clusterserviceversion.yaml
yq -i '.spec.conversion.webhook.clientConfig.service.name = "minio-operator"' bundles/$catalog/$RELEASE/manifests/minio.min.io_tenants.yaml
yq -i 'del(.spec.webhookdefinitions)' bundles/$catalog/$RELEASE/manifests/$package.clusterserviceversion.yaml
yq -i '.spec.conversion.webhook.clientConfig.service.name = "operator"' bundles/$catalog/$RELEASE/manifests/minio.min.io_tenants.yaml

# I get the update from engineering team, typically no user/group specification is made in a container image.
# Rather, the user spec (if there is one) is placed in the clusterserviceversion.yaml file as a RunAsUser clause.
Expand Down

0 comments on commit c343c2f

Please sign in to comment.