Fabian Ruff
cb81b07125
Reintroduce --is-upgrade to template command
...
This change allows correct rendering of manifests for the upgrade case using `helm template`.
Signed-off-by: Fabian Ruff <fabian.ruff@sap.com>
5 years ago
Matthew Fisher
17ec5cd3e7
Merge pull request #7138 from GrahamGoudeau/template-crds
...
Add a flag to allow template to output CRDs
5 years ago
Matt Butcher
0e42a77ae6
improved the error message for failed package signing ( #6948 )
...
Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>
5 years ago
Matt Farina
0b9e24d824
Merge pull request #7026 from sco11morgan/remove-lint-chart-name-check
...
fix(lint): Remove requirement that directory name and chart name match
5 years ago
Matt Farina
4a01b1603b
Merge pull request #7136 from VilledeMontreal/fix/getValuesClusterCheck
...
fix(cli): IsReachable check for "get values"
5 years ago
Matt Farina
893e8de183
Merge pull request #7071 from SvenskaSpel/issue-7055-helm-pull-ca-file-usage
...
Fixes #7055 helm pull ca file usage
5 years ago
海的澜色
e062146db3
fix "Chart.lock is out of sync with Chart.yaml" ( #7119 )
...
* fixed #7101
Signed-off-by: zwwhdls <zwwhdls@hotmail.com>
* add test case
Signed-off-by: zwwhdls <zwwhdls@hotmail.com>
* fix lint error
Signed-off-by: zwwhdls <zwwhdls@hotmail.com>
* rename testcase
Signed-off-by: zwwhdls <zwwhdls@hotmail.com>
5 years ago
Graham Goudeau
01aa1bd3a2
Add a flag to allow template to output CRDs
...
Signed-off-by: Graham Goudeau <graham.goudeau@solo.io>
5 years ago
Marc Khouzam
bf4cc97bbe
fix(cli): IsReachable check for "get values"
...
The 'helm get values' has its own Run() method in the action package.
So, unlike the other 'get' variants, it needs to check for the
reachability of the cluster itself.
Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca>
5 years ago
海的澜色
750b870aed
fix stack overflow error ( #7114 )
...
* fixed #7111
Signed-off-by: zwwhdls <zwwhdls@hotmail.com>
* update error message
Signed-off-by: zwwhdls <zwwhdls@hotmail.com>
* add test case
Signed-off-by: zwwhdls <zwwhdls@hotmail.com>
* fix lint error
Signed-off-by: zwwhdls <zwwhdls@hotmail.com>
5 years ago
Geoff Baskwill
b8605c8d36
test(pkg): add unit tests for tar file edge cases
...
Adding unit tests for an issue that has come up multiple times
where the archive processing code doesn't take into account the
`tar.TypeXHeader` / `tar.TypeXGlobalHeader` entries that GitHub
adds when creating a release archive for a chart, for example
`https://github.com/org/repo/master.tar.gz `.
Signed-off-by: Geoff Baskwill <me@geoffbaskwill.ca>
5 years ago
chloel
48704034a9
fix: ignore pax header files in chart validation
...
Signed-off-by: chloel <chloeleeq@gmail.com>
5 years ago
Matthew Fisher
456eb7f411
Merge pull request #6946 from bacongobbler/fix-6939
...
fix(install): log the error when recording the release
5 years ago
Andreas Stenius
4c4328398e
chart_downloader: fix lint issue.
...
Signed-off-by: Andreas Stenius <andreas.stenius@svenskaspel.se>
5 years ago
Andreas Stenius
0f0aa6b432
chart_downloader: avoid overriding TLS options from command flags when not setup in repo config.
...
Signed-off-by: Andreas Stenius <andreas.stenius@svenskaspel.se>
5 years ago
Andreas Stenius
d3ad6f9c78
cli/pull: pass TLS config to chart downloader from flags. ( #7055 )
...
Signed-off-by: Andreas Stenius <andreas.stenius@svenskaspel.se>
5 years ago
Andreas Stenius
d6c13616fa
chart_downloader: add TLS client config to options from repo config. ( #7055 )
...
Signed-off-by: Andreas Stenius <andreas.stenius@svenskaspel.se>
5 years ago
Andreas Stenius
e3f49085cc
chart_downloader: add test to verify that http opts are used correctly. ( #7055 )
...
Signed-off-by: Andreas Stenius <andreas.stenius@svenskaspel.se>
5 years ago
Scott Morgan
32ce016054
fix(lint): Remove requirement that directory name and chart name match
...
Signed-off-by: Scott Morgan <morgandev@gmail.com>
5 years ago
Scott Morgan
eb833ccead
remove unused variable
...
Signed-off-by: Scott Morgan <morgandev@gmail.com>
5 years ago
Scott Morgan
8a8463e08d
fix(lint): Remove requirement that directory name and chart name match
...
Signed-off-by: Scott Morgan <morgandev@gmail.com>
5 years ago
Daniel Strobusch
8889625af6
fix: change error message to contain correct field name
...
When reporting an incompatible Kubernetes version, due to a version constraint from the kubeVersion field, the error message should report with the correct field name.
Signed-off-by: Daniel Strobusch <1847260+dastrobu@users.noreply.github.com>
5 years ago
Taylor Thomas
ecb55c1de7
fix(wait): Adds support for waiting on v1 apiextensions for CRDs
...
This was a missed update when we updated the k8s libraries. I validated
that this works for CRD installs with v1beta1 and v1
Signed-off-by: Taylor Thomas <taylor.thomas@microsoft.com>
5 years ago
Matthew Fisher
e91feed1a3
fix(install): log the error when recording the release
...
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
5 years ago
Matthew Fisher
9be2445da5
Merge pull request #6943 from hangpark/fix/resolve-repo-alias-before-build
...
fix(pkg/downloader): Resolve repo alias before checking digests on build
5 years ago
Hang Park
0987c6f7b9
fix(pkg/downloader): resolve repo alias before checking digests on build
...
`Update()` gets repo names before resolving a lock file by calling
`resolveRepoNames(req)`. But that method changes aliased repo URLs into
the actual URLs. That makes digests from `helm update` and `helm build`
be different for each other.
To make them in sync, setting actual (resolved) repo URLs into the
loaded chart during `helm build` is necessary. Thus, this commit adds an
extra step in the `Build()` implementation.
For comments, this commit also changes the name of `getRepoNames()` into
`resolveRepoNames()` to avoid misunderstanding since getters are
expected to not mutate their input data in general.
Signed-off-by: Hang Park <hangpark@kaist.ac.kr>
5 years ago
Hang Park
17553db485
fix(pkg/downloader): add failing test for build with repo alias
...
Signed-off-by: Hang Park <hangpark@kaist.ac.kr>
5 years ago
Matthew Fisher
b30467c2e5
fix(strvals): port #3912 , #4142 , #4682 , and #5151 to Helm 3
...
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
5 years ago
Matthew Fisher
aa6104e442
fix(tlsutil): accept only a CA certificate for validation
...
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
5 years ago
Matt Butcher
865c46c014
fix: stop discovery errors from halting chart rendering. ( #6908 )
...
This blocks a particular error (caused by upstream discovery client),
printing a warning instead of failing. It's not a great solution, but is
a stop-gap until Client-Go gets fixed.
Closes #6361
Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>
5 years ago
Matthew Fisher
bd1f4a443e
fix(show): restore comments from raw values
...
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
5 years ago
Matthew Fisher
3d6db86b4a
Merge pull request #6865 from bacongobbler/fix-6635
...
fix(getter): set up TLS options during .Get()
5 years ago
Taylor Thomas
4b462c3902
Merge pull request #6869 from databus23/compare-ns
...
Consider namespace when comparing resources
5 years ago
Fabian Ruff
7f7e90b407
Consider namespace when comparing resources
...
Fixes #6857
Signed-off-by: Fabian Ruff <fabian.ruff@sap.com>
5 years ago
Matthew Fisher
c9b127c3ee
fix(getter): set up TLS options during .Get()
...
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
5 years ago
Matthew Fisher
668f51bfdf
fix(chart): add JSON tags to chart object
...
Go capitalizes field names by default.
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
5 years ago
Matt Farina
9f1dc3b0d5
Merge pull request #6750 from ysh7/support-cross-device-rename-v3
...
Support cross device rename for helm v3
5 years ago
Matthew Fisher
42dea4427b
Merge pull request #6837 from bacongobbler/fix-6600
...
fix(action): strip file extensions from name
5 years ago
Matthew Fisher
bf012282c8
fix(action): strip file extensions from name
...
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
5 years ago
Matthew Fisher
469bb6b0bd
Merge pull request #6836 from bacongobbler/fix-6805
...
fix(kube): return error when object cannot be patched
5 years ago
Jeff Bachtel
2e1c54855e
Add namespace option to example kubectl command
...
Signed-off-by: Jeff Bachtel <jeff.bachtel@ironnetcybersecurity.com>
5 years ago
Matthew Fisher
9ba574f130
Merge pull request #6821 from lamLeX/fix-6820
...
Porting commit f5986db184
5 years ago
Matthew Fisher
a505f91073
fix(kube): return error when object cannot be patched
...
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
5 years ago
Kamalashree Nagaraj
73db724c6c
feat(helm): add linting support for '.tar.gz' tarballs for helm charts ( #6829 )
...
When 'helm3 lint <chart-name>.tar.gz' is run, this will lint Chart.yaml in the package
Closes #6535
Signed-off-by: Kamalashree N <nagaraj.kamalashree@gmail.com>
5 years ago
Lam Le
afda6b4940
Porting fix from commit f5986db184
...
This port fixes the bug #6820 for helm3
which was fixed in helm2 with the pull request 4850
https://github.com/helm/helm/pull/4850
Signed-off-by: Lam Le <lam281990@gmail.com>
5 years ago
Matthew Fisher
2033853d8c
Merge pull request #6822 from bacongobbler/security-audit
...
fix(loader): error out when loading irregular files
5 years ago
Taylor Thomas
b6f5762d46
fix(chartutil): Add the v1 apiextensions to the default scheme
...
Signed-off-by: Taylor Thomas <taylor.thomas@microsoft.com>
5 years ago
Taylor Thomas
9322910eb9
Merge pull request #6812 from mumoshu/fix-misisng-apiextensionsv1beta1-on-template-cmd
...
fix(v3): Allow rendering CRDs in `helm template` client-only validation
5 years ago
Taylor Thomas
6a91263e38
fix(releaseutil): Removes API version checks from kind sorter
...
The sorting method for manifests contained a check to see if the API
version existed. This violates separation of concerns as the sorter
should just sort and leave validation to other parts of the code.
Signed-off-by: Taylor Thomas <taylor.thomas@microsoft.com>
5 years ago
Matthew Fisher
5a7d4f1f74
fix(loader): error out when loading irregular files
...
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
5 years ago