Skip to content

Commit

Permalink
elemental-workloads: don't delete OS channel and versions
Browse files Browse the repository at this point in the history
Signed-off-by: Francesco Giudici <[email protected]>
  • Loading branch information
fgiudici committed May 3, 2024
1 parent 04f4b1f commit c289dcb
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion elemental-workloads.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ EO_CRDS="managedosimages.elemental.cattle.io \
machineinventoryselectortemplates.elemental.cattle.io \
managedosimages.elemental.cattle.io"

EO_CRDS_DEL="managedosimages.elemental.cattle.io \
machineinventories.elemental.cattle.io \
machineregistrations.elemental.cattle.io \
seedimages.elemental.cattle.io \
machineinventoryselectors.elemental.cattle.io \
machineinventoryselectortemplates.elemental.cattle.io \
managedosimages.elemental.cattle.io"

case ${2} in

--*)
Expand Down Expand Up @@ -214,7 +222,7 @@ case ${1} in
;;

delete)
for res in $EO_CRDS cluster; do
for res in $EO_CRDS_DEL cluster; do
echo "- Delete $res"
for i in `get_resource_list "$res"`; do
echo " . delete $i"
Expand Down

0 comments on commit c289dcb

Please sign in to comment.