285 Commits
Author SHA1 Message Date
Matt Butcher 7c287078c1 backported fixes from helm3
Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>
2020-09-17 12:02:49 -06:00
Matt Butcher 0e32e6417b fix: lint with strict passes for helm create (#7926)
Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>
2020-04-15 11:48:07 -06:00
Fernando Antivero b7d2947d10 fix(requirements): refactor to use common codepath for table coalescing (#7047)
* align both formats behaviors and now they will just differ in how to discover their paths
* add coverage for exports format and fix expected assertions for parent-child format to match the logic child values always wins
* just partially revert dda8497, this way parents values could be overridden when coalescing
* after getting better coverage we were able to refact both formats behaviors by merging their propagation logics into a single code path.
2020-03-06 14:04:29 -08:00
Matt Farina a4f46d7a38 Fix error when loading irregular files
Signed-off-by: Matt Farina <matt@mattfarina.com>
2019-10-29 16:30:42 -04:00
Oleg Sidorov 4cddc82c0b Reverted changes introduced in #6010
This commit reverts changes introduced in #6010 due to a massive
regression reported in #6708. An attempt to fix the problem in
https://github.com/helm/helm/pull/6709 seems to be unreasonably clumzy
and hacky, therefore reverting the offensive change seems to be the most
pragmatic solution.

This reverts commits:
  * 70cd32c4ce.
  * 9014bd9c50.

Signed-off-by: Oleg Sidorov <me@whitebox.io>
2019-10-22 22:26:38 +02:00
Martin Hickey 146f4315d3 Update Ingress API group in scaffold chart
Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
2019-10-09 15:48:06 +01:00
Taylor Thomas 4e8063b103 Merge pull request #5177 from adshmh/5150-lint-development-version-flag
Allow lint command to parse pre-release charts
2019-10-04 17:57:31 -06:00
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>
2019-10-04 11:20:48 -07:00
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.
2019-10-03 15:14:40 -07:00
Matthew Fisher 51f5ae9873 Merge pull request #6577 from bacongobbler/fixup-6334
upgrade Go to 1.13.1
2019-10-03 14:59:01 -07:00
Matthew Fisher caff38ffa1 fix(generator): fixup package comment linting error
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-10-03 14:51:49 -07:00
Matthew Fisher d8d56fe111 Merge pull request #5610 from adshmh/feat-5552-fix-root-folder-files-error
improve error message for content outside base dir
2019-10-03 13:44:05 -07:00
Matthew Fisher 2e871267de Merge pull request #4783 from derkoe/fix-requirement-condition
fix(pkg/chartutil): conditions for alias and umrella charts (#3734)
2019-09-30 14:37:38 -07:00
yuxiaobo 58c004bb89 Improve the quality of annotations
Signed-off-by: yuxiaobo <yuxiaobogo@163.com>
2019-09-25 15:33:30 +08: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
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
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
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
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
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
Jordan Sissel 15c6bef6a5 Try a bit harder to provide a clear error message.
When an unexpected file format is provided for a chart archive, spend
some extra effort to provide the user with some meaningful feedback.

This is intended to help users who mistakenly invoke `helm template`
like this:

    helm template values.yaml charts/mychart

This is a user error, and now we can report that the argument
`values.yaml` was expected to be a chart.

Fixes #5296

Signed-off-by: Jordan Sissel <jls@semicomplete.com>
2019-06-10 16:21:44 -07: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
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
Martin Hickey 470d92e126 Fix scaffold chart label in helper template
The 'app.kubernetes.io/version' label was not being rendered as
expected. It was appending onto the label before it and also
the next label label was appending onto it on the same line.

Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
2019-04-30 11:49:53 +01:00
Matthew Fisher 3da600d03f Merge pull request #5271 from donbowman/add-imagePullSecret
Add imagePullSecret to the `default` helm create template
2019-04-29 11:07:08 -07:00
Matt Farina b06b5ef4d2 Merge pull request #5373 from luisdavim/version_label
Add app.kubernetes.io/version label
2019-04-24 15:06:43 -04:00
Luis Davim 0270f2e2b5 Reduce template code duplication. Fixes #5372
Signed-off-by: Luis Davim <luis.davim@jet.com>
2019-04-24 13:44:21 +01:00
Scott Rigby 3df75ec1d9 Improve getting LoadBalancer address in NOTES.txt
See https://github.com/helm/charts/issues/84

Signed-off-by: Scott Rigby <scott@r6by.com>
2019-04-19 19:56:17 -04:00
Arash Deshmeh 720c28f4c5 fix(helm): improve error message for content outside base dir
Signed-off-by: Arash Deshmeh <adeshmeh@ca.ibm.com>
2019-04-17 15:02:09 -04:00
Luis Davim b7b372f693 Add app.kubernetes.io/version label
Signed-off-by: Luis Davim <luis.davim@jet.com>
2019-03-09 17:15:22 +00:00
Joe Lanford a9c10fe104 pkg/chartutil: fix SaveDir for nested templates directories
Signed-off-by: Joe Lanford <joe.lanford@gmail.com>
2019-03-08 17:56:13 -05:00
Don Bowman e80f173526 Change indent of {{ with }}
Signed-off-by: Don Bowman <db@donbowman.ca>
2019-03-02 10:55:38 -05:00
Don Bowman d819efa48b Make imagePullSecrets and array, move to root level
Changes as per PR https://github.com/helm/helm/pull/5271

- make imagePullSecrets be an array
- move imagePullSecrets to 'root' level of Values

Signed-off-by: Don Bowman <db@donbowman.ca>
2019-02-23 17:57:39 -05:00
xichengliudui 5767f13aaa Fix function comment to consistent with its name
Signed-off-by: xichengliudui <1693291525@qq.com>
2019-02-10 23:59:49 -05:00
Don Bowman 3b716b6d73 Add imagePullSecret to the default helm create template
This relates to [#3529](https://github.com/helm/helm/issues/3529).
It adds image.pullSecret to the default generate blank chart
when the user does `helm create`.

Signed-off-by: Don Bowman <don@agilicus.com>
2019-02-06 12:10:30 -05:00
ahmadali shafiee d3373f568c making ingress path configurations more customizable (#5175)
* making ingress path configurations more customizable

Signed-off-by: Ahmadali Shafiee <mail@ahmadalli.net>

* update notes ingress reference

Signed-off-by: Ahmadali Shafiee <mail@ahmadalli.net>
2019-02-01 08:08:28 -08:00
Geoff Baskwill 05a365358f fix: ignore pax header "file"s in chart validation
Signed-off-by: Geoff Baskwill <me@geoffbaskwill.ca>
2019-01-22 11:46:11 -05:00
Arash Deshmeh bfc0d76fff fix(helm): allow lint to parse pre-release charts
The lint command cannot parse a compressed chart with a pre-release
version, e.g. 0.1.0-alhpa: it errors out saying it cannot find the
Chart.yaml file. This is due to the way the lint command identifies the
chart dir name, i.e. using the last hyphen in the name of the compressed
file. Changing this method to using the name of the single directory
with the chart's name, as expected from decompressing a chart, allows
lint to parse pre-release charts.

Signed-off-by: Arash Deshmeh <adeshmeh@ca.ibm.com>
2019-01-16 17:31:43 -05:00