Skip to content

Commit

Permalink
Improve actuator AZident field validation err msg
Browse files Browse the repository at this point in the history
Along the same lines as OCPBUGS-16684 changes
  • Loading branch information
bentito committed Aug 9, 2023
1 parent 0756114 commit 973abf9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/azure/actuator.go
Expand Up @@ -557,7 +557,12 @@ func (a *Actuator) syncWorkloadIdentitySecret(
}
err := validateAzureProviderSpec(azureProviderSpec)
if err != nil {
return err
logger.WithError(err).Error("error determining whether a credentials update is needed")
msg := "error validating credentials request Azure AD Workload Identity fields"
return &actuatoriface.ActuatorError{
ErrReason: minterv1.CredentialsProvisionFailure,
Message: fmt.Sprintf("%v: %v", msg, err),
}
}
op, err := controllerutil.CreateOrPatch(ctx, a.client, secret, func() error {
if secret.Labels == nil {
Expand Down

0 comments on commit 973abf9

Please sign in to comment.