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

feat(operator): Copy annotations from parent resource if not defined on pod #305

Merged
merged 41 commits into from
Nov 14, 2022

Conversation

mowies
Copy link
Member

@mowies mowies commented Nov 3, 2022

Fixes #67

@mowies mowies force-pushed the annotations-from-upper-level-resource branch from f07b63f to 9fc9a78 Compare November 3, 2022 14:38
@codecov-commenter
Copy link

codecov-commenter commented Nov 7, 2022

Codecov Report

Merging #305 (64bccea) into main (277be10) will increase coverage by 4.48%.
The diff coverage is 78.33%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #305      +/-   ##
==========================================
+ Coverage   19.45%   23.94%   +4.48%     
==========================================
  Files          13       14       +1     
  Lines        1074     1466     +392     
==========================================
+ Hits          209      351     +142     
- Misses        850     1097     +247     
- Partials       15       18       +3     
Impacted Files Coverage Δ
operator/webhooks/pod_mutating_webhook.go 36.22% <78.33%> (ø)
Flag Coverage Δ
keptn-lifecycle-operator 27.38% <78.33%> (+4.06%) ⬆️
scheduler 4.52% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@mowies mowies force-pushed the annotations-from-upper-level-resource branch 2 times, most recently from 335f343 to 9342df3 Compare November 9, 2022 10:30
@mowies mowies marked this pull request as ready for review November 9, 2022 11:55
@mowies mowies changed the title feat: Copy annotations from parent resource if not defined on pod feat(operator): Copy annotations from parent resource if not defined on pod Nov 9, 2022
operator/webhooks/pod_mutating_webhook.go Outdated Show resolved Hide resolved
operator/webhooks/pod_mutating_webhook.go Show resolved Hide resolved
operator/webhooks/pod_mutating_webhook.go Show resolved Hide resolved
operator/webhooks/pod_mutating_webhook.go Outdated Show resolved Hide resolved
@mowies mowies marked this pull request as draft November 9, 2022 13:05
@mowies mowies force-pushed the annotations-from-upper-level-resource branch from ec1d71c to 92773fd Compare November 10, 2022 14:58
mowies and others added 21 commits November 14, 2022 10:20
Signed-off-by: Moritz Wiesinger <[email protected]>
Signed-off-by: Moritz Wiesinger <[email protected]>
Signed-off-by: Moritz Wiesinger <[email protected]>
Signed-off-by: Moritz Wiesinger <[email protected]>
Signed-off-by: Moritz Wiesinger <[email protected]>
Signed-off-by: Moritz Wiesinger <[email protected]>
Signed-off-by: Moritz Wiesinger <[email protected]>
Signed-off-by: Moritz Wiesinger <[email protected]>
Signed-off-by: Moritz Wiesinger <[email protected]>
Signed-off-by: Moritz Wiesinger <[email protected]>
Signed-off-by: Moritz Wiesinger <[email protected]>
Signed-off-by: Florian Bacher <[email protected]>
@bacherfl bacherfl force-pushed the annotations-from-upper-level-resource branch from 5eca9da to 13e8e20 Compare November 14, 2022 09:21
Signed-off-by: Florian Bacher <[email protected]>
@RealAnna RealAnna marked this pull request as ready for review November 14, 2022 09:26
Copy link
Contributor

@RealAnna RealAnna left a comment

Choose a reason for hiding this comment

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

LGTM!

@bacherfl bacherfl merged commit c21f015 into keptn:main Nov 14, 2022
@keptn-bot keptn-bot mentioned this pull request Nov 14, 2022
@mowies mowies deleted the annotations-from-upper-level-resource branch November 14, 2022 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Propagate Deployment/StatefulSet/Daemonset Annotations to the Pods
5 participants