Skip to content

Commit

Permalink
Fix provider-extension script for custom seed name (gardener#8594)
Browse files Browse the repository at this point in the history
* Improve `create-seed` script

* Address PR review feedback
  • Loading branch information
shafeeqes authored Oct 5, 2023
1 parent b485706 commit a7b677c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions example/provider-extensions/seed/create-seed.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,13 @@ garden_kubeconfig=$1
seed_kubeconfig=$2
seed_name=$3

registry_domain=$(cat "$SCRIPT_DIR"/registrydomain)
registry_domain_file="$SCRIPT_DIR/registrydomain"
seed_values=values.yaml
if [[ "$seed_name" != "provider-extensions" ]]; then
registry_domain=$(cat "$SCRIPT_DIR"/registrydomain-"$seed_name")
registry_domain_file="$SCRIPT_DIR/registrydomain-$seed_name"
seed_values=values-"$seed_name".yaml
fi
registry_domain=$(cat "$registry_domain_file")

echo "Skaffolding seed"
GARDENER_LOCAL_KUBECONFIG=$garden_kubeconfig \
Expand Down

0 comments on commit a7b677c

Please sign in to comment.