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

better error message for invalid Service Manager credentials #376

Merged
merged 2 commits into from
Dec 17, 2023
Merged

Conversation

kerenlahav
Copy link
Contributor

@kerenlahav kerenlahav commented Dec 10, 2023

Pull Request Template

provide dedicated error message for invalid sm credentials

@kerenlahav kerenlahav merged commit e420ff1 into main Dec 17, 2023
4 checks passed
@kerenlahav kerenlahav deleted the fix branch December 17, 2023 10:04
@@ -108,6 +108,12 @@ func (r *BaseReconciler) getSMClient(ctx context.Context, object api.SAPBTPResou
}
}

if len(cfg.ClientID) == 0 ||
len(cfg.ClientSecret) == 0 ||

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kerenlahav this condition would always result in showing this error message invalid Service-Manager credentials, contact your cluster administrator when you don't create clientID and clientSecret servicekey but TLS based service key. In case of TLS based service key the cfg.ClientSecret is always empty.

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

Successfully merging this pull request may close these issues.

Better self explaining error messages in case service manager integration is missing
3 participants