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

[helm] Don't pass opts to child resources #1539

Merged
merged 2 commits into from
Apr 27, 2021
Merged

Conversation

lukehoban
Copy link
Member

@lukehoban lukehoban commented Apr 23, 2021

The opts passed to a component should be passed to its super call, but not to its children. Child resources automatically inherit those options that they should from their parent - so the resource options applied to a parent should not also be passed down to children explicitly.

In 3 of the 8 implementations of Helm Chart in this codebase, we were passing the component opts to the children. In the other 5 we were (correctly) not passing them.

Fixes #1538

The `opts` passed to a component should be passed to it's `super` call, but not to it's children.  Child resources automatically inherit those options that they should from their parent - so the resource options applied to a parent should not also be passed down to cildren explicitly.

In 3 of the 8 implementations of Helm Chart in this codebase, we were passing the component opts to the children.  In the other 5 we were (correctly) not passing them.

Fixes #1538
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.

Transformations doubled for k8s.helm.v3.Chart
2 participants