Commit Graph
4521 Commits
Author SHA1 Message Date
Morten Torkildsen b536c8de10 fix(helm): Print details for pod resource
Due to a regression from a previous change, details about pod resources
does not show up in the status output. This makes sure that the pod type
from core are passed in to the printer so the details are shown in the
output.

Signed-off-by: Morten Torkildsen <mortent@google.com>
(cherry picked from commit ede43a313d)
2018-12-05 14:43:57 -08:00
Matthew Fisher 657557947c bump version to v2.12
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2018-11-30 11:05:43 -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
Morten Torkildsen 55a338579a fix(helm): Allow custom resources in hooks (#4986)
Currently the code that handles hooks uses a builder that creates the versioned types rather than unstructured. This results in an error whenever a custom resource is used in the hook as the type will not be registered in the scheme used in Helm. This changes this to use a builder that created unstructured resources and only converts to the versioned type when needed.

Signed-off-by: Morten Torkildsen <mortent@google.com>
2018-11-29 15:50:23 -08:00
Michael Merrill e2a0e7fa54 Fix for existing CRDs are deleted when crd-install hook is introduced (#4709)
Signed-off-by: mmerrill3 <michael.merrill@vonage.com>
2018-11-29 10:09:10 -08:00
Tariq Ibrahim c095b9232d avoid kubernetes import for slice contains logic (#4963)
* avoid kubernetes import for slice contains logic

Signed-off-by: tariqibrahim <tariq.ibrahim@microsoft.com>

* fix review comments

Signed-off-by: tariqibrahim <tariq.ibrahim@microsoft.com>
2018-11-28 15:19:26 -08:00
Taylor Thomas a34baf0eea Merge pull request #4978 from ultimateboy/dont-delete-deployed
fix(storage): when pruning release versions, never delete the last deployed revision
2018-11-28 14:29:46 -08:00
Matt Tucker 5bf38a2d7d fix(storage): when pruning release versions, never delete the last deployed revision
Signed-off-by: Matt Tucker <ultimateboy@gmail.com>
2018-11-28 12:46:35 -07:00
Luke Hoban 75b4afaa33 Allow missing trailing '/' in --repo url (#4956)
Apply the same procedure to allow missing trailing slash in repo base URLs used in `repo/chart` inputs to `--repo` inputs.

Fixes #4954.

Signed-off-by: Luke Hoban <luke@pulumi.com>
2018-11-28 11:15:49 -08:00
Martin Hickey 5584e5c5d8 Update chart doc with details about the license file (#4977)
Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
2018-11-28 10:22:39 -08:00
Ishaan Malhi ea158a6aad docs: add documentation for the helmignore file (#4966)
* docs: add documentation for the helmignore file

Signed-off-by: Ishaan Malhi <ishaan.malhi@gmail.com>

* docs: rearrange helmignore docs under chart template developer's guide

Signed-off-by: Ishaan Malhi <ishaan.malhi@gmail.com>
2018-11-28 10:12:41 -08:00
Abu Hanifa 865c1d3c77 Error message if anyone try to create multiple helm chart at a time (#4952)
* error message for creating multiple helm chart at a time

Signed-off-by: hanif <abuhanifa@pathao.com>

* Update cmd/helm/create.go

Co-Authored-By: a8uhnf <a8uhnf@users.noreply.github.com>
Signed-off-by: hanif <abuhanifa@pathao.com>
2018-11-28 10:06:04 -08:00
Jintao Zhang 8fcefd7d95 Fix doc charts indent (#4940)
Signed-off-by: Jintao Zhang <zhangjintao9020@gmail.com>
2018-11-28 10:05:33 -08:00
Tariq Ibrahim c18d7726ac Adding link labels to doc links for more conspicuity (#4904)
Signed-off-by: tariqibrahim <tariq.ibrahim@microsoft.com>
2018-11-28 10:01:22 -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
Geoff Baskwill d3357fad37 chore(deps): update cobra to latest (#4913)
Signed-off-by: Geoff Baskwill <me@geoffbaskwill.ca>
2018-11-20 17:54:32 +01:00
René Filip 403af2c389 Update control_structures.md (#4948)
update position of `and` operator

Signed-off-by: René Filip <rene.filip@sap.com>
2018-11-20 13:55:48 +01:00
Geoff Baskwill 560b84d53c docs: use nindent in documentation examples (#4905)
* docs: markdown prettyprinting

Signed-off-by: Geoff Baskwill <me@geoffbaskwill.ca>

* docs: use nindent in documentation examples

Fixes #4890.

Signed-off-by: Geoff Baskwill <me@geoffbaskwill.ca>
2018-11-19 21:24:20 +01:00
Joshua Olson 5df2c584ce Securing tiller via running it locally. (#4869)
* Securing tiller via running it locally.

Signed-off-by: Joshua Olson <joshua.olson.490@gmail.com>

* Clarify that TLS is the recommended way to secure Helm.

Signed-off-by: Joshua Olson <joshua.olson.490@gmail.com>
2018-11-19 19:01:39 +01:00
e23793120b fix(helm): --set for out of order list values (#4682)
When a user specifies value overrides for list values out of order,
strvals.listItem panics. Change strvals.listItem to handle this case by
re-initializing nil values to a new map.

Closes #4503

Co-authored-by: Cameron Childress <cameron@cchildress.org>
Co-authored-by: Kevin Collette <hal.collette@gmail.com>
Co-authored-by: Connor McKelvey <connormckelvey@gmail.com>
Co-authored-by: Dan Winter <dan.j.winter@gmail.com>

Signed-off-by: Dan Winter <dan.j.winter@gmail.com>
Signed-off-by: Cameron Childress <cameron@cchildress.org>
Signed-off-by: Kevin Collette <hal.collette@gmail.com>
Signed-off-by: Connor McKelvey <connormckelvey@gmail.com>
2018-11-19 17:58:25 +01:00
Matthew Fisher 3a8a797eab fix(docs): run make docs (#4924)
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2018-11-15 17:20:08 +01:00
Scott Rigby 46e66d4712 Helm code of conduct (#4901)
See https://github.com/helm/chart-testing/issues/48

Signed-by: Scott Rigby <scott@r6by.com>
Signed-off-by: Scott Rigby <scott@r6by.com>
2018-11-12 18:15:43 +01:00
Lev Aminov f6b1189aa2 fix(helm): Non-zero exit code on failed chart repository update (#4348)
* Fail on failed chart repository update

* Fix failed test

* Add repo update strict flag
2018-11-12 12:37:43 +01:00
Brent 9ae00bebad fix(tiller): rollback deleted release (#3722) (#4820)
Solves #3722 by making the changes in #3539 more compatible with the previous behavior.

This gives a recovery option for "oops I deleted my helm release" by allowing rollback, which is intended to be a working feature of helm. Note that purging releases removes the history required to rollback, so this doesn't work in that case. However, purging takes significantly more time, so it's harder to accidentally purge everything.

Signed-off-by: Brent <bmperrea@gmail.com>
2018-11-12 12:36:58 +01: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
Matt Farina e91e961587 Merge pull request #4809 from mortent/FixOutputWhitespace
fix(helm): Use line breaks consistently in status output
2018-11-09 11:05:36 -05:00
Matthew Fisher a276bd8108 add appveyor for testing on Windows (#4136)
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2018-11-08 14:22:09 -08:00
Matthew Fisher 9dce1ac88b s,kubernetes/charts,helm/charts,g (#4889)
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2018-11-07 07:26:19 -08:00
Ryan Dawson 00109db20a note on prefixing of resource names with release name (#4633)
* note on naming of resources

Signed-off-by: Ryan Dawson <ryan.dawson@alfresco.com>

* put whitespace back in

Signed-off-by: Ryan Dawson <ryan.dawson@alfresco.com>

* put whitespace back

Signed-off-by: Ryan Dawson <ryan.dawson@alfresco.com>

* put whitespace back

Signed-off-by: Ryan Dawson <ryan.dawson@alfresco.com>

* clarify template fullname

Signed-off-by: Ryan Dawson <ryan.dawson@alfresco.com>

* fix formatting problem by escaping underscore

Signed-off-by: ryandawsonuk <ryandawson@cantab.net>

* no need to change whitespace elsewhere in doc

Signed-off-by: ryandawsonuk <ryandawson@cantab.net>
2018-11-07 07:11:44 -08:00
Maor Friedman c911f6a85d related docs - remove import, export, add backup and plugin-utils instead (#4867)
* remove import, export, add backup instead

Signed-off-by: Maor <maor.friedman@nuvo-group.com>

* add helm plugin utility functions

Signed-off-by: Maor <maor.friedman@nuvo-group.com>

* move helm-plugin-utils into helm plugins section

Signed-off-by: Maor <maor.friedman@nuvo-group.com>
2018-11-07 00:29:07 -08:00
adshmh 57d1c1fd29 include the name of the missing object in release uninstall error (#4635)
* fix(tiller) added mock kube client to return failure on delete

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

* fix(tiller) added object's name to delete release error message

Signed-off-by: Arash Deshmeh <adeshmeh@ca.ibm.com>
2018-11-06 21:08:18 -08: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
liaoj d41ca72e42 fix:#4873, check release name (#4883)
for command helm template and helm install
when cusotmer input invalid release name, return a error

Signed-off-by: jliao <jliao@alauda.io>
2018-11-06 20:50:05 -08:00
adshmh 1801fa0074 fix(helm): fix incorrect yaml output format of get hooks command (#4684)
Signed-off-by: Arash Deshmeh <adeshmeh@ca.ibm.com>
2018-11-06 16:08:24 -08:00
Rimas Mocevicius 40ef9c0f70 make get script sudo optional (#4677)
Signed-off-by: rimas <rmocius@gmail.com>
2018-11-06 16:04:18 -08:00
Timothy Hobbs ace30b8777 Document the _proto directory (#4756)
Signed-off-by: Timothy Hobbs <timothy@hobbs.cz>
2018-11-06 15:50:38 -08:00
Mike Garuccio 833ee712b2 fix snap install command (#4877)
Added `--classic` to the snap install command.

Signed-off-by: Mike Garuccio <mgaruccio@gmail.com>
2018-11-06 15:32:38 -08:00
Dr Nic Williams f7377100ff Full path to mysubchart file (#4882)
Signed-off-by: Dr Nic Williams <drnicwilliams@gmail.com>
2018-11-06 15:31:23 -08:00
Sean Eagan 6635bff38f fix(engine): Fix template rendering thread safety issue (#4828)
Remove the engine `currentTemplates` field which was shared state
across threads and thus not thread safe, and instead just pass these
reference templates as parameters down recursively.

Closes #4819

Signed-off-by: Sean Eagan <sean.eagan@att.com>
2018-11-06 14:00:26 -08:00
Daniel M Barlow 4a49abb81e Small typo fix (#4887)
Signed-off-by: Daniel M Barlow <danielmbarlow@gmail.com>
2018-11-06 08:51:14 -08:00
Matthew Fisher c60abb4dd0 add special note for RBAC users (#4597)
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2018-11-01 10:17:46 -07:00
Matthew Fisher 8442851a5c docs(release_checklist): fix changelog generation command (#4694)
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2018-11-01 08:36:03 -07:00
Matthew Fisher d18fa439e6 add s390x architecture to the release notes (#4741)
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2018-11-01 08:35:20 -07:00
Adam Reese d5c183e297 Merge pull request #4859 from adamreese/ref/kube-external
ref(kube): use external api types where possible
2018-10-31 15:05:25 -07:00
Adam Reese fb0e03ebde ref(kube): use external api types where possible
Signed-off-by: Adam Reese <adam@reese.io>
2018-10-31 11:57:38 -07: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
Matt Rasmus 0522b34e05 test(tiller): cover crash fixed by #4630 (#4853)
While investigating a tiller crash on v2.10.0 (see recent comments in #3125), I pulled down the code
and wrote a test replicating the crash I was experiencing. I then
realized that the crash had been fixed, and was able to locate the fix
in #4630 after running a quck bisect.

Since there don't appear to be any tests that cover this crash, and I
had written one myself, I figured I might as well put up a PR for it.

Here's what the test failure on v2.10.0 looks like:
```
-- FAIL: TestUpdateReleasePendingInstall_Force (0.00s)
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
        panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x50 pc=0x1d128d8]

goroutine 235 [running]:
testing.tRunner.func1(0xc420493c20)
        /usr/local/Cellar/go/1.10/libexec/src/testing/testing.go:742 +0x29d
panic(0x1eb8d80, 0x2a12db0)
        /usr/local/Cellar/go/1.10/libexec/src/runtime/panic.go:505 +0x229
k8s.io/helm/pkg/tiller.(*ReleaseServer).performUpdateForce(0xc4208210b0, 0xc4202c6dc0, 0x0, 0x0, 0x2174220)
        /Users/mattrasmus/go/src/k8s.io/helm/pkg/tiller/release_update.go:166 +0x188
k8s.io/helm/pkg/tiller.(*ReleaseServer).UpdateRelease(0xc4208210b0, 0x2191780, 0xc420820f30, 0xc4202c6dc0, 0x29aeb90, 0x38, 0x2d2)
        /Users/mattrasmus/go/src/k8s.io/helm/pkg/tiller/release_update.go:43 +0x245
k8s.io/helm/pkg/tiller.TestUpdateReleasePendingInstall_Force(0xc420493c20)
        /Users/mattrasmus/go/src/k8s.io/helm/pkg/tiller/release_update_test.go:549 +0x120
testing.tRunner(0xc420493c20, 0x20e5c70)
        /usr/local/Cellar/go/1.10/libexec/src/testing/testing.go:777 +0xd0
created by testing.(*T).Run
        /usr/local/Cellar/go/1.10/libexec/src/testing/testing.go:824 +0x2e0
FAIL    k8s.io/helm/pkg/tiller  0.118s
```

Signed-off-by: Matt Rasmus <mrasmus@betterworks.com>
2018-10-31 08:51:29 -07:00
Matthew Fisher e37dcf4e0b bump version to v2.11 (#4700)
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
(cherry picked from commit 3a551d01d8)
2018-10-31 08:50:08 -07:00
Matt Farina a1f30f1fe2 Merge pull request #4743 from RPSeq/docs/circleci-badge
Update circleCI badge to more consistent shield.
2018-10-31 11:47:57 -04:00
Matt Farina 24f25fdea8 Merge pull request #4805 from jjasghar/patch-1
Update quickstart.md
2018-10-31 11:03:22 -04:00