Skip to content

Commit 0ea35f1

Browse files
authored
Add v0.1.17-v0.1.18 to upgrade-gitops-maker (#121)
Signed-off-by: Dean Roehrich <dean.roehrich@hpe.com>
1 parent 246aec8 commit 0ea35f1

1 file changed

Lines changed: 54 additions & 0 deletions

File tree

upgrade-tester/upgrade-gitops-maker.sh

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -598,13 +598,67 @@ configure_v0_1_16_manifests() {
598598
msg "Created branch $BRANCH"
599599
}
600600

601+
# =====================================
602+
# Configure v0.1.17 manifests.
603+
#
604+
configure_v0_1_17_manifests() {
605+
TAG=v0.1.17
606+
TARBALL="manifests-$TAG.tar"
607+
BRANCH="rel-$TAG"
608+
git checkout main
609+
git checkout -b "$BRANCH"
610+
get_and_unpack_manfest "$TAG" "$TARBALL"
611+
set_branch_in_bootstraps "$BRANCH"
612+
613+
git mv environments/"$GITOPS_ENV"/nnf-dm/kustomization.yaml environments/"$GITOPS_ENV"/nnf-dm/kustomization.yaml-orig
614+
# Remove the patches section.
615+
# Chop off the end of the file, where we think the patches section lives.
616+
sed -n '1,/^patches/p' environments/"$GITOPS_ENV"/nnf-dm/kustomization.yaml-orig | grep -vE '^patches:' > environments/"$GITOPS_ENV"/nnf-dm/kustomization.yaml
617+
618+
git add environments
619+
git commit -s -m "Release $TAG"
620+
621+
./tools/verify-deployment.sh -e "$GITOPS_ENV"
622+
623+
$NO_PUSH_DBG git push --set-upstream origin "$BRANCH"
624+
msg "Created branch $BRANCH"
625+
}
626+
627+
# =====================================
628+
# Configure v0.1.18 manifests.
629+
#
630+
configure_v0_1_18_manifests() {
631+
TAG=v0.1.18
632+
TARBALL="manifests-$TAG.tar"
633+
BRANCH="rel-$TAG"
634+
git checkout main
635+
git checkout -b "$BRANCH"
636+
get_and_unpack_manfest "$TAG" "$TARBALL"
637+
set_branch_in_bootstraps "$BRANCH"
638+
639+
git mv environments/"$GITOPS_ENV"/nnf-dm/kustomization.yaml environments/"$GITOPS_ENV"/nnf-dm/kustomization.yaml-orig
640+
# Remove the patches section.
641+
# Chop off the end of the file, where we think the patches section lives.
642+
sed -n '1,/^patches/p' environments/"$GITOPS_ENV"/nnf-dm/kustomization.yaml-orig | grep -vE '^patches:' > environments/"$GITOPS_ENV"/nnf-dm/kustomization.yaml
643+
644+
git add environments
645+
git commit -s -m "Release $TAG"
646+
647+
./tools/verify-deployment.sh -e "$GITOPS_ENV"
648+
649+
$NO_PUSH_DBG git push --set-upstream origin "$BRANCH"
650+
msg "Created branch $BRANCH"
651+
}
652+
601653
create_new_repo
602654
configure_v0_1_11_manifests
603655
configure_v0_1_12_manifests
604656
configure_v0_1_13_manifests
605657
configure_v0_1_14_manifests
606658
configure_v0_1_15_manifests
607659
configure_v0_1_16_manifests
660+
configure_v0_1_17_manifests
661+
configure_v0_1_18_manifests
608662

609663
if [[ -z $NO_PUSH ]]; then
610664
echo

0 commit comments

Comments
 (0)