Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rickbrouwer authored Sep 16, 2024
1 parent 6306f89 commit 633987e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions pkg/scalers/mssql_scaler.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,13 @@ type mssqlMetadata struct {
Query string `keda:"name=query,order=triggerMetadata"`
TargetValue float64 `keda:"name=targetValue,order=triggerMetadata"`
ActivationTargetValue float64 `keda:"name=activationTargetValue,order=triggerMetadata,optional,default=0"`
WorkloadIdentityClientID string `keda:"name=WorkloadIdentityClientID,order=authParams;triggerMetadata,optional"`
WorkloadIdentityTenantID string `keda:"name=WorkloadIdentityTenantID,order=authParams;triggerMetadata,optional"`
WorkloadIdentityAuthorityHost string `keda:"name=WorkloadIdentityAuthorityHost,order=authParams;triggerMetadata,optional"`
WorkloadIdentityResource string `keda:"name=WorkloadIdentityResource,order=authParams;triggerMetadata,optional"`

TriggerIndex int

WorkloadIdentityResource string `keda:"name=WorkloadIdentityResource,order=authParams;triggerMetadata,optional"`
WorkloadIdentityClientID string
WorkloadIdentityTenantID string
WorkloadIdentityAuthorityHost string
}

func (m *mssqlMetadata) Validate() error {
Expand Down
2 changes: 1 addition & 1 deletion pkg/scalers/mssql_scaler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ var testMSSQLMetadata = []parseMSSQLMetadataTestData{
},
resolvedEnv: map[string]string{},
authParams: map[string]string{
"workloadIdentityResource": "https://database.windows.net/",
"workloadIdentityResource": "mssql-resource-id",
},
podIdentity: v1alpha1.AuthPodIdentity{
Provider: v1alpha1.PodIdentityProviderAzureWorkload,
Expand Down

0 comments on commit 633987e

Please sign in to comment.