Commit Graph
238 Commits
Author SHA1 Message Date
Joe Lanford 618447cbf2 pkg/chartutil: fix SaveDir for nested templates directories
(cherry picked from commit a9c10fe104)

Signed-off-by: Joe Lanford <joe.lanford@gmail.com>
2019-03-21 11:26:22 -07: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
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
Matt Butcher 5603fe8d3e fix: perform extra validation on paths in tar archives (#5165)
* fix: perform extra validation on paths in tar archives

Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>

* fix: Cover a few Windows cases and also remove a duplicate tar reader

Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>

* fix: removed debug output

Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>

* fix: Expand again preserves the files verbatim

Also added tests for Expand

Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>

* fix: add license block and remove println

Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>
2019-01-14 10:03:35 -07:00
Alex Humphreys 89467a8bf1 Fix(helm): Use spaces in ingress template
The rest of the ingress template was using spaces, just these two lines
were tabs.

Signed-off-by: Alex Humphreys <alex.humphreys@here.com>
2018-12-18 15:24:33 +01:00
JoeWrightss e9a5465c66 Fix some spelling error (#5032)
Signed-off-by: JoeWrightss <zhoulin.xie@daocloud.io>
2018-12-14 09:19:23 -08:00
Kévin Dunglas 9aa773042d create: include the namespace in NOTES.txt for LoadBalancer status (#5055)
Signed-off-by: Kévin Dunglas <dunglas@gmail.com>
2018-12-14 09:14:14 -08:00
įoнииγ įoнииγ 03718ee93d Added extra padding to resources template (#4981)
This is probably a silly PR.  However, each time I create a new chart
via `helm create`, the instructions to uncomment the resource limits
require adding a couple extra spaces back to the YAML.

This PR simply brings the spacing in-line with the rest of the generated
template.

Signed-off-by: John Dewey <john@dewey.ws>
2018-12-05 10:08:06 -08:00
Martin Hickey 58be8e461c Update messaging in value parsing to improve traceability (#4974)
Closes #4736

Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
2018-11-30 10:04:37 -08:00
Matthew Fisher 97465abda0 fix(windows): fix unit tests on Windows (#4897)
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2018-11-28 09:59:32 -08:00
Morten Torkildsen 82d01cb312 fix(helm): Merge nested values correctly on upgrade (#4806)
Upgrading a release and override existing values doesn't work as expected for nested values. Maps should be merged recursively, but currently maps are treated just like values and replaced at the top level.

If the existing values are:
```yaml
resources:
  requests:
    cpu: 400m
  something: else
```
and an update is done with ```--set=resources.requests.cpu=500m```, it currently ends up as
```yaml
resources:
  requests:
    cpu: 500m
```
but it should have been
```yaml
resources:
  requests:
    cpu: 500m
  something: else
```

This PR updates the way override values are merged into the existing set of values to merge rather than replace maps.

Closes: #4792

Signed-off-by: Morten Torkildsen <mortent@google.com>
2018-11-12 12:32:21 +01:00
Erik Sundell eb96576b8d Reform indentation practices using nindent (#4562)
The essence of this commit is to help people get started with a better
indentation practice than this:

```yaml
spec:
  labels:
{{ toYaml .Values.labels | indent 4 }}
```

The previous indentation practice is harder to read. Instead this commit
introduces an indentation practice using `nindent` like this:

```yaml
spec:
  labels:
    {{- toYaml .Values.labels | nindent 4 }}
```

Signed-off-by: Erik Sundell <erik.i.sundell@gmail.com>
2018-11-06 21:03:44 -08:00
Zachary Seguin 662fd4fcf6 Remove executable bits from chartutil generated files (#4839)
Signed-off-by: Zachary Seguin <zachary@zacharyseguin.ca>
2018-10-31 11:13:56 -07:00
Martin Hickey f6efe2f0c1 Add test template example for helm create (#4524)
* Add test template example for helm create

As helm create ganerates an nginx chart, the example is based on
https://github.com/helm/helm/blob/master/docs/examples/nginx/templates/
service-test.yaml

Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>

* Update after review

- https://github.com/helm/helm/pull/4524#pullrequestreview-155183390
- https://github.com/helm/helm/pull/4524#pullrequestreview-155379922
- Fix where app.kubernetes.io/instance was incorrect in service selector

Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>

* Add doc update

Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>

* Update GO formatting

Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
2018-10-17 14:10:46 -07:00
Adam Reese 26c88ec815 Merge pull request #4703 from adshmh/4556-fix-paths-ingress-template
fix paths in the ingress template and values file written by helm create
2018-10-11 14:41:06 -07:00
Adam Reese e83a54f7a0 Merge pull request #4742 from florianrusch/patch-1
Add the `.vscode` folder to the `.helmignore` file
2018-10-11 14:39:51 -07:00
Rijnard van Tonder 5267c0d44a The nil check before the range loop is redundant
Signed-off-by: Rijnard van Tonder <hi.teresy@gmail.com>
2018-10-10 16:11:04 -04:00
Florian Rusch 6f12ab24a5 Add the .vscode folder to the .helmignore file
Signed-off-by: Florian Rusch <git@florianrusch.de>
2018-10-06 10:46:31 +02:00
adshmh 2ef61fdf5c feat(helm): use apps/v1 as deployment apiVersion (#4725)
Use 'apps/v1' as the apiVersion field for the deployment.yaml written
by the 'helm create' command, rather than the deprecated 'apps/v1beta2'.

Signed-off-by: Arash Deshmeh <adeshmeh@ca.ibm.com>
2018-10-01 12:27:17 -07:00
Arash Deshmeh 1a54463bdb fix(helm): fix paths in the ingress template and values file written by helm create
Signed-off-by: Arash Deshmeh <adeshmeh@ca.ibm.com>
2018-09-26 11:24:54 -04:00
Qiang Li 4dd9047586 fix(helm): fix selector typo in service template for 'helm create' (#4663)
changed instancelease to instance in service template

closes #4661

Signed-off-by: Qiang Li <liqiang@gmail.com>
2018-09-18 13:55:22 -07:00
Martin Hickey 7306b4c28e Fix helm create note for k8 label convention changes
Update to note as per changes in Issue #4335 . Otherwise cannot
retrieve the pod with the label names.
2018-08-24 16:17:41 +01:00
Matt Farina e328d00a2f Updating to the k8s label convention
Closes #4335

Signed-off-by: Matt Farina <matt@mattfarina.com>
2018-08-08 12:21:38 -04:00
Matthew Fisher 9a788b7a48 Merge pull request #4161 from mattjmcnaughton/mattjmcnaughton/fix-wrong-timestamp-helm-package
Fix incorrect timestamp when helm package
2018-07-31 10:09:01 -07:00
Matthew Fisher 2d77db11fa change copyright to "Copyright The Helm Authors" 2018-07-30 08:29:17 -07:00
Matthew Fisher 99f20d82bb Merge pull request #4093 from aidtechnology/issue_4092
Migrate 'template' to 'include' in 'helm create'
2018-06-18 07:21:40 -07:00
mattjmcnaughton 96a85a06ed Fix incorrect timestamp when helm package
The files contained in the `tar` file from `helm package` did not have
the correct timestamp. This lack of timestamp occurred because we were
not writing any time to the tar header file.
2018-06-02 10:37:35 -04:00
Matthew Fisher 3771ef8635 Merge pull request #3984 from muehlburger/dev
Fix filenames in tarball created on windows
2018-05-28 07:09:18 -07:00
Johnny Bergström 43b19dccbe Add helm template --is-upgrade
Useful for toggling .Release.IsInstall / .Release.IsUpgrade which
in turn may cause templates to render differently.
2018-05-22 16:24:19 +02:00
Alejandro Vicente Grabovetsky 4fbc733ade Migrate 'template' to 'include' in 'helm create' to conform to Helm best practices
Signed-off-by: Alejandro Vicente Grabovetsky <sasha@aid.technology>
2018-05-19 02:42:49 +03:00
AdamDang 89c29f3ff1 Update capabilities.go 2018-05-17 00:05:06 +08:00
AdamDang 51f92b4787 Typo fix: mach->match
mach->match
2018-05-16 00:31:05 +08:00
Herbert Mühlburger a1b5b69248 Refactor to be more precise 2018-04-28 09:16:46 +02:00
Matthew Fisher f7f686f7d0 Revert "toYaml - Fix #3470 and #3410's trailing \n issues" 2018-04-27 12:30:46 -07:00
Herbert Mühlburger dcdeefbd63 #3763 replace backslash with forward slash 2018-04-27 14:14:37 +02:00
Julien Bordellier cf3ded91f2 Add quoting support in ingress to allow wildcard domain 2018-04-24 15:26:57 +02:00
Matthew Fisher d502f7c8a8 Merge pull request #3950 from BarryWilliams/issue3747
Add comments to fix linter issues
2018-04-23 20:47:22 -07:00
BarryWilliams 718578036d Changed whitespacing in comments 2018-04-23 22:25:11 -04:00
Matthew Fisher f201db3fc2 Merge pull request #3692 from aleerizw/fix-sigsegv-create
Fixed SIGSEGV when running helm create with -p and no values.yaml file
2018-04-20 10:15:14 -07:00
Justin Scott ad714fe704 Merge pull request #3323 from jascott1/2620_importvals_warning_fix
fix(helm): fix importValues warnings from disabled charts
2018-04-12 11:57:19 -07:00
Nikhil Manchanda 30f236b75c Merge pull request #3877 from chancez/enhance_helm_template_handling
Update helm template -x to support children chart manifests in more cases
2018-04-12 00:18:43 -07:00
Chance Zibolski d7e7170993 Add working template to mariner chart for use in testing subcharts 2018-04-11 16:26:15 -07:00
Matthew Fisher 6f02d9e412 Merge pull request #3837 from consideRatio/toYaml-pr
toYaml - Fix #3470 and #3410's trailing \n issues
2018-04-11 14:21:38 -07:00
Steffen Windoffer 8bd42d2645 remove unused servicePort from default ingress template 2018-04-06 11:21:54 +02:00
Erik Sundell 05a1f7f46c Updated tests for PR #3837 2018-04-06 00:59:22 +02:00
Erik Sundell 35132d141c toYaml - Fixes #3410 - trailing \n issue
`toYaml` utilized by `.Files` was introducing a new line. It is an issue since the new line is part of a functions output, it can't be whitespace chomped away so it would require a `trimSuffix "\n"` pipe. This commit trims one trailing `\n` from the toYaml output.
2018-04-06 00:40:43 +02:00
Zack Williams 1d3ae54185 Fix #3822 2018-04-03 13:10:56 -07:00
adshmh 1a55161a53 Fix several golint warnings (#3756)
* fix(helm): fix golint warning due to ApiVersionV1 constant name

Signed-off-by: Arash Deshmeh <adeshmeh@ca.ibm.com>

* fix(helm): fix golint warning due to ResolveChartVersionAndGetRepo comment

Signed-off-by: Arash Deshmeh <adeshmeh@ca.ibm.com>

* fix(helm): fix golint warnings on HttpGetter type and SetCredentials method missing a comment

Signed-off-by: Arash Deshmeh <adeshmeh@ca.ibm.com>

* fix(helm):fix golint warning due to comment on FindChartInAuthRepoURL function

Signed-off-by: Arash Deshmeh <adeshmeh@ca.ibm.com>

* fix(helm): fix golint warning due to RepoFile type name

Signed-off-by: Arash Deshmeh <adeshmeh@ca.ibm.com>

* fix(helm): fix golint warning due to ParseString comment

Signed-off-by: Arash Deshmeh <adeshmeh@ca.ibm.com>
2018-03-27 13:06:04 -07:00
cameronconradt 6a59683c01 Update files.go
Should suppress the warnings about the naming of these two functions. Added TODO
2018-03-23 23:57:35 -06:00