From 1f91e571398b09059a1522c45ac5bb3808ede360 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Muzik=C3=A1=C5=99?= Date: Wed, 24 Jan 2024 16:41:44 +0100 Subject: [PATCH] Fix `createdAt` format in Operator CSV (#26428) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #26427 Signed-off-by: Václav Muzikář (cherry picked from commit 7a57bfb504cc09c2fffe72e2037986652bcb6267) --- operator/scripts/create-olm-bundle.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/operator/scripts/create-olm-bundle.sh b/operator/scripts/create-olm-bundle.sh index 0fac9c1cb362..9f5620a2e218 100755 --- a/operator/scripts/create-olm-bundle.sh +++ b/operator/scripts/create-olm-bundle.sh @@ -34,7 +34,7 @@ yq ea -i ".spec.install.spec.deployments[0].spec.template.spec.containers[0].ima # Edit the CSV version, replaces, etc. -yq ea -i ".metadata.annotations.createdAt = \"$(date "+%D %T")\"" "$CSV_PATH" +yq ea -i ".metadata.annotations.createdAt = \"$(date -u +"%Y-%m-%dT%H:%M:%SZ")\"" "$CSV_PATH" yq ea -i ".spec.version = \"$VERSION\"" "$CSV_PATH" yq ea -i ".metadata.name = \"keycloak-operator.v$VERSION\"" "$CSV_PATH" yq ea -i '.metadata.namespace = "placeholder"' "$CSV_PATH"