From f3169dc038d3696ae3fc3952193a29c63cf094a1 Mon Sep 17 00:00:00 2001 From: Oleg Bulatov Date: Fri, 19 Jan 2024 15:45:28 +0100 Subject: [PATCH] chore: update ClusterServiceVersion annotations OperatorHub has requirements for annotations [1]. "createdAt" should use the format "yyyy-mm-ddThh:mm:ssZ", "support" should have the name of the company that maintains the operator. [1]: https://github.com/redhat-openshift-ecosystem/community-operators-prod/blob/main/docs/packaging-required-fields.md --- bundle/manifests/quay-operator.clusterserviceversion.yaml | 3 ++- hack/prepare-upstream.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bundle/manifests/quay-operator.clusterserviceversion.yaml b/bundle/manifests/quay-operator.clusterserviceversion.yaml index 366473a08..4c6bb6604 100644 --- a/bundle/manifests/quay-operator.clusterserviceversion.yaml +++ b/bundle/manifests/quay-operator.clusterserviceversion.yaml @@ -6,7 +6,8 @@ metadata: capabilities: Full Lifecycle categories: Integration & Delivery containerImage: quay.io/projectquay/quay-operator:v3.6.1 - createdAt: 2021-04-23 10:04 UTC + createdAt: 2021-04-23T10:04:00Z + support: Project Quay description: Opinionated deployment of Quay on Kubernetes. quay-version: v3.6.1 repository: https://github.com/quay/quay-operator diff --git a/hack/prepare-upstream.sh b/hack/prepare-upstream.sh index 7f30ac999..d33fbe51c 100755 --- a/hack/prepare-upstream.sh +++ b/hack/prepare-upstream.sh @@ -29,7 +29,7 @@ export POSTGRES_PREVIOUS_DIGEST export REDIS_DIGEST yq eval -i ' - .metadata.annotations.createdAt = (now | tz("UTC") | format_datetime("2006-01-02 15:04 UTC")) | + .metadata.annotations.createdAt = (now | tz("UTC")) | .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) |