Commit graph

338 commits

Author SHA1 Message Date
Martin Hickey
daa104d60e Revert PR 8562
Revert of PR 8562 as the container version may not represent the
application version.

Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
2020-09-03 17:13:31 +00:00
Martin Hickey
91094186eb
Merge pull request #8562 from andytom/chore/update_starter_chart
Update Common Lables template in starter chart
2020-08-11 12:29:04 +01:00
Thomas O'Donnell
4b1fa60d58 Update Common Lables template in starter chart
Have update the Common Labels template in the starter chart so that the
value for the `app.kubernetes.io/version` is set to the same value as
the image tag used in the deployment.

Signed-off-by: Thomas O'Donnell <andy.tom@gmail.com>
2020-08-10 15:44:53 +02:00
She Jiayu
d141593d83 Avoid hardcoded container port in default notes
Signed-off-by: She Jiayu <shejiayu1998@qq.com>
2020-07-23 12:43:45 +08:00
Dong Gang
9777925a2a fix(create): update the hook name of test-connection pod
Signed-off-by: Dong Gang <dong.gang@daocloud.io>
2020-07-16 09:10:03 +08:00
Bridget Kromhout
5684c86490
Fixing version and spelling errors
Signed-off-by: Bridget Kromhout <bridget@kromhout.org>
2020-07-13 15:37:12 -05:00
Matt Butcher
2750e4d781
Lint dependencies (#7970)
* feat: add dependency tests

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

* replaced on-disk fixtures with in-memory fixtures

Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>
2020-07-09 14:31:51 -06:00
Matthew Fisher
fc4a11c131
bump version to v3.3
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
(cherry picked from commit 5c2dfaad84)
2020-07-07 10:40:09 -07:00
Matthew Fisher
148d94bcf7
version bump
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2020-06-23 11:07:48 -07:00
Eric Lemieux
4c9972cb72 Add HelmVersion to Capabilities
Signed-off-by: Eric Lemieux <eric@lemieuxdev.com>
2020-06-15 13:30:08 -04:00
Adam Reese
aa03319669
fix(chartutil): do not set helpers.tpl filetype for vim
Helpers filetype is not mustache

Signed-off-by: Adam Reese <adam@reese.io>
2020-06-12 08:39:26 -07:00
Matt Farina
b458bdf5c1
Merge pull request #8188 from mattfarina/fix-8181
Fix issue with unhandled error on Stat
2020-06-04 16:10:52 -04:00
Matt Farina
f182ebc11c
Fix issue with unhandled error on Stat
If stat returns an error other than the directory not existing
it was unhandled. When IsDir is called in one of these situations
it causes a panic.

Closes #8181

Signed-off-by: Matt Farina <matt@mattfarina.com>
2020-05-22 12:04:37 -04:00
Adam Reese
3364265e78
ref(pkg/chartutil): use minimal in-memory fixtures
Signed-off-by: Adam Reese <adam@reese.io>
2020-05-15 12:11:18 -07:00
Matthew Fisher
bfb39c0c68
bump DefaultCapabilities to 1.18
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2020-05-13 11:16:14 -07:00
Matt Butcher
bf9d629dc0
feat: implement deprecation warnings in helm lint (#7986)
* feat: implement deprecation warnings in helm lint

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

* added more deprecated APIs

Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>
2020-05-01 14:01:15 -06:00
Matt Farina
54e5088a50
Fixing docs from version to appVersion (#7975)
In the created chart from `helm create` is notes a tag overrides
version. It actually overrides appVersion. Updating the docs
to reflect reality.

Signed-off-by: Matt Farina <matt@mattfarina.com>
2020-04-23 17:49:43 -06:00
David Pait
6aefbdcf38
Helm upgrades with --reuse-values and nil user values -- with tests (#7959)
* return the new values if modifications dont yet exist

Signed-off-by: David Pait <DP19@users.noreply.github.com>

* fix tests

Signed-off-by: David Pait <DP19@users.noreply.github.com>

* removed outter if statement as its not needed now

Signed-off-by: David Pait <DP19@users.noreply.github.com>
2020-04-22 16:55:26 -06:00
Matt Butcher
853ba2de16
fix: removed inaccurate comment (#7937)
Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>
2020-04-16 14:54:15 -06:00
Matt Butcher
7b89e66e0c
fix: Fixed a regression that was introduced with changed nil handling (#7938)
Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>
2020-04-16 14:31:45 -06:00
uzxmx
a34f311539
Fix nested null value overrides (#7743)
* Fix nested null value overrides

Signed-off-by: Mingxiang Xue <mingxiangxue@gmail.com>

* Fix subchart value deletion

Signed-off-by: Mingxiang Xue <mingxiangxue@gmail.com>
2020-04-16 13:53:39 -06:00
Martin Hickey
1c9b54ad7f
Merge pull request #7795 from consideRatio/template-indent
Make helm create command's templates more consistent
2020-04-15 09:40:23 +01:00
Matt Farina
08c612eedf
Adding notes on semver to create Chart.yaml
The version field in the Chart.yaml has a comment describing it
but it did not note the version needs to follow SemVer. There
have been numerous questions, over time, about this format. Add
note here so it's exposed in more places.

Signed-off-by: Matt Farina <matt@mattfarina.com>
2020-04-08 15:41:39 -04:00
Matthew Fisher
b735abe837
Merge pull request #7879 from naseemkullah/pod-annotations
[create] feat: add pod annotations
2020-04-07 10:09:54 -07:00
Naseem
f7972d075e
feat: allow image tag override
While using the chart version as image tag is the sanest default, it is not uncommon to want to override this if using a custom image, or using helm to manage  an in-house app running different tags across different environments.

Signed-off-by: Naseem <naseem@transit.app>
2020-04-05 12:18:28 -04:00
Naseem
c4fc8b7de8
feat: add pod annotations
With the rise of sidecar injectors, pod annotations configuration is becoming more and more important.

Signed-off-by: Naseem <naseem@transit.app>
2020-04-05 12:14:01 -04:00
Mario Valderrama
6414791e08
Improve --show-only flag (#7816)
* Improve --show-only flag
* Ensure consistent manifest ordering
2020-04-02 14:09:45 -07:00
Martin Hickey
783be10aef
Merge pull request #7381 from naseemkullah/create-hpa
[helm create] Add hpa boilerplate
2020-03-31 16:25:51 +01:00
Erik Sundell
cead0efa69 helm create command's templates more consistent
- Removed most right whitespace chomps except those directly following a
  template definition where it make sense to not lead with a blank line.
  The system applied is now to almost always left whitespace chomp but
  also whitespace chomp right if its the first thing in a file or
  template definition.
- Updated indentation to be systematic throughout all the boilerplace
  files.

Signed-off-by: Erik Sundell <erik.i.sundell@gmail.com>
2020-03-23 19:28:53 +01:00
Matt Farina
28b085bed5
Fixing issue where archives created on windows have broken paths
When archives are created on windows the path spearator in the
archive file is \\. This causes issues when the file is unpacked.
For example, on Linux the files are unpacked in a flat structure
and \ is part of the file name. This causes comp issues. In Helm
v2 the path was set as / when the archive was written. This works
on both Windows and POSIX systems.

The fix being implemented is to use the ToSlash function to ensure
/ is used as the separator.

Fixes #7748

Signed-off-by: Matt Farina <matt@mattfarina.com>
2020-03-10 12:30:46 -04:00
Matthew Fisher
b1959a309e
Merge pull request #7674 from sshukun/package-lock-file
Save Chart.lock to helm package tar
2020-03-03 15:30:38 -08:00
Matthew Fisher
faf5cfb2cb
Merge pull request #7189 from pmacik/fix-os.Stat
Repair unit tests failing on Linux caused by using the os.Stat
2020-03-02 12:11:39 -08:00
Song Shukun
a992464fa2 Save Chart.lock to helm package tar
Signed-off-by: Song Shukun <song.shukun@fujitsu.com>
2020-03-02 19:51:15 +09:00
Martin Hickey
9d7907342d
Merge pull request #7514 from fhopfensperger/fix-7497
fixed dependencies processing in case of helm install or upgrade for …
2020-03-02 09:28:27 +00:00
Tomáš Kohout
b4f716413c Printing name of chart that do not have requested import value.
Signed-off-by: Tomas Kohout <tomas.kohout@leveris.com>
2020-02-24 11:59:51 +01:00
Matt Farina
1bd819a7b2
Fixes issue where <CHARTNAME> is left in starter values file
This is a leftover bug from #7201.

Closes #7532

Signed-off-by: Matt Farina <matt@mattfarina.com>
2020-02-06 12:01:03 -05:00
Florian Hopfensperger
d03db32c25 fixed dependencies processing in case of helm install or upgrade for disabled/enabled sub charts
Signed-off-by: Florian Hopfensperger <f.hopfensperger@gmail.com>
2020-02-03 11:30:26 +01:00
Matthew Fisher
50dcd39ba5
fix(package): remove --set, --values, etc. flags
These flags snuck in through a feature that was reverted and removed in Helm 2, but snuck into Helm 3.

They were never hooked up or used, so they were a no-op. This shouldn't affect anyone.

Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2020-01-27 10:29:15 -08:00
Shota Nakamura
0beb9f7040 fix(chartutil): remove empty lines and a space from rendered chart templates (#7455)
Signed-off-by: sukimoyoi <alice89yryr0@gmail.com>
2020-01-27 11:00:26 +00:00
Martin Hickey
88f42929d7
Remove references to protobuf (#7425)
Remove references to protobuf and update description of release
object stored representation to Helm v3.

Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
2020-01-17 15:56:56 +00:00
Naseem
b9a8e98bca
Add hpa boilerplate
Signed-off-by: Naseem <naseem@transit.app>
2020-01-11 01:03:01 -05:00
Naseem
a963736f66 [helm create] Include serviceAccount.annotations value (#7246)
* Include serviceAccount.annotations value

Signed-off-by: Naseem <naseemkullah@gmail.com>

* Add comment about service account annotations

Signed-off-by: Naseem <naseemkullah@gmail.com>
2020-01-09 14:04:02 +00:00
Jan Heylen
a2bbb67839 fix(helm): add .orig as typical backup file
Mercurial VCS (hg) backout's can generate '.orig' files
to avoid these being picked, generate a .helmignore where
also the .orig files are ignored.

Signed-off-by: Jan Heylen <jan.heylen@nokia.com>
2019-12-20 17:28:00 +01:00
Romain Grenet
8cb3c02c47 Port PR #4161 Fix incorrect timestamp when helm package to Helmv3
Lint CRLF
Signed-off-by: Romain Grenet <romain.grenet@gmail.com>
2019-12-19 13:22:08 -05:00
Josh Soref
02ad2b1187 Spelling (#7258)
* spelling: constraint

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: cryptographic

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: dependency

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: doesnot

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: don't

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: unexpected

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: dreadnought

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: default

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: envvars

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: evaluates

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: execute

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: extractor

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: frobnitz

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: generated

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: implementation

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: jabba

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: keywords

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: kubernetes

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: override

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: package

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: parsable

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: progress

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: recursively

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: release

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: cache

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: representing

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: serializer

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: subchart

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: utilities

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
2019-12-18 12:04:08 +00:00
Paul "TBBle" Hampson
0cb0eaca94 fix(*): Helm v3 handling of APIVersion v1 charts dependencies (#7009)
* Include requirements.* as Files in APIVersionV1

Fixes #6974.

This ensures that when reading a Chart marked with APIVersion v1, we
maintain the behaviour of Helm v2 and include the requirements.yaml and
requirements.lock in the Files collection, and hence produce charts that
work correctly with Helm v2.

Signed-off-by: Paul "Hampy" Hampson <p_hampson@wargaming.net>

* Write out requirements.lock for APIVersion1 Charts

This keeps the on-disk format consistent after `helm dependency update`
of an APIVersion1 Chart.

Signed-off-by: Paul "Hampy" Hampson <p_hampson@wargaming.net>

* Exclude 'dependencies' from APVersion1 Chart.yaml

This fixes `helm lint` against an APIVersion1 chart packaged with Helm
v3.

Signed-off-by: Paul "Hampy" Hampson <p_hampson@wargaming.net>

* Generate APIVersion v2 charts for dependency tests

As the generated chart contains no requirements.yaml in its files list,
but has dependencies in its metadata, it is not a valid APIVersion v1
chart.

Signed-off-by: Paul "Hampy" Hampson <p_hampson@wargaming.net>

* Generate APIVersion v2 charts for manager tests

Specifically for the charts that have dependencies, the generated chart
contains no requirements.yaml in its files but has dependencies in its
metadata. Hence it is not a valid APIVersion v1 chart.

Signed-off-by: Paul "Hampy" Hampson <p_hampson@wargaming.net>
2019-12-11 17:07:05 +00:00
Pavel Macík
e3976ab7a2
Repair failing unit tests - failure caused by os.Stat return values for directory size on Linux.
Signed-off-by: Pavel Macík <pavel.macik@gmail.com>
2019-12-09 14:48:16 +01:00
Graham Goudeau
01aa1bd3a2 Add a flag to allow template to output CRDs
Signed-off-by: Graham Goudeau <graham.goudeau@solo.io>
2019-12-03 14:06:55 -05:00
Jeff Bachtel
2e1c54855e Add namespace option to example kubectl command
Signed-off-by: Jeff Bachtel <jeff.bachtel@ironnetcybersecurity.com>
2019-10-30 14:29:39 -06:00
Taylor Thomas
b6f5762d46 fix(chartutil): Add the v1 apiextensions to the default scheme
Signed-off-by: Taylor Thomas <taylor.thomas@microsoft.com>
2019-10-29 12:10:58 -06:00