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

Support inherited annotations for all major objects #1236

Merged
merged 18 commits into from Dec 11, 2020
Merged

Conversation

FxKu
Copy link
Member

@FxKu FxKu commented Nov 27, 2020

In preparation for an inherited annotations feature, similar to inherited labels, to estimate how much it would take.

@Jan-M Jan-M changed the title add comments where inherited annotations could be added Support inherited annotations for all major objects Dec 8, 2020

return nil
}

Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure if returning nil is used anywhere, can simply return annotations.

Copy link
Member Author

Choose a reason for hiding this comment

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

it should return nil if there are no Annotations defined in the config and on the resource. For example TestGeneratePodDisruptionBudget fails for me if I return an empty map as this test does not define any Annotations at all. I have also added this behavior to the AnnotationsToPropagate function, too.

@FxKu
Copy link
Member Author

FxKu commented Dec 11, 2020

👍

1 similar comment
@RafiaSabih
Copy link
Contributor

👍

@FxKu FxKu merged commit 6a97316 into master Dec 11, 2020
@FxKu FxKu added this to the 1.6 milestone Dec 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants