From 81b492255d87fb9d466f22c95c3bb83392c8fda8 Mon Sep 17 00:00:00 2001 From: Oleg Bulatov Date: Mon, 3 Jun 2024 12:24:47 +0200 Subject: [PATCH] chore: rename upstream operator to project-quay (#928) * Revert "chore: fix yq script" This reverts commit ce015df764b85c84af170a928d2e62e4a3c8e7de. * Revert "chore: bundle.package.v1 should match CSV name, i.e. be quay-operator (#920)" This reverts commit 012186dd8e3695f29335d98d93bac6593ed71890. * chore: rename upstream operator to project-quay --- hack/prepare-upstream.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hack/prepare-upstream.sh b/hack/prepare-upstream.sh index 27e9a4010..b025e45a4 100755 --- a/hack/prepare-upstream.sh +++ b/hack/prepare-upstream.sh @@ -33,7 +33,7 @@ yq eval -i ' .metadata.annotations["olm.skipRange"] = (">=3.6.x <${RELEASE}" | envsubst) | .metadata.annotations["quay-version"] = strenv(RELEASE) | .metadata.annotations.containerImage = ("quay.io/projectquay/quay-operator:${RELEASE}" | envsubst) | - .metadata.name = ("quay-operator.v${RELEASE}" | envsubst) | + .metadata.name = ("project-quay.v${RELEASE}" | envsubst) | .spec.install.spec.deployments[0].spec.template.spec.containers[0].image = ("quay.io/projectquay/quay-operator:${RELEASE}" | envsubst) | .spec.install.spec.deployments[0].spec.template.spec.containers[0].env[] |= ( select(.name == "RELATED_IMAGE_COMPONENT_BUILDER").value = ("quay.io/projectquay/quay-builder:${RELEASE}" | envsubst) | @@ -49,5 +49,8 @@ yq eval -i ' yq eval -i ' .annotations["operators.operatorframework.io.bundle.channel.default.v1"] = strenv(DEFAULT_CHANNEL) | - .annotations["operators.operatorframework.io.bundle.channels.v1"] = strenv(CHANNEL) + .annotations["operators.operatorframework.io.bundle.channels.v1"] = strenv(CHANNEL) | + .annotations["operators.operatorframework.io.bundle.package.v1"] = "project-quay" ' ./bundle/metadata/annotations.yaml + +mv ./bundle/manifests/quay-operator.clusterserviceversion.yaml ./bundle/manifests/project-quay.clusterserviceversion.yaml