Commit graph

1396 commits

Author SHA1 Message Date
Martin Hickey
caa26c4bb2
Change release storage name to use helm storage type as prefix (#6500)
* Change release storage name to prefix helm storage type

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

* Add comments about the Kubernetes storage object type field content

Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
2019-09-26 17:46:19 +01:00
Adam Reese
d3805a1d54
ref(pkg/cli): refactor environment variable setup
This change sets proper defaults based on environment variables for
global settings and plugin environments.

Signed-off-by: Adam Reese <adam@reese.io>
2019-09-25 14:00:43 -07:00
Taylor Thomas
85572df378
Merge pull request #6494 from thomastaylor312/feat/set_file
feat(*): Ports `--set-file` flag to v3
2019-09-25 10:20:11 -06:00
Matthew Fisher
261e5b00ac
Merge pull request #6491 from bacongobbler/port-5700
fix(action): typo
2019-09-24 21:32:14 -07:00
Taylor Thomas
9b87721c1f fix(provenance): Ports error check for Digest to v3
This is a port of #5672

Signed-off-by: Taylor Thomas <taylor.thomas@microsoft.com>
2019-09-24 13:59:14 -06:00
Taylor Thomas
7599c5d489 feat(*): Ports --set-file flag to v3
I made a few modifications from the original code to fit in with the new
code layout and to clarify a few things. This is a port of #3758

Signed-off-by: Taylor Thomas <taylor.thomas@microsoft.com>
2019-09-24 12:43:43 -06:00
Matthew Fisher
faa9048580
Merge pull request #6486 from bacongobbler/fix-6452
fix(action): invalidate discovery client cache on startup
2019-09-24 11:29:28 -07:00
Matthew Fisher
9742c8c5a2
fix(action): typo
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-09-24 10:57:35 -07:00
Taylor Thomas
6419ff6961
Merge pull request #6480 from thomastaylor312/feat/cleanup_on_fail
feat(*): Ports `--cleanup-on-fail` to v3
2019-09-24 10:42:10 -06:00
Matthew Fisher
1b0b843d6a
fix(action): invalidate discovery client cache on startup
we want to force a cache invalidation to ensure that the Capabilities object always has the latest information from the server (Kubernetes server version, available API versions, etc). `kubectl version` forces a cache invalidation every time it's invoked, so this seems like a safe change that is identical to kubectl's behaviour.

Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-09-24 09:14:29 -07:00
Matthew Fisher
3e891dbde9
Merge pull request #6425 from AndiDog/helm-template-no-reachability-check
Fix reachability check which must be disabled for `helm template` (unless `--validate` is specified)
2019-09-24 08:36:53 -07:00
Taylor Thomas
17854e83af feat(*): Ports --cleanup-on-fail to v3
This ports the functionality of cleanup on fail to v3 as introduced in #4871. This has been tested manually
and would be a good candidate for a new acceptance test.

Signed-off-by: Taylor Thomas <taylor.thomas@microsoft.com>
2019-09-23 16:13:02 -06:00
Matthew Fisher
4971ed5077
fix(list): scrub list returned from .List()
This way only the latest release is displayed with `helm list`.

Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-09-23 15:00:16 -07:00
Taylor Thomas
d95a6246a4
Merge pull request #6430 from karuppiah7890/fix-install-storing-computed-values
fix install storing computed values in release instead of user supplied values
2019-09-23 11:49:03 -06:00
Cindy O'Neill
41e9359716 handle ingress apiVersion change for kubernete versions
Signed-off-by: Cindy O'Neill <cubiedoo2@gmail.com>
2019-09-18 11:11:34 -06:00
Reinhard Nägele
38e41e12c9 ref(*): Improve and fix scaffold chart and API versions (#6426)
* Use `apps/v1` for Deployment
* Reformat comments
* Consistently use `nindent` and indent properly
* Introduce named template for selector labels
* Fix label selector in `NOTES.txt`

Signed-off-by: Reinhard Naegele <unguiculus@gmail.com>
2019-09-18 12:24:03 +01:00
Andreas Sommer
3a843df1ff Fix reachability check which must be disabled for helm template (unless --validate is specified)
Signed-off-by: Andreas Sommer <andreas.sommer87@googlemail.com>
2019-09-16 13:13:05 +02:00
Karuppiah Natarajan
25324ca8db
fix install storing computed values in release instead of user supplied values
Signed-off-by: Karuppiah Natarajan <karuppiah7890@gmail.com>
2019-09-14 20:34:48 +05:30
Adam Reese
b4788481b7
fix(pkg/cli): do not override users xdg directories
Signed-off-by: Adam Reese <adam@reese.io>
2019-09-05 10:43:36 -07:00
Taylor Thomas
01e562bd00
Merge pull request #6296 from andytom/fix/duplicate_error_msgs
Stop multiple error messages in lint results
2019-09-04 14:08:12 -06:00
Matt Farina
1ea53d8934
Unifity environment variable naming and use
Signed-off-by: Matt Farina <matt@mattfarina.com>
2019-09-04 14:15:30 -04:00
Matt Farina
378b9dd29e
Remove ability to have duplicates in environment variables
Signed-off-by: Matt Farina <matt@mattfarina.com>
2019-09-04 13:48:30 -04:00
Matt Farina
ec31f13ee9
Merge pull request #6244 from waveywaves/feature/helmenv
(feature/helm-env) `helm env`
2019-09-04 13:38:12 -04:00
Matt Butcher
0f332b67f1
fix: clear the discovery cache after CRDs are installed (#6332)
* fix: clear the discovery cache after CRDs are installed

This fixes an issue in which a chart could not contain both a CRD and an instance of that CRD. It works around a stale cache by force cache invalidation whenever a CRD is added.

Closes #6316

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

* fix: wait for CRD to register before allowing CRDs to be installed

This fixes an issue with the previous version of this patch in which the CRD would not be available quickly enough.

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

* feat: use Wait() to wait for CRDs to be ready

This forward-ports the CRD wait logic to Helm 3, and then uses that to wait for CRDs to be registered.

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

* ref: moved the scheme modification to an appropriate place.

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

* fix: turned warnings into fatal errors, fixed spelling, clear cache once

Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>
2019-09-04 08:32:24 -06:00
Matt Farina
01adf0d7a3
Merge pull request #6255 from waveywaves/fix/6237
(fix/issue-6237) Add check to see if connected to the kubernetes cluster
2019-09-04 09:17:23 -04:00
Adam Reese
4fcc876786
ref(pkg/engine): cleanup of development hack
This was left in from some of the chart builder work.  I forgot to
remove it.

Signed-off-by: Adam Reese <adam@reese.io>
2019-09-03 15:31:58 -07:00
Ivan Towlson
cd42b26a6a Distinct doc strings for repository-cache and repository-config
Signed-off-by: Ivan Towlson <itowlson@microsoft.com>
2019-09-02 09:19:29 +12:00
Vibhav Bobade
66b037f6be Move the logic for checking env in pkg/cli and store all envs in a central place
Signed-off-by: Vibhav Bobade <vibhav.bobde@gmail.com>
2019-08-30 23:09:50 +05:30
Adam Reese
fe92480ab4
fix(cmd/helm): user friendly error message when repos are not configured
Signed-off-by: Adam Reese <adam@reese.io>
2019-08-28 14:13:49 -07:00
Marc Khouzam
f46df928cf fix(cmd/helm): Missing params for dir locations (#6300)
Signed-off-by: Marc Khouzam <marc.khouzam@ville.montreal.qc.ca>
2019-08-28 11:26:21 +01:00
Thomas O'Donnell
e5668f54fe Stop multiple error messages in lint results
Have fixed a minor error in the lint action that was causing Error
messages from linting chart getting added to the returned results
multiple times.

Signed-off-by: Thomas O'Donnell <andy.tom@gmail.com>
2019-08-27 19:22:23 +02:00
Vibhav Bobade
d00e328020 Applied check to actions
Signed-off-by: Vibhav Bobade <vibhav.bobde@gmail.com>
2019-08-27 04:16:02 +05:30
Vibhav Bobade
5a07055645 Add IsReachable to /pkg/kube/client to see if connected to the internet
Signed-off-by: Vibhav Bobade <vibhav.bobde@gmail.com>
2019-08-27 04:11:04 +05:30
Adam Reese
f76b5f21ad
Merge pull request #6272 from adamreese/feat/initless
feat(cmd/helm): remove need for helm init command
2019-08-26 10:26:11 -07:00
Adam Reese
1779ad5302
ref(cmd/helm): remove init command
Signed-off-by: Adam Reese <adam@reese.io>
2019-08-26 10:21:52 -07:00
Josh Dolitsky
af06037d23
chore(registry): upgrade to oras v0.7.0 (#6285)
Also:
* add --insecure flag to "registry login"
* fix bug parsing correct tag when port number present

Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>
2019-08-26 11:29:01 -05:00
Adam Reese
b6fdd8783b
feat(cmd/helm): remove need for helm init command
* allow repository config via cli
* make `helm repo add` create repo config file if it does not exist
* squash a ton of bugs

Signed-off-by: Adam Reese <adam@reese.io>
2019-08-22 23:31:50 -07:00
Matt Farina
fba311ba23
Merge pull request #6243 from technosophos/feat/5871-crds-directory
feat: Add support for a crds/ directory
2019-08-20 11:38:28 -04:00
Taylor Thomas
7466c4ee3b
Merge pull request #6241 from waveywaves/fix/issue-6079
Clone the vals map for every path to avoid mutation
2019-08-20 09:31:34 -06:00
Vibhav Bobade
68a8f36a92 Fix Adding Errors from Linter.Messages to result.Errors
This also fixes <nil> beig added to result.Errors

Signed-off-by: Vibhav Bobade <vibhav.bobde@gmail.com>
2019-08-20 04:22:17 +05:30
Adam Reese
b2d5e41fc7
ref(*): remove dead code
Signed-off-by: Adam Reese <adam@reese.io>
2019-08-19 10:22:27 -07:00
Vibhav Bobade
9ab927f0bb Test for Linting multiple charts with the same vals instance
Signed-off-by: Vibhav Bobade <vibhav.bobde@gmail.com>
2019-08-19 04:25:14 +05:30
Vibhav Bobade
7da1f35386 Clone the vals map for every path to avoid mutation
Signed-off-by: Vibhav Bobade <vibhav.bobde@gmail.com>
2019-08-19 04:25:01 +05:30
Matt Butcher
98426d6ad3
feat: Add support for a crds/ directory
Closes #5871

Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>
2019-08-16 16:26:55 -06:00
Taylor Thomas
16544c8190 fix(registry): Updates registry to handle go 1.12.8 changes
Go 1.12.8 introduced some breaking fixes (see 3226f2d492)
for a CVE. This broke the way we were doing registry reference parsing.
This removes the call to the containerd libraries in favor of our own
parsing and adds additional unit tests

Signed-off-by: Taylor Thomas <taylor.thomas@microsoft.com>
2019-08-15 09:36:51 -06:00
Matthew Fisher
d99edbfb3e
fix(chartutil): remove executable bits from chartutil generated files
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-08-13 16:31:08 -07:00
Matthew Fisher
4c4b10668a
ref(test): join all hook manifests before building
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-08-13 16:04:08 -07:00
Matthew Fisher
4d6d384741
style(action): fix style tests
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-08-13 12:14:48 -07:00
Matthew Fisher
4c366c972d
fix(action): return an error if len > 0
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-08-13 12:10:31 -07:00
Matthew Fisher
fddf066121
fix(test): restore --cleanup
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-08-13 11:56:39 -07:00