From d8663e355e0aca9e04973385b1888552c4c14d26 Mon Sep 17 00:00:00 2001 From: Isaac Date: Thu, 6 Feb 2025 14:49:26 +0100 Subject: [PATCH 1/2] Add snapshot manifest to create compatible bundle-operator images --- konflux-ci/release-snapshot.yaml | 33 ++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 konflux-ci/release-snapshot.yaml diff --git a/konflux-ci/release-snapshot.yaml b/konflux-ci/release-snapshot.yaml new file mode 100644 index 00000000..0f32217d --- /dev/null +++ b/konflux-ci/release-snapshot.yaml @@ -0,0 +1,33 @@ +# Applying this manifest will create a snapshot in Konflux with specific images for the operator and the bundle +# Since images could be built in different PRs there could be some misalignment between the bundle and the operator images +# Retrieve the specific images SHA and last revision: +# * from the Konflux UI: +# in the Application > Components > [component] +# Latest build > Build container image +# Latest image > image label +# * from the CLI: +# $ oc get component deployment-validation-operator -o yaml | yq .status.lastPromotedImage +# $ oc get component deployment-validation-operator -o yaml | yq .status.lastBuiltCommit +--- +apiVersion: appstudio.redhat.com/v1alpha1 +kind: Snapshot +metadata: + name: manual-release-snapshot + namespace: dvo-obsint-tenant + labels: + test.appstudio.openshift.io/type: override +spec: + application: deployment-validation-operator + components: + - name: deployment-validation-operator + containerImage: quay.io/redhat-user-workloads/dvo-obsint-tenant/deployment-validation-operator/deployment-validation-operator@sha256:0e312d3edc28b931b721eb5ddc59feea4f9141707925224f6b936401b479b4b1 + source: + git: + url: https://github.com/app-sre/deployment-validation-operator + revision: b861deee00c1afc3ba91ffac56932d24870358c9 + - name: deployment-validation-operator-bundle + containerImage: quay.io/redhat-user-workloads/dvo-obsint-tenant/deployment-validation-operator-bundle@sha256:a96eb0ba48f11f163d243cead0519dd58de726e64963ed5e5ddcc19f253ba201 + source: + git: + url: https://github.com/app-sre/deployment-validation-operator + revision: b861deee00c1afc3ba91ffac56932d24870358c9 From 58137a4274ecda3d6971788622d4dd662c4e2ba5 Mon Sep 17 00:00:00 2001 From: Isaac Date: Thu, 6 Feb 2025 14:55:21 +0100 Subject: [PATCH 2/2] Add release manifest to release a specific snapshot --- konflux-ci/release-staging.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 konflux-ci/release-staging.yaml diff --git a/konflux-ci/release-staging.yaml b/konflux-ci/release-staging.yaml new file mode 100644 index 00000000..7902753c --- /dev/null +++ b/konflux-ci/release-staging.yaml @@ -0,0 +1,19 @@ +# Applying this manifest will trigger a new release. +# Temporary or automatic konflux snapshots may deliver a failed release +# To check the process and logs, connect to the UI and navigate to Application > Releases > [release-name] > PipelineRun +--- +apiVersion: appstudio.redhat.com/v1alpha1 +kind: Release +metadata: + name: staging-release-test-pxmtl + namespace: dvo-obsint-tenant +spec: + releasePlan: release-plan-staging + snapshot: deployment-validation-operator-pxmtl + data: + releaseNotes: + topic: Test Release + synopsis: Test to debug Release process + description: Test to debug Release process + solution: "" + references: ""