From 83defde9e9fd66cf904126bb20ea5f80cd516cc2 Mon Sep 17 00:00:00 2001 From: Ludovic Cleroux Date: Thu, 4 Jul 2024 22:14:10 +0200 Subject: [PATCH] fix helm reconciliation --- scripts/dev-with-openshift-ci.sh | 90 ++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100755 scripts/dev-with-openshift-ci.sh diff --git a/scripts/dev-with-openshift-ci.sh b/scripts/dev-with-openshift-ci.sh new file mode 100755 index 000000000..f97db7d11 --- /dev/null +++ b/scripts/dev-with-openshift-ci.sh @@ -0,0 +1,90 @@ +#!/usr/bin/env bash + +# This script is to enable developers to work with local openshift builds +# It works well with OSD on AWS image flavor + +# What it does +# - It sets up a BuildConfig and an ImageStream for fleet-manager and fleetshard-operator +# - It sets up the annotations on the deployments to use those images +# - It creates a build + +# This assumes that make deploy/bootstrap and make deploy/dev have been run + +CUR_BRANCH=$(git rev-parse --abbrev-ref HEAD) + +# Set up the BuildConfig and ImageStream +oc apply -f - <