-
-
Notifications
You must be signed in to change notification settings - Fork 65
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
Filter out invalid name information to generate valid hook name #714
Open
stevefan1999-personal
wants to merge
19
commits into
buehler:main
Choose a base branch
from
stevefan1999-personal:patch-hook
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
d52e5fb
fix(deps): update dependency sonaranalyzer.csharp to v9.17.0.82934
renovate[bot] f9ccb1b
chore: run release on maintenance branches
buehler 342e12d
fix(deps): update dependency roslynator.analyzers to v4.10.0
renovate[bot] 592061c
fix(deps): update dependency sonaranalyzer.csharp to v9.18.0.83559
renovate[bot] 53a2f49
chore(deps): update dependency docfx to v2.75.2
renovate[bot] cc4434c
fix(deps): update dependency sonaranalyzer.csharp to v9.19.0.84025
renovate[bot] 1c88add
fix(deps): update dependency bouncycastle.cryptography to v2.3.0
renovate[bot] 2d08179
chore(deps): update dependency microsoft.build.locator to v1.7.1
renovate[bot] 8059daf
chore(deps): update dependency microsoft.net.test.sdk to v17.9.0
renovate[bot] bfc9f7b
fix(deps): update dependency microsoft.build.locator to v1.7.1
renovate[bot] ea51344
fix hook name
stevefan1999-personal baaef29
fix linter
stevefan1999-personal 9e0a218
add test
stevefan1999-personal 4f4a061
fix line endings
stevefan1999-personal 26d394a
collapse parameters into variables
stevefan1999-personal 3f86458
add TestServiceValidationWebhook
stevefan1999-personal 6ca4469
chore(deps): update helm/kind-action action to v1.9.0
renovate[bot] 4df87e8
fix(watcher): queues not polling when status updated (#712)
slacki123 21dc2da
Merge branch 'main' into patch-hook
buehler 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ on: | |
branches: | ||
- main | ||
- release | ||
- "maintenance/**" | ||
|
||
jobs: | ||
semantic-release: | ||
|
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
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
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
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
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
8 changes: 8 additions & 0 deletions
8
test/KubeOps.Operator.Web.Test/TestApp/TestServiceMutationWebhook.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
using k8s.Models; | ||
|
||
using KubeOps.Operator.Web.Webhooks.Admission.Mutation; | ||
|
||
namespace KubeOps.Operator.Web.Test.TestApp; | ||
|
||
[MutationWebhook(typeof(V1Service))] | ||
public class TestServiceMutationWebhook : MutationWebhook<V1Service>; |
8 changes: 8 additions & 0 deletions
8
test/KubeOps.Operator.Web.Test/TestApp/TestServiceValidationWebhook.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
using k8s.Models; | ||
|
||
using KubeOps.Operator.Web.Webhooks.Admission.Validation; | ||
|
||
namespace KubeOps.Operator.Web.Test.TestApp; | ||
|
||
[ValidationWebhook(typeof(V1Service))] | ||
public class TestServiceValidationWebhook : ValidationWebhook<V1Service>; |
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
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.
As far as I know, if no "group" is present, Kubernetes internal stuff defaults to "Core".
Shouldn't we default to "Core" if there is no group present? Either in the metadata class or in this logic
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.
It's a shame to let this fix languish, I got a way into building a validating webhook before finding it doesn't work with pods. Is there a workaround?
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 don't know. Never had the issue and never got a serious answer 🤷🏻
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.
Addition: If you have a good take on it, or an opinion, feel free to share.
I thought using "default" for the group is a promising idea since it is the default behavior of Kubernetes.