Skip to content

Commit

Permalink
broker:change log level for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
asalan316 committed Jan 7, 2025
1 parent f60a24c commit 2ee1824
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion jobs/golangapiserver/spec
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ properties:
default: ''
autoscaler.apiserver.broker.default_credential_type:
description: "The default credential type generated to authenticate with the custom metrics API. if no credential type is explicitly set.\nAllowed values:\n - binding-secret\n - x509\nIf credential-type \"binding-secret\" is set, then username and password are generated by the broker. \nIf credential-type \"x509\" is set, only instance identity credentials may be used.\n"
default: 'binding-secret'
default: 'x509'
autoscaler.apiserver.broker.server.catalog:
description: ""
autoscaler.apiserver.broker.server.dashboard_redirect_uri:
Expand Down
2 changes: 1 addition & 1 deletion src/acceptance/helpers/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ type ScalingPolicy struct {
InstanceMax int `json:"instance_max_count"`
ScalingRules []*ScalingRule `json:"scaling_rules,omitempty"`
Schedules *ScalingSchedules `json:"schedules,omitempty"`
CredentialType *string `json:"credential_type,omitempty"`
CredentialType *string `json:"credential-type,omitempty"`
}

type ScalingPolicyWithExtraFields struct {
Expand Down
2 changes: 1 addition & 1 deletion src/autoscaler/api/broker/broker.go
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ func getOrDefaultCredentialType(policyJson json.RawMessage, credentialTypeConfig
return nil, apiresponses.NewFailureResponse(ErrCreatingServiceBinding, http.StatusInternalServerError, "error-unmarshal-credential-type")
}
}
logger.Debug("getOrDefaultCredentialType", lager.Data{"credential-type": credentialType})
logger.Info("getOrDefaultCredentialType", lager.Data{"credential-type": credentialType})
return credentialType, nil
}

Expand Down

0 comments on commit 2ee1824

Please sign in to comment.