crossplane-contrib / provider-confluent

Crossplane upjet provider for Confluent Cloud: https://registry.terraform.io/providers/confluentinc/confluent/latest/docs
Apache License 2.0
6 stars 7 forks source link

auth secret format #9

Closed callum-stakater closed 10 months ago

callum-stakater commented 10 months ago

Any hints on how the credentials need to be structured to make this provider work?

I found this https://github.com/crossplane-contrib/provider-confluent/blob/main/cluster/test/setup.sh#L6 but its a bit of a guessing game what is contained in : "${UPTEST_CLOUD_CREDENTIALS}"

callum-stakater commented 10 months ago

worked it out:

kubectl -n crossplane create secret generic provider-confluent-secret --from-literal=credentials='{"cloud_api_key":"$API_KEY", "cloud_api_secret":"$API_SECRET"}' --dry-run=client -o yaml

jtucci commented 10 months ago

worked it out:

kubectl -n crossplane create secret generic provider-confluent-secret --from-literal=credentials='{"cloud_api_key":"$API_KEY", "cloud_api_secret":"$API_SECRET"}' --dry-run=client -o yaml

Yup you got it! :)

jtucci commented 10 months ago
kind: Secret
metadata:
  name: confluent-provider-config
  namespace: crossplane-system
data:
  credentials: '{"cloud_api_key":"$API_KEY", "cloud_api_secret":"$API_SECRET"}'