Skip to content

Commit

Permalink
fix: pass CF_ORIGIN_CA_ISSUER_API_TOKEN to API
Browse files Browse the repository at this point in the history
  • Loading branch information
muse-sisay committed Dec 13, 2024
1 parent 9ebfa2e commit 8c26b23
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internal/utilities/utilities.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ func CreateClusterRecordFromRaw(
PrivateKey: viper.GetString("kbot.private-key"),
},
CloudflareAuth: apiTypes.CloudflareAuth{
Token: os.Getenv("CF_API_TOKEN"),
APIToken: os.Getenv("CF_API_TOKEN"),
OriginCaIssuerKey: os.Getenv("CF_ORIGIN_CA_ISSUER_API_TOKEN"),
},
}

Expand Down Expand Up @@ -176,7 +177,8 @@ func CreateClusterDefinitionRecordFromRaw(gitAuth apiTypes.GitAuth, cliFlags typ
PrivateKey: viper.GetString("kbot.private-key"),
},
CloudflareAuth: apiTypes.CloudflareAuth{
APIToken: os.Getenv("CF_API_TOKEN"),
APIToken: os.Getenv("CF_API_TOKEN"),
OriginCaIssuerKey: os.Getenv("CF_ORIGIN_CA_ISSUER_API_TOKEN"),
},
AzureDNSZoneResourceGroup: cliFlags.DNSAzureRG,
}
Expand Down

0 comments on commit 8c26b23

Please sign in to comment.