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

Improve error when SQL server doesn't have RG specified #1174

Merged
merged 4 commits into from
Jun 26, 2020

Conversation

matthchr
Copy link
Member

This closes #1106

What this PR does / why we need it:
Improves ResourceGroup empty handling for SQL Server creation

Special notes for your reviewer:
None

Let me know if there should be a test here too.

@Porges
Copy link
Member

Porges commented Jun 23, 2020

You could also put // +kubebuilder:validation:MinLength:1 on this

@matthchr matthchr force-pushed the feature/fix-bug-1106 branch from b327923 to 8e1a15f Compare June 23, 2020 17:06
@matthchr
Copy link
Member Author

I added some additional Kubebuilder validation

@jananivMS
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@Porges
Copy link
Member

Porges commented Jun 23, 2020

This did get quite repetitive; we could define a type ResourceGroupName string and put the annotations on it. The downside is that this would need to reside in some shared schema.

@jananivMS
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

@jananivMS jananivMS left a comment

Choose a reason for hiding this comment

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

@matthchr I think with this we may need some changes to the tests too. The pipeline failures seem valid.

@matthchr matthchr force-pushed the feature/fix-bug-1106 branch from e866b82 to 5ccf665 Compare June 24, 2020 18:13
Porges
Porges previously approved these changes Jun 24, 2020
@matthchr matthchr dismissed stale reviews from theunrepentantgeek and Porges via 7b1aacd June 25, 2020 17:55
@matthchr matthchr force-pushed the feature/fix-bug-1106 branch from 5ccf665 to 7b1aacd Compare June 25, 2020 17:55
@matthchr matthchr force-pushed the feature/fix-bug-1106 branch from 7b1aacd to 185fb9b Compare June 26, 2020 20:22
Copy link
Contributor

@jananivMS jananivMS left a comment

Choose a reason for hiding this comment

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

looks good!

@matthchr matthchr merged commit 64ac94f into Azure:master Jun 26, 2020
@matthchr matthchr deleted the feature/fix-bug-1106 branch June 26, 2020 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

Bug: Handle InvalidApiVersionParameter on Empty ResourceGroup / Gracefully handle 400 errs
4 participants