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

Add a MSSQL database in Azure used by e2e test #160

Closed
2 tasks
rickbrouwer opened this issue Oct 8, 2024 · 3 comments
Closed
2 tasks

Add a MSSQL database in Azure used by e2e test #160

rickbrouwer opened this issue Oct 8, 2024 · 3 comments

Comments

@rickbrouwer
Copy link

We need a MSSQL database in Azure for the e2e test for the MSSQL scaler to cover the azure-workload auth (kedacore/keda#6161)

Use-Case

We must check if the azure-workload auth works correctly. Therefore we need a MSSQL database in Azure to connect with a WorkloadIdentityResource.

Specification

  • Create a MSSQL database in MSSQL
  • Add a azure WorkloadIdentity to connect
@JorTurFer
Copy link
Member

I missed this issue, do you need help with it?

@rickbrouwer
Copy link
Author

I missed this issue, do you need help with it?

Yes, this is something i need help with. That would be very nice

@JorTurFer
Copy link
Member

I've created the sql server with a federated login for KEDA's identity, so you should be able to use it with the connection values from these envs:

  • TF_AZURE_SQL_SERVER_FQDN -> full qualified name
  • TF_AZURE_SQL_SERVER_ADMIN_USERNAME -> admin username
  • TF_AZURE_SQL_SERVER_ADMIN_PASSWORD -> admin password
  • TF_AZURE_SQL_SERVER_DB_NAME -> database name

KEDA's identity has db_owner role in the database, so you should be able to test your code

And soryy for the huge delay :(

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

No branches or pull requests

2 participants