diff --git a/cmd/local/prerun.go b/cmd/local/prerun.go index a91415c07..63b3b943f 100644 --- a/cmd/local/prerun.go +++ b/cmd/local/prerun.go @@ -98,8 +98,6 @@ func validateLocal(cmd *cobra.Command, args []string) error { atlantisWebhookSecret := pkg.Random(20) viper.Set("github.atlantis.webhook.secret", atlantisWebhookSecret) - viper.WriteConfig() - err = viper.WriteConfig() if err != nil { return err diff --git a/internal/k3d/secrets.go b/internal/k3d/secrets.go index 5a48f3078..a4b5494db 100644 --- a/internal/k3d/secrets.go +++ b/internal/k3d/secrets.go @@ -114,6 +114,7 @@ func AddK3DSecrets(dryrun bool) error { "GITHUB_OWNER": []byte(viper.GetString("github.owner")), "GITHUB_TOKEN": []byte(viper.GetString("github.token")), "TF_VAR_atlantis_repo_webhook_secret": []byte(viper.GetString("github.atlantis.webhook.secret")), + "TF_VAR_atlantis_repo_webhook_url": []byte(viper.GetString("github.atlantis.webhook.url")), "TF_VAR_email_address": []byte(viper.GetString("adminemail")), "TF_VAR_github_token": []byte(viper.GetString("github.token")), "TF_VAR_kubefirst_bot_ssh_public_key": []byte(viper.GetString("botpublickey")),