-
Notifications
You must be signed in to change notification settings - Fork 820
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
Add Fleet and Gameserverset Validation handler #598
Add Fleet and Gameserverset Validation handler #598
Conversation
Build Succeeded 👏 Build Id: 686f7f13-a361-473a-b59c-596d3bf6967e The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version:
|
pkg/apis/stable/v1alpha1/fleet.go
Outdated
// Validate validates the Fleet configuration. | ||
// If a Fleet is invalid there will be > 0 values in | ||
// the returned array | ||
func (f *Fleet) Validate() (bool, []metav1.StatusCause) { |
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.
Something I'm fixing elsewhere, for the other validate functions (PR incoming) - I think we should fix the return value, so the return should be: ([]metav1.StatusCause, bool)
- just because that's what we do in go for everything else.
Check a map: v, ok := map[key]
for example. So we should order it the same.
I've got the rest in an upcoming PR that also has new Validate functions as well.
How do you feel about that?
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.
yes, that would be much more natural.
c817dc2
to
5a6542d
Compare
Build Failed 😱 Build Id: 636be4b4-f117-4c7a-8478-916c71908ca8 To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
5a6542d
to
0eb706b
Compare
Build Failed 😱 Build Id: a43b1783-0516-4388-aa14-ab2a8a2b3e39 To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
Add Fleet and GSS Name length check in order to prevent GSS label overflowing.
0eb706b
to
335e30e
Compare
Build Succeeded 👏 Build Id: fe2bf371-ffa6-4959-8f8f-3604a79dc5ef The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version:
|
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.
LGTM 👍
Build Succeeded 👏 Build Id: 3804d958-0a13-4826-b1ee-58f828b99813 The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version:
|
Add Fleet and GSS Name length check on Create and Update in order to prevent GSS label overflowing.
For #541 .