-
Notifications
You must be signed in to change notification settings - Fork 467
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
[chore] Refactor Webhooks to their own packages #2210
Merged
pavolloffay
merged 18 commits into
open-telemetry:main
from
jaronoff97:refactor-webhooks-pt1
Oct 17, 2023
Merged
Changes from 2 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
f96cd52
lots of moving things around and simplifcation
jaronoff97 225e8eb
moves webhook manifest
jaronoff97 ed0c651
rename
jaronoff97 191deec
generate
jaronoff97 af75d3e
Add back annotations
jaronoff97 38fc1f3
Fix tests, simplify code
jaronoff97 5670450
naming
jaronoff97 5206f96
fix borked test
jaronoff97 3078a2e
FIX TESTS
jaronoff97 d321f55
oops
jaronoff97 3fd2af7
Merge branch 'main' of github.com:open-telemetry/opentelemetry-operat…
jaronoff97 b6f757d
Merge branch 'main' of github.com:open-telemetry/opentelemetry-operat…
jaronoff97 c0e805c
Merge branch 'main' of github.com:open-telemetry/opentelemetry-operat…
jaronoff97 49856b9
move things back
jaronoff97 7c4185d
update manifests
jaronoff97 82971e1
fix a miss
jaronoff97 b250365
fix tests
jaronoff97 ebc2c19
Rename
jaronoff97 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,9 +10,9 @@ webhooks: | |
service: | ||
name: webhook-service | ||
namespace: system | ||
path: /mutate-opentelemetry-io-v1alpha1-instrumentation | ||
path: /mutate-opentelemetry-io-v1alpha1-opentelemetrycollector | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why are these changes here? I am concerned that this will cause issues for the upgrade (also the upgrade test was changed ) |
||
failurePolicy: Fail | ||
name: minstrumentation.kb.io | ||
name: mopentelemetrycollector.kb.io | ||
rules: | ||
- apiGroups: | ||
- opentelemetry.io | ||
|
@@ -22,17 +22,17 @@ webhooks: | |
- CREATE | ||
- UPDATE | ||
resources: | ||
- instrumentations | ||
- opentelemetrycollectors | ||
sideEffects: None | ||
- admissionReviewVersions: | ||
- v1 | ||
clientConfig: | ||
service: | ||
name: webhook-service | ||
namespace: system | ||
path: /mutate-opentelemetry-io-v1alpha1-opentelemetrycollector | ||
path: /mutate-opentelemetry-io-v1alpha1-instrumentation | ||
failurePolicy: Fail | ||
name: mopentelemetrycollector.kb.io | ||
name: minstrumentation.kb.io | ||
rules: | ||
- apiGroups: | ||
- opentelemetry.io | ||
|
@@ -42,7 +42,7 @@ webhooks: | |
- CREATE | ||
- UPDATE | ||
resources: | ||
- opentelemetrycollectors | ||
- instrumentations | ||
sideEffects: None | ||
- admissionReviewVersions: | ||
- v1 | ||
|
@@ -76,9 +76,9 @@ webhooks: | |
service: | ||
name: webhook-service | ||
namespace: system | ||
path: /validate-opentelemetry-io-v1alpha1-instrumentation | ||
path: /validate-opentelemetry-io-v1alpha1-opentelemetrycollector | ||
failurePolicy: Fail | ||
name: vinstrumentationcreateupdate.kb.io | ||
name: vopentelemetrycollectorcreateupdate.kb.io | ||
rules: | ||
- apiGroups: | ||
- opentelemetry.io | ||
|
@@ -88,17 +88,17 @@ webhooks: | |
- CREATE | ||
- UPDATE | ||
resources: | ||
- instrumentations | ||
- opentelemetrycollectors | ||
sideEffects: None | ||
- admissionReviewVersions: | ||
- v1 | ||
clientConfig: | ||
service: | ||
name: webhook-service | ||
namespace: system | ||
path: /validate-opentelemetry-io-v1alpha1-instrumentation | ||
path: /validate-opentelemetry-io-v1alpha1-opentelemetrycollector | ||
failurePolicy: Ignore | ||
name: vinstrumentationdelete.kb.io | ||
name: vopentelemetrycollectordelete.kb.io | ||
rules: | ||
- apiGroups: | ||
- opentelemetry.io | ||
|
@@ -107,17 +107,17 @@ webhooks: | |
operations: | ||
- DELETE | ||
resources: | ||
- instrumentations | ||
- opentelemetrycollectors | ||
sideEffects: None | ||
- admissionReviewVersions: | ||
- v1 | ||
clientConfig: | ||
service: | ||
name: webhook-service | ||
namespace: system | ||
path: /validate-opentelemetry-io-v1alpha1-opentelemetrycollector | ||
path: /validate-opentelemetry-io-v1alpha1-instrumentation | ||
failurePolicy: Fail | ||
name: vopentelemetrycollectorcreateupdate.kb.io | ||
name: vinstrumentationcreateupdate.kb.io | ||
rules: | ||
- apiGroups: | ||
- opentelemetry.io | ||
|
@@ -127,17 +127,17 @@ webhooks: | |
- CREATE | ||
- UPDATE | ||
resources: | ||
- opentelemetrycollectors | ||
- instrumentations | ||
sideEffects: None | ||
- admissionReviewVersions: | ||
- v1 | ||
clientConfig: | ||
service: | ||
name: webhook-service | ||
namespace: system | ||
path: /validate-opentelemetry-io-v1alpha1-opentelemetrycollector | ||
path: /validate-opentelemetry-io-v1alpha1-instrumentation | ||
failurePolicy: Ignore | ||
name: vopentelemetrycollectordelete.kb.io | ||
name: vinstrumentationdelete.kb.io | ||
rules: | ||
- apiGroups: | ||
- opentelemetry.io | ||
|
@@ -146,5 +146,5 @@ webhooks: | |
operations: | ||
- DELETE | ||
resources: | ||
- opentelemetrycollectors | ||
- instrumentations | ||
sideEffects: None |
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.
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.
The order of these is reversing, but is a noop AFAICT