Skip to content

Commit 4bd138f

Browse files
CristhianF7Cristhian Fernández
and
Cristhian Fernández
authored
fix: adding vault webhook url (#661)
* fix: adding vault webhook url * fix: indentation Co-authored-by: Cristhian Fernández <cristhianf@Cristhian-k1.local>
1 parent 5056d22 commit 4bd138f

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

cmd/local/prerun.go

-2
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,6 @@ func validateLocal(cmd *cobra.Command, args []string) error {
9898
atlantisWebhookSecret := pkg.Random(20)
9999
viper.Set("github.atlantis.webhook.secret", atlantisWebhookSecret)
100100

101-
viper.WriteConfig()
102-
103101
err = viper.WriteConfig()
104102
if err != nil {
105103
return err

internal/k3d/secrets.go

+1
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ func AddK3DSecrets(dryrun bool) error {
114114
"GITHUB_OWNER": []byte(viper.GetString("github.owner")),
115115
"GITHUB_TOKEN": []byte(viper.GetString("github.token")),
116116
"TF_VAR_atlantis_repo_webhook_secret": []byte(viper.GetString("github.atlantis.webhook.secret")),
117+
"TF_VAR_atlantis_repo_webhook_url": []byte(viper.GetString("github.atlantis.webhook.url")),
117118
"TF_VAR_email_address": []byte(viper.GetString("adminemail")),
118119
"TF_VAR_github_token": []byte(viper.GetString("github.token")),
119120
"TF_VAR_kubefirst_bot_ssh_public_key": []byte(viper.GetString("botpublickey")),

0 commit comments

Comments
 (0)