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

Improve handling of default namespace for Helm charts #934

Merged
merged 2 commits into from Jan 7, 2020

Conversation

lblackstone
Copy link
Member

@lblackstone lblackstone commented Dec 30, 2019

Proposed changes

Use the namespace parameter of helm.v2.Chart as a default,
and set it on known namespace-scoped resources.

TODO:

Add support to other SDKs:

  • Python

Related issues (optional)

Fixes #217

@lblackstone
Copy link
Member Author

lblackstone commented Dec 30, 2019

Ideally, this logic should be moved into the provider and called from the SDKs using invoke, but that will be part of a larger refactoring effort to bring helm support directly into the provider. This may be useful enough to merge prior to that.

Done

@lblackstone lblackstone force-pushed the lblackstone/default-helm-namespace branch from 3d98df8 to c4b4534 Compare January 7, 2020 01:20
@lblackstone lblackstone marked this pull request as ready for review January 7, 2020 18:36
and set it on known namespace-scoped resources.
@lblackstone lblackstone force-pushed the lblackstone/default-helm-namespace branch from 725dc06 to 6ab60c9 Compare January 7, 2020 18:45
pkg/kinds/kinds.go Show resolved Hide resolved
@lblackstone lblackstone merged commit 2652b10 into master Jan 7, 2020
@pulumi-bot pulumi-bot deleted the lblackstone/default-helm-namespace branch January 7, 2020 19:28
lblackstone added a commit that referenced this pull request Jan 8, 2020
lblackstone added a commit that referenced this pull request Jan 8, 2020
* Revert "Improve handling of default namespace for Helm charts (#934)"

This reverts commit 2652b10.

* Revert "Move YAML decode logic into provider (#925)"

This reverts commit c75f754.
lblackstone added a commit that referenced this pull request Jan 16, 2020
Reintroduce the reverted changed (#941) from #925 and #934 with a few
additional fixes related to the changes in #946.

The major changes include the following:

- Use a runtime invoke to call a common decodeYaml method in the
provider rather than using YAML libraries specific to each language.
- Use the namespace parameter of helm.v2.Chart as a default,
and set it on known namespace-scoped resources.
lblackstone added a commit that referenced this pull request Jan 16, 2020
Reintroduce the reverted changed (#941) from #925 and #934 with a few
additional fixes related to the changes in #946.

The major changes include the following:

- Use a runtime invoke to call a common decodeYaml method in the
provider rather than using YAML libraries specific to each language.
- Use the namespace parameter of helm.v2.Chart as a default,
and set it on known namespace-scoped resources.
lblackstone added a commit that referenced this pull request Jan 21, 2020
…ces (#952)

Reintroduce the reverted changed (#941) from #925 and #934 with a few
additional fixes related to the changes in #946.

The major changes include the following:

- Use a runtime invoke to call a common decodeYaml method in the
provider rather than using YAML libraries specific to each language.
- Use the namespace parameter of helm.v2.Chart as a default,
and set it on known namespace-scoped resources.
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.

helm: apply namespace default transformation
2 participants