Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auth secret format #9

Closed
callum-stakater opened this issue Jan 4, 2024 · 3 comments · Fixed by #10
Closed

auth secret format #9

callum-stakater opened this issue Jan 4, 2024 · 3 comments · Fixed by #10
Labels
enhancement New feature or request

Comments

@callum-stakater
Copy link

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 callum-stakater added the enhancement New feature or request label Jan 4, 2024
@callum-stakater
Copy link
Author

callum-stakater commented Jan 4, 2024

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
Copy link
Collaborator

jtucci commented Jan 4, 2024

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
Copy link
Collaborator

jtucci commented Jan 4, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants