-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 azure-workload auth to MSSQL scaler #6161
base: main
Are you sure you want to change the base?
Conversation
877148b
to
e253199
Compare
633987e
to
8cd724e
Compare
my sincere apologies |
No worries |
/run-e2e * |
I think that we could cover this with e2e test as we have an Azure subscription. Could you open a PR to the testing infra repo to spin up and configure the database? |
Is a feature request in https://github.com/kedacore/testing-infrastructure ok? |
yes 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rickbrouwer @JorTurFer any update on this please?
The testing infrastructure has to be deployed but @rickbrouwer needs help with that and I've not had time yet |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed due to inactivity. |
This is a good remainder to add the missing envs, I'll try to apply the changes during the weekend |
The MSSQL server is already created and configured -> kedacore/testing-infrastructure#160 (comment) |
Signed-off-by: rickbrouwer <rickbrouwer@gmail.com>
Signed-off-by: Rick Brouwer <rickbrouwer@gmail.com>
Signed-off-by: rickbrouwer <rickbrouwer@gmail.com>
Signed-off-by: rickbrouwer <rickbrouwer@gmail.com>
Signed-off-by: rickbrouwer <rickbrouwer@gmail.com>
@@ -4,7 +4,9 @@ | |||
package mssql_test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that we should split this file into 2, the old one just testing base mssql and another one within the azure folder to cover the workload identity integration. This will improve the readability of the test and also will help to detect the root cause of the failures (we did the same with prometheus e2e for example)
/run-e2e mssql |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree with splitting the test,
the rest looks good, thanks!
Great!! to see the PR progressing!! I see that the E2E test failed? Can some one share the issue here? What set of things are remaining for the PR to get merged? |
The e2e test still needs to be split and there are definitely still one or more errors in the design of the e2e test. Otherwise I will continue with this later, but that may take a while. |
azureSQLServerFQDN = os.Getenv("TF_AZURE_SQL_SERVER_FQDN") | ||
azureSQLDBName = os.Getenv("TF_AZURE_SQL_SERVER_DB_NAME") | ||
azureADTenantID = os.Getenv("TF_AZURE_SP_TENANT") | ||
azureClientID = os.Getenv("AZURE_CLIENT_ID") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The env var that contains the app id is this:
azureClientID = os.Getenv("AZURE_CLIENT_ID") | |
azureClientID = os.Getenv("TF_AZURE_IDENTITY_1_APP_ID") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I case of necessity (to spin up the database or so), the admin credentials are in these envs:
- TF_AZURE_SQL_SERVER_ADMIN_USERNAME
- TF_AZURE_SQL_SERVER_ADMIN_PASSWORD
Checklist
Fixes #6104
Relates to #5797