generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 54
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
Introduce managedBy
field and Remove managed-by
label
#487
Merged
Merged
Changes from 17 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
cd66b3e
Remove in const declaration and add field to JobSetSpec.
8c45f05
Remove references to LabelManagedBy in jobset_webhook.go.
7820c47
Add struct tag for ManagedBy field of JobSetSpec.
83ee86f
Add missing ` character in ManagedBy struct tag.
0713346
Update jobset_webhook_test.go to remove references to LabelManagedBy.
e866ed4
Update Reconcile to use ManagedBy field of JobSetSpec.
34c2b26
Update jobset_controller_test.go to use ManagedBy field of JobSetSpec.
ef199e7
Update jobset_webhook_test.go to use ManagedBy field of JobSetSpec.
55fb065
Fix bug where uninitialized value for js.Spec.ManagedBy was treated a…
6d3f0a0
Add an integration test that only tests job creation.
80643db
Ran non-test related make commands.
c3f9aef
Correct grammatical error.
0db3446
Regenerated files.
a10faa1
Remove TODO for jobset controller.
a82e440
Update comment for JobSetManager to no longer reference LabelManagedBy.
66b55c4
Change implementation of JobSet controller manager to better align wi…
f8a2bf5
Add comment providing context for checking JobSet manager.
dae1c28
Add validation for managedBy field.
7559f34
Create tests for jobset controller name validation.
98238ac
Create variable for overly long controller name error.
76d5546
Add tests for valid values of managedBy.
80ac00c
Correct test for unset jobset controller name.
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Should we to introduce validation in the webhook with
IsDomainPrefixedPath
, analogously as for Job: https://github.com/kubernetes/kubernetes/blob/f4e246bc93ffb68b33ed67c7896c379efa4207e7/pkg/apis/batch/validation/validation.go#L220-L223. Potentially also length.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 I think so, we have been bitten before by not having strict enough validation, so I'd like to enforce the field is restricted to expected format and length
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.
I updated the code. Please resolve if nothing else is needed.
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 add unit tests ensuring the validation works as expected
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.
Done.