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

operator: Provide Azure region for managed credentials using environment variable #11964

Merged
merged 3 commits into from Feb 15, 2024

Conversation

xperimental
Copy link
Collaborator

@xperimental xperimental commented Feb 15, 2024

What this PR does / why we need it:

Currently there is no field in the OpenShift Console UI to set the "Azure Region" for the operator when it is installed into a managed-credentials (Azure Workload Identity Federation) cluster. The region is only used when creating the managed identity, which is not done by the operator, so it does not need this attribute for its own operation.

The operator tries to create a CredentialRequest for the cloud-credential-operator though, which, on Azure, requires the region to be set.

Because this will only apply to a limited set of users, and we also hope that the Console is updated to include the field in its UI, this PR changes the current handling of providing the "region" using the storage secret, which would require every managed-auth user to set it, to using an environment variable on the operator. This allows users who require this information to set it and, at the same time, allows other users to ignore this requirement as the operator can just fall back to using a default region (we picked centralus).

Which issue(s) this PR fixes:

Related to LOG-4702

Special notes for your reviewer:

Checklist

  • Reviewed the CONTRIBUTING.md guide (required)
  • Tests updated
  • CHANGELOG.md updated

@periklis periklis merged commit 4e1b210 into grafana:main Feb 15, 2024
15 checks passed
@xperimental xperimental deleted the azure-region-workaround branch February 15, 2024 18:33
rhnasc pushed a commit to inloco/loki that referenced this pull request Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants