Josh Dolitsky
0b2fec08ac
Upgrade to oras v0.9.0 ( #9269 )
...
* Upgrade to oras v0.9.0
Signed-off-by: Josh Dolitsky <josh@dolit.ski>
* fix test-style
Signed-off-by: Josh Dolitsky <josh@dolit.ski>
4 years ago
Nick Jones
042567808f
Update default ingress values section to correspond with template
...
This commit updates the default section in values.yaml for the example
ingress definition to correspond with the template.
Signed-off-by: Nick Jones <nick@dischord.org>
4 years ago
Matt Farina
e8ac5b0aeb
Merge pull request #9200 from mattfarina/fix-dep-build
...
Signed-off-by: Matt Farina <matt@mattfarina.com>
4 years ago
Matt Farina
1135392b48
Fix dep build with OCI based charts
...
The recent addition of oci:// to specify dependencies in the
Chart.yaml dependencies and with helm pull missed handling for the
dependency build command. This command was failing to handle OCI.
This change adds support for the dep build command following the
same pattern used to add oci:// functionality.
Signed-off-by: Matt Farina <matt@mattfarina.com>
4 years ago
Matt Farina
4bbdd5cb8f
Merge pull request #9195 from mattfarina/bump-version-3.5
...
Signed-off-by: Matt Farina <matt@mattfarina.com>
4 years ago
Guangwen Feng
fee2257e34
Fix typo in comment
...
Signed-off-by: Guangwen Feng <fenggw-fnst@cn.fujitsu.com>
4 years ago
Matt Farina
8082f6db45
bump version to
...
Signed-off-by: Matt Farina <matt@mattfarina.com>
(cherry picked from commit f546ebb1ac
)
4 years ago
Joe Julian
fdcd22ef58
Reduce linting severity for users of out-of-date kubernetes ( #8608 )
...
* Reduce linting severity for users of out-of-date kubernetes
Fixes #8596
Signed-off-by: Joe Julian <me@joejulian.name>
* add more verbose deprecation info
Signed-off-by: Joe Julian <me@joejulian.name>
* use new upstream deprecations
Signed-off-by: Joe Julian <me@joejulian.name>
* do not error for custom resources
Signed-off-by: Joe Julian <me@joejulian.name>
* Define deprecation version in lint rules by LDFLAG
Signed-off-by: Joe Julian <me@joejulian.name>
* make comment clearer
Signed-off-by: Joe Julian <me@joejulian.name>
* Extend the k8s version discovery and constants to chartutil
Signed-off-by: Joe Julian <me@joejulian.name>
* remove awk dependency
Signed-off-by: Joe Julian <me@joejulian.name>
* align k8s version constant names between capabilities.go and deprecations.go
Signed-off-by: Joe Julian <me@joejulian.name>
* show the error if the unexpected happens
Signed-off-by: Joe Julian <me@joejulian.name>
* bump k8sVersionMinor and golden chart templates for k8s 1.20
Signed-off-by: Joe Julian <me@joejulian.name>
* bump for tests to match 1.20.1
Signed-off-by: Joe Julian <me@joejulian.name>
4 years ago
Matt Farina
49f895db6b
Merge pull request #8843 from bloodorangeio/oci-pull
...
Signed-off-by: Matt Farina <matt@mattfarina.com>
4 years ago
Daniel Lipovetsky
1da2212a9d
Add explanatory comments to action.List and action.History
...
While the comments may seem to state the obvious to someone with helm CLI
experience, an SDK-first user may find these comments helpful.
Signed-off-by: Daniel Lipovetsky <dlipovetsky@d2iq.com>
4 years ago
Daniel Lipovetsky
00cf10d360
fix(pkg/storage): If storage.Create fails to clean up recent release versions, return an error
...
Previously, storage.Create was ignoring the error. This meant that a user that
relied on the recent release version cleanup would not be notified if that
cleanup failed, and release versions could grow without bound.
Closes #9145
Signed-off-by: Daniel Lipovetsky <dlipovetsky@d2iq.com>
4 years ago
Daniel Lipovetsky
8c28da6567
test(pkg/storage): Verify that storage.Create returns an error if it fails to clean up least-recent release versions
...
Signed-off-by: Daniel Lipovetsky <dlipovetsky@d2iq.com>
4 years ago
Peter Engelbert
beda5e1e2b
Address error on deletion of old dependencies
...
Signed-off-by: Peter Engelbert <pmengelbert@gmail.com>
4 years ago
Martin Hickey
ba9cad9379
Merge pull request #8484 from chriswells0/subset
...
feat: Allow helm test to run a subset of tests
4 years ago
Matt Farina
f5ef87b96e
Merge pull request #8363 from zh168654/master
...
helm upgrade with --wait support jobs in manifest to be completed
4 years ago
Dinu Mathai
a202fb0c0b
Fixed bug - The flags --cert-file/--key-file where ignored when --insecure-skip-tls-verify flag is set ( #9070 )
...
* fix: Fixed bug - The flags --cert-file/--key-file where ignored when --insecure-skip-tls-verify flag is set
Signed-off-by: Dinu Mathai <Dinu.Mathai1@T-Mobile.com>
* fix: Added unit test
Signed-off-by: Dinu Mathai <Dinu.Mathai1@T-Mobile.com>
4 years ago
Marc Khouzam
bed1a42a39
fix(pkg/chartutil): Remove warning for nils
...
Nil tables should not be reported as non-tables.
Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca>
4 years ago
Matt Farina
fb0345a07f
Updating to sprig 3.2.0
...
Note, randInt is now a function in sprig so the failing test needed
to be updated to a function that does not exist.
Signed-off-by: Matt Farina <matt@mattfarina.com>
4 years ago
Peter Engelbert
f666fceb30
Remove OCI boolean from struct
...
Signed-off-by: Peter Engelbert <pmengelbert@gmail.com>
4 years ago
Peter Engelbert
3028c55858
Clean up imports and add doc comments
...
Additionally, revert `NewPull()` to its existing signature.
Signed-off-by: Peter Engelbert <pmengelbert@gmail.com>
4 years ago
Peter Engelbert
3ad08f3ea9
Implement `helm pull` for OCI registries
...
* Implement `helm dep update` for oci dependencies
* New unit tests
* Remove `helm chart pull` command
* New `helm pull` does not depend on registry cache
Signed-off-by: Peter Engelbert <pmengelbert@gmail.com>
4 years ago
Lüchinger Dominic
cc1d2d62e9
Adds the option kube-cafile and env variable HELM_KUBECAFILE for a overwrite of the certificate authority file
...
Signed-off-by: Lüchinger Dominic <dev@snowgarden.ch>
4 years ago
Marcus Speight
7a663a56c2
Fixed Test
...
Signed-off-by: Marcus Speight <marcus.speight@hotmail.co.uk>
Signed-off-by: Marcus Speight <marcus@pmconnect.co.uk>
4 years ago
Marcus Speight
8aa42824f9
Added test for lint mode
...
Signed-off-by: Marcus Speight <marcus.speight@hotmail.co.uk>
4 years ago
Matthew Fisher
976d668dec
Merge pull request #9048 from MaXinjian/install
...
Cleanup tempfiles introduced by unit tests under pkg/
4 years ago
Matthew Fisher
f228a7c36c
Merge pull request #9057 from ssalaues/fix/ingress-templating-error
...
fix: ingress path issue
4 years ago
rimas
f30badd570
Fix test
...
Signed-off-by: rimas <rmocius@gmail.com>
4 years ago
rimas
ce1a46899f
Fixes #9083
...
Signed-off-by: rimas <rmocius@gmail.com>
4 years ago
Scaat Feng
89f2f84a02
[FIX]error string should not be capitalized
...
Signed-off-by: Scaat Feng <scaat.feng@gmail.com>
4 years ago
Scaat Feng
9020c95fb1
[FIX]comment should start with whitespace
...
Signed-off-by: Scaat Feng <scaat.feng@gmail.com>
4 years ago
Scaat Feng
f1f2e6ff4c
[FIX]comment should start with whitespace
...
Signed-off-by: Scaat Feng <scaat.feng@gmail.com>
4 years ago
Scaat Feng
1852694a65
[FIX]comment should start with whitespace
...
Signed-off-by: Scaat Feng <scaat.feng@gmail.com>
4 years ago
Scaat Feng
14f6bde04a
[FIX]error string should not be capitalized
...
Signed-off-by: Scaat Feng <scaat.feng@gmail.com>
4 years ago
Scaat Feng
0de89685d4
[COMMENT]fix comment
...
Signed-off-by: Scaat Feng <scaat.feng@gmail.com>
4 years ago
Scaat Feng
b6bd8d7363
[FIX]'rest' collides with imported package name
...
Signed-off-by: Scaat Feng <scaat.feng@gmail.com>
4 years ago
Scaat Feng
5c14eec3a3
[FIX]receiver names are different
...
Signed-off-by: Scaat Feng <scaat.feng@gmail.com>
4 years ago
Jon Huhn
5d08a0d00e
Fix typo
...
Signed-off-by: Jon Huhn <huhnjon@gmail.com>
4 years ago
Salim Salaues
50144aad03
fix: ingress path issue
...
Signed-off-by: Salim Salaues <salim@openinvest.co>
4 years ago
Ma Xinjian
1aa6e928ce
Cleanup tempfiles introduced by unit tests under pkg/
...
Signed-off-by: Ma Xinjian <maxj.fnst@cn.fujitsu.com>
4 years ago
Marcus Speight
7a0739a863
Fail message is now the same as the required message.
...
Fixed #8973 Helm function 'fail' should not fail when doing 'helm lint'
Signed-off-by: Marcus Speight <marcus.speight@hotmail.co.uk>
4 years ago
Matt Farina
1cd749359c
Merge pull request #9009 from mattfarina/tests-for-8948
...
Tests for 8948
4 years ago
Matt Farina
a374fffdd9
Merge pull request #8948 from gy-lehel/#7696
...
Signed-off-by: Matt Farina <matt@mattfarina.com>
4 years ago
Matt Farina
82002c3cfb
Added tests for PR 8948
...
LoadFiles needs to load the Chart.yaml file first. When later files
are loaded there are checks for metadata. If that is not loaded
the checks could be handled incorrectly.
Signed-off-by: Matt Farina <matt@mattfarina.com>
4 years ago
Martin Hickey
0ba4fcba87
Merge pull request #8862 from banzaicloud/linter-multiple-documents
...
lint: lint all documents in a multi-doc yaml file
4 years ago
Martin Hickey
6696a9fa5f
Merge pull request #8970 from zerefwayne/patch-8965
...
Add remaining tests in TestDependentChartAliases
4 years ago
Nandor Kracser
dfb5a5e8cc
lint: lint all documents in a multi-doc yaml file
...
Signed-off-by: Nandor Kracser <bonifaido@gmail.com>
4 years ago
Martin Hickey
6ca989e777
Merge pull request #8913 from cvila84/fork-lint-bug
...
do not check YAML if nothing was parsed
4 years ago
Marc Khouzam
e16d26717b
fix(helm): flag descriptions start with lowercase
...
Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca>
4 years ago
Martin Hickey
9c97dc8fa2
Merge pull request #8933 from wawa0210/fix-helm-package-escape-invalid-version
...
Fix invalid semver version number of the helm package command will escape
4 years ago
zh168654
bfc575dec2
add waitwithjobs instead of changing wait api
...
Signed-off-by: zh168654 <zhangye.168@163.com>
4 years ago
zh168654
957d2a2bf9
add wait-for-jobs flag
...
Signed-off-by: zh168654 <zhangye.168@163.com>
4 years ago
zhangye15
bd03e1b5c7
fix style conformance
...
Signed-off-by: zhangye15 <zhangye15@baidu.com>
4 years ago
zhangye15
c96dc48f21
fix test-style error
...
Signed-off-by: zhangye15 <zhangye15@baidu.com>
4 years ago
zh168654
8d498d58e7
add test cases
...
Signed-off-by: zh168654 <zhangye.168@163.com>
4 years ago
zh168654
5825112a8b
helm upgrade with --wait support jobs in manifest to be completed
...
Signed-off-by: zh168654 <zhangye15@baidu.com>
4 years ago
Aayush Joglekar
babc8c9a70
Add remaining tests in TestDependentChartAliases
...
Signed-off-by: Aayush Joglekar <aayushjog@gmail.com>
4 years ago
Martin Hickey
9aa0fbee6c
Merge pull request #8879 from hickeyma/fix/incorrect-lint-msg
...
fix(lint): Lint error message for valid names
4 years ago
Chris Wells
2a7a98ae5a
feat: Allow helm test to run a subset of tests
...
Signed-off-by: Chris Wells <chriswells0@users.noreply.github.com>
4 years ago
wawa0210
2c19838295
Fix that the invalid version number of the helm package command will escape
...
Signed-off-by: wawa0210 <xiaozhang0210@hotmail.com>
4 years ago
Du Zheng
87040536fb
Improve the console output for resource policy keep to align with helm2.
...
Signed-off-by: Du Zheng <zsuzhengdu@gmail.com>
4 years ago
Matt Farina
43b0ef5f20
Merge pull request #8855 from janario/fix/reusabe-kube-client
...
Signed-off-by: Matt Farina <matt@mattfarina.com>
4 years ago
Matt Farina
af2d3021f4
Merge pull request #8952 from mattfarina/fix-8940
...
Signed-off-by: Matt Farina <matt@mattfarina.com>
4 years ago
Matt Farina
c0d3877231
Merge pull request #8915 from zheng1/master
...
Bugfix: panic when chart contains requirements.lock
4 years ago
Zhengyi Lai
9cc00eea24
Add test case for LoadFiles
...
Signed-off-by: Zhengyi Lai <zheng1@yunify.com>
4 years ago
Matt Farina
882db2543c
Fixes Error: could not find protocol handler for
...
A previous update to automate finding charts in repos when update
was run did not take into account the case for no repo being
specified. This fixes that situation.
Closes #8940
Signed-off-by: Matt Farina <matt@mattfarina.com>
4 years ago
Lehel Gyuro
27807e1bb5
[ #7696 ] Avoid crash in chart loader on unexpected file sequence
...
Make sure, that chart metadata is initialized by the time the processing
of the chart is started.
Signed-off-by: Lehel Gyuro <lehel@freemail.hu>
4 years ago
Christophe VILA
8a4c0bc7b1
added test for https://github.com/helm/helm/pull/8913 related to https://github.com/helm/helm/issues/8621
...
Signed-off-by: Christophe VILA <christophe.vila@thalesgroup.com>
4 years ago
Lehel Gyuro
8abb44f218
[ #7696 ] Avoid crash in chart loader on unexpected file sequence
...
Make sure, that chart metadata is initialized by the time the processing
of the chart is started.
Signed-off-by: Lehel Gyuro <lehel@freemail.hu>
4 years ago
Martin Hickey
b83632e757
Update err message to use the regex pattern directly
...
Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
4 years ago
Martin Hickey
5785dd6d49
Fix the lint error message for valid names
...
Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
4 years ago
Christophe VILA
f736af95eb
do not check YAML if nothing was parsed
...
Signed-off-by: Christophe VILA <christophe.vila@thalesgroup.com>
4 years ago
Matt Farina
ce4fa95868
bump version to v3.4.0
...
Signed-off-by: Matt Farina <matt@mattfarina.com>
(cherry picked from commit 7090a89efc
)
4 years ago
Matt Farina
75b7aeaeeb
Merge pull request #7024 from jan25/issue-6972
...
v3: Prettify Updated time in helm list
4 years ago
Matt Butcher
fe2d7f7792
this rewrites a whole bunch of old repo URLs to the new repo URL ( #8902 )
...
Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>
4 years ago
Matt Butcher
5f3e560029
improved user-facing error messages to explain the underlying problem ( #8731 )
...
Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>
4 years ago
Martin Hickey
8667aa4f98
Merge pull request #8874 from consideRatio/pr/helm-create-template-indentation
...
helm create: make generated YAML indentation more consistent
4 years ago
Matthew Fisher
e73af10d0b
Merge pull request #8696 from f0rmiga/patch-1
...
fix: boilerplate template indentation
4 years ago
Erik Sundell
1d9767fea2
helm create: make generated YAML indentation more consistent
...
Signed-off-by: Erik Sundell <erik@sundellopensource.se>
4 years ago
Janario Oliveira
cf3870a57f
Adjusted import
...
Signed-off-by: Janario Oliveira <janario.oliveira@gmail.com>
4 years ago
Janario Oliveira
10a29d1662
Reuse kube-client
...
Signed-off-by: Janario Oliveira <janario.oliveira@gmail.com>
4 years ago
Matt Farina
6297c021cb
Merge pull request #8795 from mattfarina/feat-8767
...
Adding annotation to index.yaml file
4 years ago
Mikuláš Dítě
6aa54eacc5
feat(install): add requested version to error
...
Signed-off-by: Mikuláš Dítě <dite@mangoweb.cz>
4 years ago
Matt Farina
593fec6868
Merge pull request #8807 from mattfarina/feat-8806
...
Adding support for k8s 1.19
4 years ago
zouyu
a167b3fc87
Fix wrong function's name in comment
...
Signed-off-by: zouyu <zouy.fnst@cn.fujitsu.com>
4 years ago
Matt Farina
b7c38c879a
Adding support for k8s 1.19
...
Closes #8806
Signed-off-by: Matt Farina <matt@mattfarina.com>
4 years ago
Abhilash Gnan
3ca46f3b23
remove redudant time func
...
Signed-off-by: Abhilash Gnan <abhilashgnan@gmail.com>
4 years ago
Abhilash Gnan
c5e9732a9f
rename to time format flag
...
Signed-off-by: Abhilash Gnan <abhilashgnan@gmail.com>
4 years ago
Abhilash Gnan
f61332f379
add time-format flag to list command
...
Signed-off-by: Abhilash Gnan <abhilashgnan@gmail.com>
4 years ago
Matt Farina
4c121c3085
Adding annotation to index.yaml file
...
Chart.yaml files have an annotation field that allow a chart to
have custom information similar to the way Kubernetes annotations
work.
In an index.yaml file each chart version can have annotations in
a similar manner to the Chart.yaml file. It is derived from the
same underlying struct.
These enable extension points where people can add their own info.
One thing missing is the ability to extend the top level of an
index file. This change adds annotations to the top level of an
index.yaml file. This would provide top level support for vendors
to extent index.yaml files.
Closes #8767
Signed-off-by: Matt Farina <matt@mattfarina.com>
4 years ago
Mike Ng
3be333b73b
keep existing behavior of returning ErrReleaseNotFound when release(s) failed to decode
...
Signed-off-by: Mike Ng <ming@redhat.com>
4 years ago
Matthew Fisher
b0fdb5461f
Merge pull request #8244 from carlpett/report-findcharturl-error
...
Report what cause finding chart to fail
4 years ago
Sebastian Sdorra
467bd49bb0
support passing signing passphrase from file or stdin ( #8394 )
...
Signed-off-by: Sebastian Sdorra <sebastian.sdorra@cloudogu.com>
4 years ago
Matthew Fisher
f19acbdc94
fix: allow serverInfo field on index files
...
A recent change merged into Helm fixes a number of security issues related to parsing malformed index files. Unfortunately, it also broke the ability for users to load index files from chartmuseum, which adds a "server info" field to add additional metadata.
This commit adds that field so that index files from chartmuseum can be validated. Since Helm does not use this field for anything, the information is discarded and unused.
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
4 years ago
Matthew Fisher
6eeec4a002
switched to stricter YAML parsing on plugin metadata files
...
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
4 years ago
Matt Butcher
809e2d999e
Merge pull request from GHSA-m54r-vrmv-hw33
...
Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>
4 years ago
Matt Butcher
055dd41cbe
Merge pull request from GHSA-jm56-5h66-w453
...
Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>
4 years ago
Matt Butcher
59d5b94d35
Merge pull request from GHSA-9vp5-m38w-j776
4 years ago
Matthew Fisher
aa5431ab71
Merge pull request #8751 from technosophos/fix/helm-create-overwrite
...
fixed bug that caused helm create to not overwrite modified files
4 years ago
Matthew Fisher
2a74204508
go fmt
...
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
4 years ago
Matthew Fisher
84de24edc9
Merge pull request #8752 from technosophos/fix/better-http-plugin-checks
...
improve the HTTP detection for tar archives
4 years ago