Brice Rising
3469c9a17c
Skip inaccessible file tests for root
...
Root can access all files, so the tests for inaccessible files were failing. Now we will skip these tests when running as root.
Signed-off-by: Brice Rising <brice.rising@slalom.com>
5 years ago
Brice Rising
60bd2a56fd
Remove dep/internal/test dependency
...
Recreated the features of the test package in dep that were necessary to run the tests in the fs package.
Signed-off-by: Brice Rising <brice.rising@slalom.com>
5 years ago
Brice Rising
51dbd7c1a6
Removed unused methods from fs package
...
The fs package tests are going to be a lot of work to get working without the internal test package used by golang/dep, so I removed all of the unused ones by this project to make the work easier.
Signed-off-by: Brice Rising <brice.rising@slalom.com>
5 years ago
Brice Rising
94d87ef95d
Fix rename for helm dep upgrade
...
helm dependency upgrade wasn't working on certain file system because it assumes that os.rename is available. Since rename isn't available for subfolders in docker containers, I ripped a fallback rename strategy from dep (5b1fe9e6d8/internal/fs/fs.go (L103-L118)
) that works in docker.
Signed-off-by: Brice Rising <brice.rising@slalom.com>
5 years ago
Matthew Fisher
8489290300
fix(sympath): walk symbolic links one once
...
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
5 years ago
Matthew Fisher
33bb88851d
fix(kube): fix race condition
...
.Get() calls perform() on a list of infos, populating two shared maps. perform() now concurrently calls the ResourceActorFunc concurrently based on GVK, causing a data race condition in .Get()
This fixes that condition by locking the function to ensure these functions run serially for Helm 2 to fix the data race condition. This has since been optimized in Helm 3 so it's no longer an issue.
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
5 years ago
Matthew Fisher
7afbddfba2
bump version to v2.15
...
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
5 years ago
Matthew Fisher
14841258e0
Merge pull request #6590 from hickeyma/refactor-chart-create
...
Update Ingress API group in scaffold chart
5 years ago
Matthew Fisher
024f168bdf
Merge pull request #6612 from bacongobbler/rebase-6167
...
feat(test): add `--logs` to `helm test`
5 years ago
Matthew Fisher
9b9dcebea8
fix(kube): watch events from a matching pod
...
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
5 years ago
Guangming Wang
ecf9afbe06
fix file mode,it should be octal expressed
...
Signed-off-by: Guangming Wang <guangming.wang@daocloud.io>
5 years ago
Martin Hickey
146f4315d3
Update Ingress API group in scaffold chart
...
Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
5 years ago
Karuppiah Natarajan
519ccac294
fix repo url being decoded while downloading repo index ( #6060 )
...
Signed-off-by: Karuppiah Natarajan <karuppiah7890@gmail.com>
5 years ago
Matthew Fisher
ca7a719c96
rebase from master, regenerate proto files
...
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
5 years ago
Jeff Knurek
ef5d4e652c
change GetPodLogs to return io.Reader instead of string
...
well, more specifically returns an io.ReadCloser (giving the consumer more capabilities)
Signed-off-by: Jeff Knurek <j.knurek@travelaudience.com>
5 years ago
Jeff Knurek
7f2e0c535c
return error is client not set
...
Signed-off-by: Jeff Knurek <j.knurek@travelaudience.com>
5 years ago
Jeff Knurek
a2e8b188c2
TEST: add some rudimentary test code for helm test logs
...
Signed-off-by: Jeff Knurek <j.knurek@travelaudience.com>
5 years ago
Jeff Knurek
6529abe85f
TEST: cleanup code
...
Signed-off-by: Jeff Knurek <j.knurek@travelaudience.com>
5 years ago
Jeff Knurek
b94608388e
TEST: add option to dump logs during helm test
...
Signed-off-by: Jeff Knurek <j.knurek@travelaudience.com>
5 years ago
Matthew Fisher
fb2cbb0019
Merge pull request #6578 from bacongobbler/fix-3442
...
fix(helm): Accept dependency in requirements.yaml from charts directory
5 years ago
Matthew Fisher
74653d3794
fix: return more information to the user
...
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
5 years ago
Matthew Fisher
a31d4ad43e
fix: use nonexistent rather than inexistent
...
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
5 years ago
Taylor Thomas
4e8063b103
Merge pull request #5177 from adshmh/5150-lint-development-version-flag
...
Allow lint command to parse pre-release charts
5 years ago
Taylor Thomas
730e8f3e27
Merge pull request #5392 from bnookala/add-template-api-versioning
...
Allow customization of API Versions when using Helm Template
5 years ago
Matthew Fisher
b6afc6bf46
Merge pull request #4985 from bkeroackdsc/client-accept-contexts
...
Helm client: add methods that accept contexts
5 years ago
Benjamen Keroack
545e2213be
helm client: add methods that accept contexts so callers can cancel long-running operations
...
Signed-off-by: Benjamen Keroack <benjamen@dollarshaveclub.com>
5 years ago
Bhargav Nookala
300aa76d8d
Allow customization of API Versions when using Helm Template with --api-versions or -a
...
Signed-off-by: Bhargav Nookala <nooknb@gmail.com>
5 years ago
Taylor Thomas
5437dd4d05
Merge pull request #5611 from cgetzen/cg/kube_create_goroutine
...
Performance: Batch kube API operations
5 years ago
Ting-Wai
ed8f17a889
Parameterize maximum number of tests pods to run in parallel ( #6078 )
...
Signed-off-by: Ting-Wai To <tingwai@bitgo.com>
5 years ago
Charlie Getzen
6b2f408f8e
Merge branch 'master' of https://github.com/kubernetes/helm into cg/kube_create_goroutine
5 years ago
Sebastien Plisson
99b8a0d0d7
Removed test requiring repository field to allow local chart dependency
...
Signed-off-by: Sebastien Plisson <sebastien.plisson@gmail.com>
5 years ago
Sebastien Plisson
e8ab69ccc6
missing test file
...
Signed-off-by: Sebastien Plisson <sebastien.plisson@gmail.com>
5 years ago
Sebastien Plisson
8537bb5c42
Added test cases for chart present under charts folder
...
Signed-off-by: Sebastien Plisson <sebastien.plisson@gmail.com>
5 years ago
Sebastien Plisson
21edd808b6
#3321 Accept dependency in requirements.yaml from charts directory.
...
Signed-off-by: Sebastien Plisson <sebastien.plisson@gmail.com>
5 years ago
Matthew Fisher
cf30db50f5
Merge pull request #5298 from jordansissel/issue/5296/error-hinting
...
Extra hint in the error when failing to open a chart file.
5 years ago
Matthew Fisher
51f5ae9873
Merge pull request #6577 from bacongobbler/fixup-6334
...
upgrade Go to 1.13.1
5 years ago
Matthew Fisher
caff38ffa1
fix(generator): fixup package comment linting error
...
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
5 years ago
Matthew Fisher
d8d56fe111
Merge pull request #5610 from adshmh/feat-5552-fix-root-folder-files-error
...
improve error message for content outside base dir
5 years ago
Charlie Getzen
02ccb33bdc
use WaitGroup instead of channels and counters
...
Signed-off-by: Charlie Getzen <charlie.getzen@procore.com>
5 years ago
Matthew Fisher
7fd770ca1b
Merge pull request #6274 from kensipe/env-test-fix
...
fixes resetting os env after test run
5 years ago
Matthew Fisher
59ea688813
Merge pull request #5428 from walkafwalka/fix/plugin-tar-extract-perms
...
Preserve file permissions from tarball during plugin install
5 years ago
Matt Farina
a55af70ea8
Merge branch 'master' into 5044-add-app-version-to-history
5 years ago
Matthew Fisher
3bc2b5b1db
Merge pull request #5264 from ds-ms/waitIngress
...
Wait for ingress host to be ready
5 years ago
Abejide Femi
d251b94efc
refactor manager file in pkg folder ( #6551 )
...
Signed-off-by: abejidefemi1@gmail.com <abejidefemi1@gmail.com>
5 years ago
Matthew Fisher
0171f9b9ed
Merge pull request #5789 from perher/no-wait-paused
...
Skip waiting for paused deployments
5 years ago
Charlie Getzen
8dd89867ff
Add check on empty list
...
Signed-off-by: Charlie Getzen <charlie.getzen@procore.com>
5 years ago
Matthew Fisher
61be4e65d9
Merge pull request #5345 from longkb/replace_http_by_https
...
Replacing 'HTTP' by 'HTTPS' for securing links
5 years ago
Matthew Fisher
2e871267de
Merge pull request #4783 from derkoe/fix-requirement-condition
...
fix(pkg/chartutil): conditions for alias and umrella charts (#3734 )
5 years ago
Matthew Fisher
3b51dfbdbc
Merge pull request #3478 from hypnoglow/expose-repofile-get
...
ref(helm): expose Get for repository file
5 years ago
Till Hoffmann
8648ccf5d3
fixed typo
...
Signed-off-by: Till Hoffmann <till.hoffmann@enforge.de>
5 years ago
yuxiaobo96
0b229bdd04
Improve the quality of the document ( #6510 )
...
Signed-off-by: yuxiaobo <yuxiaobogo@163.com>
5 years ago
Matthew Fisher
17359e3f0d
Merge pull request #6499 from yuxiaobo96/helm-update6
...
fix typos
5 years ago
陈谭军
9d8a84ee3d
fix-up typo ( #6501 )
...
Signed-off-by: chentanjun <2799194073@qq.com>
5 years ago
yuxiaobo
58c004bb89
Improve the quality of annotations
...
Signed-off-by: yuxiaobo <yuxiaobogo@163.com>
5 years ago
Matt Farina
7a0bbe16a0
Merge pull request #6457 from mattfarina/update-deps
...
Updating to newer versions of dependencies
5 years ago
Taylor Thomas
7d9a6509fa
Merge pull request #6258 from daixiang0/fix-stable
...
fix issue when dependency not in cache
5 years ago
Matt Farina
aa4dae0535
Updating to newer versions of dependencies
...
* This was initiated by new versions from Masterminds
* Linting was set to check for the same chart version as the other
checks of this were. >0.0.0-0. The -0 is important to pull in
prereleases. The latest version of semver Validate now finds
errors here properly where some were missed before
* 0.0.0 is a valid semantic version. Instead of expecting it to be
invalid in the tests to check validation now using an invalid
semantic version
Signed-off-by: Matt Farina <matt@mattfarina.com>
5 years ago
Xiang Dai
05d5ff4747
update test
...
Signed-off-by: Xiang Dai <764524258@qq.com>
5 years ago
Xiang Dai
b49f4269c5
fix issue when dependency is URL
...
Signed-off-by: Xiang Dai <764524258@qq.com>
5 years ago
Richard Connon
55ccdd040d
Use watcher with retries to wait for resources
...
When waiting for resources use the `ListWatchUntil` instead of
`UntilWithoutRetry` so that if the connection drops between tiller and
the API while waiting the operation can still succeed.
Signed-off-by: Richard Connon <richard.connon@oracle.com>
5 years ago
Taylor Thomas
70af7ba4db
Merge pull request #6271 from 928234269/patch-1
...
fix typo
5 years ago
Gasmi Christophe
256765aa74
Networkpolicy kind sort ( #6266 )
...
* Add NetworkPolicy in kind sorter
Signed-off-by: Christophe GASMI <rekcah78@gmail.com>
* Added NetworkPolicy to sort order test
Signed-off-by: Christophe GASMI <rekcah78@gmail.com>
5 years ago
Adam Eijdenberg
f8f8b5d076
Add test for subchart with null value ( #6146 )
...
Signed-off-by: Adam Eijdenberg <adam@continusec.com>
5 years ago
Ken Sipe
c839363f16
fixes resetting os env after test run
...
Signed-off-by: Ken Sipe <kensipe@gmail.com>
5 years ago
Sakura
627283ac74
fix typo
...
Signed-off-by: Sakura <longfei.shang@daocloud.io>
5 years ago
Xiang Dai
66974afddb
remove duplicate check
...
Signed-off-by: Xiang Dai <764524258@qq.com>
5 years ago
Taylor Thomas
f4a55985b6
Merge pull request #6080 from deitmerit/fix/subchart-value-deletion
...
Fix subchart value deletion
5 years ago
Martin Hickey
dd4afa6af0
Fail to load charts that are not v1 apiVersion ( #6180 )
...
Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
5 years ago
Scott Rigby
d7f32def39
Merge pull request #5622 from scottrigby/chartutil-create-improve-getting-lb-service-address-notes
...
fix(pkg/chartutil): Improve getting LoadBalancer address in NOTES.txt
5 years ago
AllenZMC
e9ea2e0d15
fix some log typos in tlsutil_test.go
...
Signed-off-by: czm <zhongming.chang@daocloud.io>
5 years ago
AllenZMC
7b0a407ff7
fix mis-spelling in manager.go
...
Signed-off-by: czm <zhongming.chang@daocloud.io>
5 years ago
AllenZMC
53f1ab50e5
fix wrong spells in hooks.go
...
Signed-off-by: czm <zhongming.chang@daocloud.io>
5 years ago
AllenZMC
915d69a2c6
fix word 'resoures' to 'resources
...
Signed-off-by: czm <zhongming.chang@daocloud.io>
5 years ago
AllenZMC
6b5ab08a61
fix word 'efault' to 'default'
...
Signed-off-by: czm <zhongming.chang@daocloud.io>
5 years ago
AllenZMC
b788e3dce9
fix word 'potgres' to 'postgres'
...
Signed-off-by: czm <zhongming.chang@daocloud.io>
5 years ago
dinesh reddy
d600c92724
Clean code: delete commented code
...
Signed-off-by: dinesh reddy <dinesh.reddy@bestbuy.com>
5 years ago
AllenZMC
6485fec309
fix word `constrint` to `constraint`
...
Signed-off-by: czm <zhongming.chang@daocloud.io>
5 years ago
Yusuke Kuoka
ae52477fbd
fix: upgrade with CRD changes
...
Probably since K8s 1.13.x, `converter.ConvertToVersion(info.Object, groupVersioner)` which is the body of `asVersioned` doesn't return an error or an "unstructured" object, but `apiextensions/v1beta1.CustomResourceDefinition`.
The result was `helm upgrade` with any changes in CRD consistently failing.
This fixes that by adding an additional case of the conversion result being `v1beta1.CustomResourceDefinition`.
This is a backward-compatible change as it doesn't remove existing switch cases for older K8s versions.
Fixes #5853
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
5 years ago
ethan
c086f78583
cleanup: error message typos in sql.go
...
Signed-off-by: ethan <guangming.wang@daocloud.io>
5 years ago
Stefan Deitmer
e53613db3f
Fix subchart values not being deleted by setting value to nil in parent chart's values
...
Signed-off-by: Stefan Deitmer <stefan.deitmer@gec.io>
5 years ago
Tariq Ibrahim
276bb9b1c8
fix golint issues reported by make test
...
Signed-off-by: Tariq Ibrahim <tariq181290@gmail.com>
5 years ago
Martin Hickey
d953c6875c
Merge pull request #6039 from Constantin07/add_hpa_to_sorting_order
...
Added HPA to sort order.
5 years ago
Constantin Bugneac
535df90cc8
Added HorizontalPodAutoscaler to sort order.
...
Signed-off-by: Constantin Bugneac <constantin.bugneac@worldfirst.com>
5 years ago
Matthew Fisher
88bb48bc6f
Merge pull request #6010 from icanhazbroccoli/icanhazbroccoli/chartutil-no-scientific-notation
...
chartutil.ReadValues is forced to unmarshal numbers into json.Number refs #1707
5 years ago
Seb Ospina
320e853b8d
Added List mode for Role, ClusterRole and Bindings
...
Kubernetes supports RoleList, RoleBindingList, ClusterRoleList and
ClusterRoleBindingList, in order for a Role to be bound, it must
already exist.
For the List reference, see: https://github.com/kubernetes/kubernetes/blob/master/pkg/apis/rbac/types.go
Signed-off-by: Seb Ospina <kraige@gmail.com>
5 years ago
Oleg Sidorov
9014bd9c50
chartutil.ReadValues is forced to unmarshal numbers into json.Number
...
This change is an attempt to address the common problem of json number
unmarshalling where any number is converted into a float64 and
represented in a scientific notation on a marshall call. This behavior
breaks things like: chart versions and image tags if not converted to
yaml strings explicitly.
An example of this behavior: k8s failure to fetch an image tagged with a
big number like: $IMAGE:20190612073634 after a few steps of yaml
re-rendering turns into: $IMAGE:2.0190612073634e+13.
Example issue: https://github.com/helm/helm/issues/1707
This commit forces yaml parser to use JSON modifiers and explicitly
enables interface{} unmarshalling instead of float64. The change
introduced might be breaking so should be processed with an extra care.
Due to the fact helm mostly dals with human-produced data (charts), we
have a decent level of confidence this change looses no functionality
helm users rely upon (the scientific notation).
Relevant doc: https://golang.org/pkg/encoding/json/#Decoder.UseNumber
Signed-off-by: Oleg Sidorov <oleg.sidorov@booking.com>
5 years ago
Taylor Thomas
4cbbd1046a
Merge pull request #5559 from steven-sheehy/downloader-subcommands
...
Add sub-command support to plugin downloader
5 years ago
willise
a1b391951e
ref(tiller): add more info when force update
...
Signed-off-by: willise <sunshuai@cmss.chinamobile.com>
5 years ago
Matt Farina
e2b3afcf26
Merge pull request #5902 from mattfarina/expand-default-capabilities
...
Add more capabilities to the detault set used by helm template
5 years ago
Naseem
9af767c0e5
Add security context
...
Signed-off-by: Naseem <naseemkullah@gmail.com>
5 years ago
Martin Hickey
c3242d1be4
Merge pull request #5532 from mortent/WaitForDelete
...
fix(helm): Delete hooks should wait for resource to be removed from etcd before continuing
5 years ago
Morten Torkildsen
cb2207c2fb
fix(helm): Delete hooks should wait for resource to be removed from etcd before continuing
...
Signed-off-by: Morten Torkildsen <mortent@google.com>
5 years ago
Matt Farina
79235eef11
Add more capabilities to the detault set used by helm template
...
- These are the capabilities as of k8s 1.14
- They are generated because getting them at runtime uses so much
memory it causes CI errors
Signed-off-by: Matt Farina <matt@mattfarina.com>
5 years ago
Matthew Fisher
d93b660c62
Revert "Change port forward command order in default note"
...
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
5 years ago
Matt Farina
6c88a429ff
Merge pull request #5890 from naseemkullah/sa
...
[helm create] Add service account to templates
5 years ago
Aisuko
2868aed321
Change port forward command order in default note
...
Signed-off-by: Aisuko <urakiny@gmail.com>
5 years ago
Naseem
ab8585faea
Keep indentation consistent
...
Signed-off-by: Naseem <naseemkullah@gmail.com>
6 years ago
Naseem
a985f34b81
Add sa
...
Signed-off-by: Naseem <naseemkullah@gmail.com>
6 years ago
Adam Eijdenberg
0ba4c63546
Update warning to be more accurate
...
Signed-off-by: Adam Eijdenberg <adam.eijdenberg@digital.gov.au>
6 years ago
Adam Eijdenberg
dda84976bf
Refactor to use common codepath for table coalescing
...
Stop mutating maps passed on input
Signed-off-by: Adam Eijdenberg <adam.eijdenberg@digital.gov.au>
6 years ago