fix(clustertool): ensure clusterenv is imported on adv fluxbootstrap

This commit is contained in:
Kjeld Schouten
2024-10-21 14:57:02 +02:00
parent c2cc6ab3fc
commit 172d4f4d22
2 changed files with 17 additions and 1 deletions
+2 -1
View File
@@ -18,9 +18,10 @@ func init() {
// FluxBootstrap initializes the FluxCD bootstrapping process if GITHUB_REPOSITORY is set in TalEnv.
func FluxBootstrap(ctx context.Context) {
if helper.TalEnv["GITHUB_REPOSITORY"] != "" {
log.Info().Msg("GITHUB_Repository for Flux configured.")
if helper.GetYesOrNo("Do you want to bootstrap FluxCD as well? (yes/no) [y/n]: ") {
if helper.GetYesOrNo("Do you want to (re)bootstrap FluxCD as well? (yes/no) [y/n]: ") {
if err := bootstrapFluxCD(ctx); err != nil {
log.Fatal().Err(err).Msg("Error during FluxCD bootstrap")
if helper.GetYesOrNo("Do you want to retry? (yes/no) [y/n]: ") {