Commit Graph

1417 Commits

Author SHA1 Message Date
Charlie Getzen
d2cafdc063 modify resources to match helm3
Signed-off-by: Charlie Getzen <charlie.getzen@procore.com>
2019-10-04 00:28:51 -07:00
Charlie Getzen
ce4ca05d0a use WaitGroup instead of channels and counters
Signed-off-by: Charlie Getzen <charlie.getzen@procore.com>
2019-10-04 00:22:51 -07:00
Charlie Getzen
25bbd88639 Add check on empty list
Signed-off-by: Charlie Getzen <charlie.getzen@procore.com>
2019-10-03 10:48:56 -07:00
Charlie Getzen
4c39d2b63f batch perform function by resource kind (Deployment, Pod, etc)
Signed-off-by: Charlie Getzen <charlie.getzen@procore.com>
2019-10-03 10:48:56 -07:00
Charlie Getzen
f7a05ba018 Use a goroutine when interacting with kube api
Signed-off-by: Charlie Getzen <charlie.getzen@procore.com>
2019-10-03 10:48:56 -07:00
Taylor Thomas
319045d351 Merge pull request #6547 from SimonAlling/processDependencyConditions
ref(pkg/chartutil): Simplify processDependencyConditions
2019-10-02 14:26:10 -06:00
Taylor Thomas
3cc0240d8d Merge pull request #6549 from perher/no-wait-paused-v3
Skip waiting for paused deployments
2019-10-02 14:07:39 -06:00
Matthew Fisher
c1fc24c84e Merge pull request #6386 from VilledeMontreal/fix/testrunnocluster
Check connectivity to cluster for helm test run
2019-10-02 11:40:40 -07:00
Simon Alling
43bb10cd24 ref(pkg/chartutil): Dry up file and path names (#6554)
Signed-off-by: Simon Alling <alling.simon@gmail.com>
2019-10-02 09:36:14 +01:00
Taylor Thomas
11d5a269a7 Merge pull request #6542 from thomastaylor312/fix/atomic_delete
fix(action): Protects against current resource conflicts
2019-10-01 13:42:13 -06:00
Taylor Thomas
6ccb2897d9 PR fixes
Signed-off-by: Taylor Thomas <taylor.thomas@microsoft.com>
2019-10-01 13:38:57 -06:00
Per Hermansson
f5e977b8ed Skip waiting for paused deployments
Signed-off-by: Per Hermansson <perher1@gmail.com>
2019-10-01 20:10:21 +02:00
Simon Alling
a40debd42b ref(pkg/chartutil): Simplify processDependencyConditions
Before this commit, `r.Enabled` was modified if and only if a boolean
was found in the for loop, and in that case, it was assigned the value
of said boolean, just in a more complicated way.

Signed-off-by: Simon Alling <alling.simon@gmail.com>
2019-10-01 18:38:38 +02:00
Taylor Thomas
36f3a4b326 fix(action): Protects against current resource conflicts
Currently, if using the --atomic flag or deleting a release that failed due to an already existing
resource, Helm will deleting those resources that aren't managed by it. This PR fixes the issue
by checking for pre-existing resources during install and upgrade. This is done as a validation
step so the release will not even be started if resources currently exist. This PR is inspired by
@xchapter7x's work in #3477.

This also fixes a small bug in upgrade where deletes fail if the resource was already deletes

Fixes #6407

Signed-off-by: Taylor Thomas <taylor.thomas@microsoft.com>
2019-09-30 16:11:40 -06:00
Matthew Fisher
37f7cc0851 Merge pull request #4917 from derkoe/dev-v3-fix-requirement-condition
fix(pkg/chartutil): conditions for alias and umrella charts (#3734)
2019-09-30 14:50:19 -07:00
Martin Hickey
26dacf84aa feat(cmd): Port child NOTES.txt rendering to Helm 3 (#6512)
* Port Helm 2 PR 4088 to Helm 3

Not a direct port as is but refactored for Helm 3.

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

* Update unit test to test string retunred for different order

Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
2019-09-30 16:40:33 +01:00
Martin Hickey
db15a6f898 Create charts directory for scaffold chart (#6516)
Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
2019-09-30 16:37:34 +01:00
Taylor Thomas
15d277360e Merge pull request #6504 from thomastaylor312/feat/output
feat(*): Ports all output functionality from v2
2019-09-26 12:30:23 -06:00
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
Taylor Thomas
eac6a60001 feat(*): Ports all output functionality from v2
As part of this port, I removed some now superfluous code from the `action` package.
This is technically a breaking change, but since the package was introduced in v3, it
is highly unlikely anyone is using it and we are still within the beta window.

Also closes #6437

Signed-off-by: Taylor Thomas <taylor.thomas@microsoft.com>
2019-09-25 16:07:10 -06: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
Marc Khouzam
5aa7c20f7c Check connectivity to cluster for helm test run
Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca>
2019-09-07 15:15:24 -04:00
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