crossplane-provider-grafana icon indicating copy to clipboard operation
crossplane-provider-grafana copied to clipboard

How to create a providerconfig using a secret created by serviceaccounttoken

Open rwadk opened this issue 9 months ago • 2 comments

I'm using oss and use an providerconfig with grafana-admin credentials to create a new organization, serviceaccount and serviceaccount token. Now I'm trying to create an organization specific configprovider using the serviceaccounttoken, but that secret created by the serviceaccounttoken is missing the required URL.

I see that it is todo to add the URL here: https://github.com/grafana/crossplane-provider-grafana/blob/40ef62a4e9c2acfe3f2cb831150d2b9a63c257c7/config/grafana/config.go#L77

Does anyone have an example on how they patch a secret so it can be used in a new providerconfig?

Thanks :)

rwadk avatar May 08 '24 09:05 rwadk