-
Notifications
You must be signed in to change notification settings - Fork 13
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
APIGOV-DG000 - fix ARD creation #818
Conversation
@@ -117,6 +117,9 @@ func (s *ServiceBody) GetAccessRequestDefinition() *management.AccessRequestDefi | |||
} | |||
|
|||
func (s *ServiceBody) createAccessRequestDefinition() error { | |||
if !s.uniqueARD { | |||
return nil |
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.
can you log s.ardName before you return since we are bailing right out
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.
Thinking debug level? Since this would happen a lot I think Warn and Info would not apply. More so since this only happens when the user said the ard is not unique for this api.
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.
that's reasonable... i'm down with that
Adds a flag that ignores creating ARD and CRDs based on the spec provided in the serviceBody