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

chore: centralize handling of container decorator order #1193

Merged
merged 1 commit into from
May 10, 2023

Conversation

iocanel
Copy link
Member

@iocanel iocanel commented May 10, 2023

The pull request move containers dekorator order handling (before / after) methods to the ApplicationContainerDecorator class. Also, adds ApplicatonContainerDecorators to run after AddInitContainerDecorator.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@iocanel iocanel requested a review from Sgitario May 10, 2023 10:30
@iocanel
Copy link
Member Author

iocanel commented May 10, 2023

@Sgitario: AddInitContainerDecorator was not ordered correctly. With this change all of our existing decorators that modify containers (extending ApplicationContainerDecorator) should run after AddInitContainerDecorator.

So, theoretically we should be able to change image, command, args, env etc (for init containers) without introducing new decorators.

Copy link
Collaborator

@Sgitario Sgitario left a comment

Choose a reason for hiding this comment

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

Awesome!

@iocanel iocanel merged commit 4b117db into dekorateio:main May 10, 2023
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.

2 participants