Skip to content

Commit

Permalink
fix: adding vault webhook url (#661)
Browse files Browse the repository at this point in the history
* fix: adding vault webhook url

* fix: indentation

Co-authored-by: Cristhian Fernández <cristhianf@Cristhian-k1.local>
  • Loading branch information
CristhianF7 and Cristhian Fernández authored Nov 5, 2022
1 parent 5056d22 commit 4bd138f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions cmd/local/prerun.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions internal/k3d/secrets.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")),
Expand Down

0 comments on commit 4bd138f

Please sign in to comment.