Commit Graph
1370 Commits
Author SHA1 Message Date
Taylor Thomas 70af7ba4db Merge pull request #6271 from 928234269/patch-1
fix typo
2019-08-26 09:04:30 -07:00
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>
2019-08-26 10:43:07 +01:00
Adam Eijdenberg f8f8b5d076 Add test for subchart with null value (#6146)
Signed-off-by: Adam Eijdenberg <adam@continusec.com>
2019-08-23 17:22:54 +01:00
Sakura 627283ac74 fix typo
Signed-off-by: Sakura <longfei.shang@daocloud.io>
2019-08-23 12:02:21 +08:00
Xiang Dai 66974afddb remove duplicate check
Signed-off-by: Xiang Dai <764524258@qq.com>
2019-08-19 09:38:17 +08:00
Taylor Thomas f4a55985b6 Merge pull request #6080 from deitmerit/fix/subchart-value-deletion
Fix subchart value deletion
2019-08-14 09:50:29 -06:00
Martin Hickey dd4afa6af0 Fail to load charts that are not v1 apiVersion (#6180)
Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
2019-08-10 11:55:26 +01:00
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
2019-08-09 20:04:39 -04:00
AllenZMC e9ea2e0d15 fix some log typos in tlsutil_test.go
Signed-off-by: czm <zhongming.chang@daocloud.io>
2019-08-09 21:34:04 +08:00
AllenZMC 7b0a407ff7 fix mis-spelling in manager.go
Signed-off-by: czm <zhongming.chang@daocloud.io>
2019-08-07 20:55:34 +08:00
AllenZMC 53f1ab50e5 fix wrong spells in hooks.go
Signed-off-by: czm <zhongming.chang@daocloud.io>
2019-08-06 10:18:37 +08:00
AllenZMC 915d69a2c6 fix word 'resoures' to 'resources
Signed-off-by: czm <zhongming.chang@daocloud.io>
2019-08-03 22:05:52 +08:00
AllenZMC 6b5ab08a61 fix word 'efault' to 'default'
Signed-off-by: czm <zhongming.chang@daocloud.io>
2019-08-02 22:57:09 +08:00
AllenZMC b788e3dce9 fix word 'potgres' to 'postgres'
Signed-off-by: czm <zhongming.chang@daocloud.io>
2019-08-01 21:59:58 +08:00
dinesh reddy d600c92724 Clean code: delete commented code
Signed-off-by: dinesh reddy <dinesh.reddy@bestbuy.com>
2019-07-31 09:04:47 -05:00
AllenZMC 6485fec309 fix word constrint to constraint
Signed-off-by: czm <zhongming.chang@daocloud.io>
2019-07-30 21:25:59 +08:00
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>
2019-07-26 23:56:37 +09:00
ethan c086f78583 cleanup: error message typos in sql.go
Signed-off-by: ethan <guangming.wang@daocloud.io>
2019-07-26 02:20:46 +00:00
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>
2019-07-25 14:29:45 +02:00
Tariq Ibrahim 276bb9b1c8 fix golint issues reported by make test
Signed-off-by: Tariq Ibrahim <tariq181290@gmail.com>
2019-07-24 16:24:55 -07:00
Martin Hickey d953c6875c Merge pull request #6039 from Constantin07/add_hpa_to_sorting_order
Added HPA to sort order.
2019-07-19 15:21:32 +01:00
Constantin Bugneac 535df90cc8 Added HorizontalPodAutoscaler to sort order.
Signed-off-by: Constantin Bugneac <constantin.bugneac@worldfirst.com>
2019-07-19 11:37:03 +01:00
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
2019-07-17 07:34:01 -07:00
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>
2019-07-13 09:17:49 +02:00
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>
2019-07-11 15:12:02 +02:00
Taylor Thomas 4cbbd1046a Merge pull request #5559 from steven-sheehy/downloader-subcommands
Add sub-command support to plugin downloader
2019-07-08 10:23:28 -06:00
willise a1b391951e ref(tiller): add more info when force update
Signed-off-by: willise <sunshuai@cmss.chinamobile.com>
2019-07-04 01:13:33 +08:00
Matt Farina e2b3afcf26 Merge pull request #5902 from mattfarina/expand-default-capabilities
Add more capabilities to the detault set used by helm template
2019-06-26 06:43:43 -07:00
Naseem 9af767c0e5 Add security context
Signed-off-by: Naseem <naseemkullah@gmail.com>
2019-06-22 10:27:23 -04:00
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
2019-06-21 17:03:32 +01:00
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>
2019-06-20 11:56:31 -07:00
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>
2019-06-17 17:49:32 -04:00
Matthew Fisher d93b660c62 Revert "Change port forward command order in default note"
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-06-17 07:32:19 -07:00
Matt Farina 6c88a429ff Merge pull request #5890 from naseemkullah/sa
[helm create] Add service account to templates
2019-06-17 10:03:07 -04:00
Aisuko 2868aed321 Change port forward command order in default note
Signed-off-by: Aisuko <urakiny@gmail.com>
2019-06-17 16:53:57 +08:00
Naseem ab8585faea Keep indentation consistent
Signed-off-by: Naseem <naseemkullah@gmail.com>
2019-06-14 15:29:53 -04:00
Naseem a985f34b81 Add sa
Signed-off-by: Naseem <naseemkullah@gmail.com>
2019-06-13 17:40:23 -04:00
Adam Eijdenberg 0ba4c63546 Update warning to be more accurate
Signed-off-by: Adam Eijdenberg <adam.eijdenberg@digital.gov.au>
2019-06-12 10:06:50 +10:00
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>
2019-06-12 10:06:50 +10:00
Adam Eijdenberg 29a295eb84 Add test for existing merging behaviour of mixed types
Signed-off-by: Adam Eijdenberg <adam.eijdenberg@digital.gov.au>
2019-06-12 10:06:50 +10:00
Martin Hickey 2ca025d482 Merge pull request #5759 from ialidzhikov/issue-5758
Change extension rule to warning severity
2019-06-07 14:41:29 +01:00
Matt Farina e46dd138b1 Merge pull request #5842 from mattfarina/moar-capabilities
Expose the resource types in addition to the api group/version in templates
2019-06-06 16:36:03 -04:00
Matt Farina 35b740af22 Adding Kinds to the capabilities apiversions lookup for templates
This will enable the detection of specific objects including CRDs
that may vary widely between kubernetes clusters

Signed-off-by: Matt Farina <matt@mattfarina.com>
2019-06-04 14:49:52 -04:00
Matthew Fisher b496f85bc2 Merge pull request #5755 from tillepille/master
Use .Values.service.port  also in the pre-generated ingress
2019-06-04 09:33:10 -07:00
Tim Schrumpf 741dd4a93b Ingress ServicePort from Values
Signed-off-by: tillepille <github@tillepille.io>
2019-06-04 18:28:21 +02:00
Martin Hickey b0b0accdfc Merge pull request #5666 from tariq1890/fix_short
fix the short descriptions of all helm commands
2019-06-04 16:37:04 +01:00
Adam Eijdenberg 5b9311d163 Fix nested null value overrides
- Add ability to test for nested non-existent keys
- Add test cases for nested null values
- Minimalist fix for nested null key test cases
- Add missing metadata to integration test

Signed-off-by: Adam Eijdenberg <adam.eijdenberg@digital.gov.au>
2019-05-31 16:23:54 +10:00
Matthew Fisher af0bb6d26b Merge pull request #5760 from mortent/revertValidationFix
fix(helm): Disable schema validation for manifests
2019-05-29 09:42:26 -07:00
Martin Hickey f8b496fd66 Merge pull request #5772 from dev-chulbuji/master
change deployment version
2019-05-24 15:26:06 +02:00
Tariq Ibrahim ccf933b29a return error when io.Copy fails in Digest
Signed-off-by: Tariq Ibrahim <tariq181290@gmail.com>
2019-05-23 20:02:19 -07:00