Adam Reese
b97f881be0
ref(*): use time.Duration for timeouts
...
Signed-off-by: Adam Reese <adam@reese.io>
6 years ago
Adam Reese
2dd4744d23
ref(pkg/kube): extract wait logic from install/update
...
This change adds a new method for waiting for kubernetes resources.
Signed-off-by: Adam Reese <adam@reese.io>
6 years ago
Michelle Noorali
ceab13e9a1
fix test command, move test to test run subcmd
...
Signed-off-by: Michelle Noorali <michellemolu@gmail.com>
6 years ago
Adam Reese
fe06343b8f
Merge pull request #5512 from adamreese/v3/linter-fixes
...
ref(pkg/action): refactoring dup code and linter fixes
6 years ago
Adam Reese
295092cd7d
ref(pkg/action): refactoring dup code and linter fixes
...
Signed-off-by: Adam Reese <adam@reese.io>
6 years ago
Matthew Fisher
bb179bdead
chore(dep): bump kubernetes to 1.14.0
...
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
6 years ago
Adam Reese
14d8e97d2a
fix(*): resolve new govet issues
...
Signed-off-by: Adam Reese <adam@reese.io>
6 years ago
Adam Reese
895e9192d4
feat(*): use vanity import helm.sh/helm
...
Signed-off-by: Adam Reese <adam@reese.io>
6 years ago
Matthew Fisher
2571dbf82f
ref: remove pkg/helm, pkg/hapi, pkg/tiller
...
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
6 years ago
Adam Reese
f791421fab
feat(Makefile): add formatting target
...
Signed-off-by: Adam Reese <adam@reese.io>
6 years ago
Matt Butcher
f3bfae5ea7
fix: fix a number of style errors ( #5136 )
...
This fixes a dozen or so style errors, almost all of which were just missing comments.
I left several which are fixed in other outstanding PRs, or which belong to code that is about to be removed.
Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>
6 years ago
Adam Reese
b4ed1de6b8
ref(*): kubernetes v1.12 support
...
Signed-off-by: Adam Reese <adam@reese.io>
6 years ago
Adam Reese
4f26b658d8
change copyright to "Copyright The Helm Authors"
6 years ago
Adam Reese
f012940d9c
ref(*): refactor chart/chartutil
...
ref(chartutil): move chart loading out of chartutil into new package
add chart loader interface to allow lazy loading
feat(chart): create chart accessors
ref(*): cleanup requirements
ref(tiller): remove optional template engines
ref(tiller): simplify sorting releases and hooks
ref(*): code simplification
ref(hapi): move chart package out of hapi
ref(chart): add requirements and lock to Chart struct
6 years ago
Adam Reese
7423eddf21
ref(*): kubernetes v1.11 support
6 years ago
Adam Reese
726e3c41be
feat(*): print stacktrace on error with debug enabled
7 years ago
Adam Reese
3c27143291
fix(kube): output internal object table
...
fixes #3937
7 years ago
Adam Reese
1a508ccdd1
ref(*): move kubeconfig flags to helm/environment
7 years ago
Adam Reese
19398a2ef1
feat(*): store release History in same namespace as release
...
https://github.com/kubernetes-helm/community/blob/master/helm-v3/003-state.md#namespacing-changes
7 years ago
Adam Reese
c233336079
ref(pkg/kube): simplify creating versioned objects
7 years ago
Adam Reese
8f58c9efdc
ref(*): refactor release testing
7 years ago
Adam Reese
496ca54183
ref(*): bypass grpc for helm client
7 years ago
AdamDang
ee9ef91df0
typo fix get->Get's
...
typo fix get->Get's
7 years ago
AdamDang
138de17c64
Fix some typos
...
outout->output
Get's->get
the the->the
7 years ago
Adam Reese
7c19cb7040
ref(*): kubernetes v1.10 support
7 years ago
Matthew Fisher
3c39e72189
Merge pull request #3401 from bacongobbler/revert-kubeconfig-flag
...
Revert "feat(helm): adding kubeconfig flag"
7 years ago
Matt Farina
e6137ff05f
fix(api-machinery): Fixes patching for unstructured objects
...
CRDs and other objects seen as unstructured cannot use strategic
merge patching. It has never been supported on CRDs. Previously,
cases like unstructured objects could have caused an unregistered
error. This is no longer the case.
This change explicitly looks for unstructured objects and handles
those using json merge patching.
Closes #3382
7 years ago
Matthew Fisher
2724387506
Merge pull request #3373 from unguiculus/feature/fix-recreate-part-1
...
Fix pod recreation
7 years ago
Paolo Mainardi
b065ffe1fc
adding other missing apiVersions
7 years ago
Paolo Mainardi
2cee4c68fa
add appsv1beta1 and appsv1beta2 apiVersion
7 years ago
Reinhard Nägele
ea520afd3e
Fix 'getSelectorFromObject'
7 years ago
Matthew Fisher
f13c4d28b5
Revert "feat(helm): adding kubeconfig flag"
...
This reverts commit 371ff8f26d
.
7 years ago
Reinhard Nägele
3d05da0109
Fix pod recreation
7 years ago
Adam Reese
a31e3b8fe1
ref(*): kubernetes v1.9 support ( #3234 )
7 years ago
Timofey Kirillov
13cb8d8244
Show kind in resource-not-found-in-release error
...
This error occures when resource is not found in helm release:
`Error: UPGRADE FAILED: no resource with the name "redis-cluster-sentinel" found`
Changed to:
`Error: UPGRADE FAILED: no ConfigMap with the name "redis-cluster-sentinel" found`
So now that resource can easily be found in cluster.
7 years ago
Tim Hockin
05d4b30730
Convert registry to k8s.gcr.io
7 years ago
Taylor Thomas
04769b7c26
Merge pull request #3131 from fgimenez/fix-2745
...
check if resource is present before adding it to remaining or keep on deletion
7 years ago
Matt Cholick
fe3eeaf39d
fix(helm): Tunnel closing already closed channel ( #3157 )
...
k8s client-go closes the ready channel that's passed in (see https://github.com/kubernetes/client-go/blob/master/tools/portforward/portforward.go#L171 ) This means that Tunnel's Close will always panic, as the client-go library will have closed then channel. This isn't reproducible unless helm.Client is externally, as the helm cli runner doesn't actually invoke Close.
7 years ago
Kai Chen
bc45e90198
Remove unnecessary parentheses in switch statements ( #3175 )
7 years ago
Federico Gimenez
e6d907ed28
check if resource is present before adding it to remaining or keep on deletion
7 years ago
gardlt
371ff8f26d
feat(helm): adding kubeconfig flag
7 years ago
Adam Reese
2b43ecd405
ref(*): kubernetes v1.8 support
7 years ago
Matthew Fisher
d7a81c99e1
Merge pull request #2976 from HotelsDotCom/respect-apiversion-change
...
Ignore Apiversion, use Kind and Name only to search for original resource on update/delete
7 years ago
Taylor Thomas
acd113ec21
Merge pull request #2978 from HotelsDotCom/detailed-wait-log
...
More helpful wait messages in tiller logs
7 years ago
Maxim Ivanov
cd8bae1df5
More helpful wait messages in tiller logs
7 years ago
Maxim Ivanov
bed80e482c
When looking for original resource on update/delete, ignore Apiversion, use Kind and Name only
...
Kind can change it's APIVersion with time, such as "Deployment" which was
"extensions/v1beta1" and then migrated to "apps/v1beta1" in Kube 1.6.
Name, Kind and optinally Namespace are used to find relevant Info
object for a original resource which is being upgraded, it safe enough,
as it is uniquely identifies an object.
7 years ago
devinyan
3458ad8e6a
Add the status of pod when using "Helm status" command
7 years ago
Adam Reese
845e990143
feat(*): use kubernetes 1.7
7 years ago
Justin Scott
af4c243ee3
Correct punctuation and capitalization for user facing strings.
8 years ago
Taylor Thomas
d9c0a8b434
fix(tiller): Adds missing import back
...
PR #2513 was behind master when merged. Other commits were
added that required the use of the log package. This re-adds
that package.
8 years ago
Taylor Thomas
b71bd6a455
Merge pull request #2513 from thomastaylor312/feat/moar_logging
...
feat(tiller): Adds more logging
8 years ago
Taylor Thomas
119fa6537c
feat(tiller): Adds more logging
...
This builds on previous work and adds more logging to follow
the full process of installing, updating, deleting, and rolling back.
This also standardizes capitalization of logs and small formatting
fixes
8 years ago
peay
0f26cc5522
Add --force to upgrade and rollback
8 years ago
tyrannasaurusbanks
b4fc1c7cb2
Add check to ensure helm doesnt 'wait' for external services to become 'ready'
8 years ago
Adam Reese
15254e4c5c
feat(*): add generic logging interface ( #2394 )
...
Adds a generic logging interface to importable packages.
8 years ago
Adam Reese
35aabdb61a
Merge pull request #2423 from FengyunPan/add-check
...
Add check for getting kubeclient
8 years ago
Taylor Thomas
d310612526
fix(tiller): Fixes bug with `--wait` and updated deployments
...
The current methodology generated its own RS slice instead of using
a helper method that uses a `clientset`. This caused some issues where
`FindNewReplicaSet` always returned `nil`. This switches the method and
removes some unneeded API calls and code.
Closes #2426
8 years ago
fengyun.pan
7887185984
Add check for getting kubeclient
8 years ago
Kiichiro Okano
46cad97950
Return as not ready if it new RS is nil
8 years ago
Adam Reese
7a141a10b3
fix(helm): correct import for apps api
...
* cleanup named imports
8 years ago
Adam Reese
85c41ef11a
ref(*): kubernetes v1.6
...
Rebase on kubernetes v1.6
8 years ago
kiich
85a91394aa
Merge branch 'master' into deploymentsReady-when-newRS-has-minimumReplicas
8 years ago
Kiichiro Okano
e3655bb142
Trigger deployment as success when new replicaSet has reached minimum you need which is number of replicas minus maxUnavailable
8 years ago
Matt Butcher
55791e227e
Merge pull request #2148 from technosophos/fix/2118-broken-status
...
fix(tiller): fix helm status failure on missing resource
8 years ago
Anubhav Mishra
76ebf20aac
fix(helm): fix typo
8 years ago
Anubhav Mishra
b208258f53
fix(helm): more quotation fixes
8 years ago
Anubhav Mishra
73fd0e4557
fix(tiller): now better formatting
8 years ago
Anubhav Mishra
c17ce5f9c1
fix(tiller): adding kind to tiller client logs
...
Closes #2162
8 years ago
Matt Butcher
27c3ff595a
fix(tiller): fix helm status failure on missing resource
...
This fixes a bug in which 'helm status' fails if any of the expected
resources are missing in Kubernetes. Now it prints a list of missing
resources at the end of the status report.
Closes #2118
8 years ago
Taylor Thomas
185fb4f43c
fix(tiller): Fixes problem with `--wait` on headless Services
...
Headless services (with `clusterIP` set to `None`) were reporting
as not being ready because they didn't have an IP address. This adds
a logic check to ignore those services.
8 years ago
Taylor Thomas
9afa04b71b
fix(tiller): Fixes `--wait` panic on upgrade
...
When manifests do not change, they didn't get populated with the
latest label info from the API server and then panic'd. This resolves
that bug
Closes #2043
8 years ago
Adam Reese
12db1f945f
fix(kube): fix wait and recreate
...
fixes #2006
8 years ago
Adam Reese
790b90b95b
fix(kube): prevent recreating pods without a selector
8 years ago
Adam Reese
67fc1a21aa
feat(kube): support upgrading ThirdPartyResources
8 years ago
Adam Reese
ae9691910d
ref(kube): code style cleanup
8 years ago
Adam Reese
0f461ba8b5
feat(kube): use jsonpatch to update ThirdPartyResources
8 years ago
Adam Reese
4cdb2ac538
feat(kube): support thirdpartyresources
8 years ago
Michelle Noorali
e95a0570ad
chore(pkg/releasetesting): add test_suite tests
...
* and comments
8 years ago
Michelle Noorali
e132191275
ref(pkg/): refactor helm test logic
...
pulled logic out in pkg/releasetesting
8 years ago
Vaughn Dice
9bd12953a9
feat(*): add kube client test
...
* for WaitAndGetCompletedPodPhase
8 years ago
Michelle Noorali
d46d63a8f7
feat(*): add helm test command mvp
...
* This is a simple mvp which processes a test definition with the
hook annotation for test when you run `helm test [release]`
* helm client cmd, proto def, tiller logic
8 years ago
Taylor Thomas
7ef9bb6f71
feat(*): Add --wait flag
...
Adds `--wait` flag to helm that waits for all pods to reach a ready
state, PVCs to be bound, and services to have IP addresses
Closes #1805
8 years ago
Adam Reese
de64da2bb1
ref(kube): misc code cleanup
8 years ago
Adam Reese
9e37009467
fix(kube): reap deleted resources during upgrade
8 years ago
Adam Reese
b22e6fcfaa
ref(kube): add Result to abstract a collection of resources
8 years ago
Adam Reese
d10e9186dc
feat(tiller): validate objects against kube schema on dry-run
8 years ago
Matt Butcher
dbe1c970b3
ref(tiller): minor style refactor
8 years ago
Matt Butcher
b28b58ad8b
Merge pull request #1715 from mariusgrigoriu/master
...
Play nicely with roles that don't allow creating namespaces
8 years ago
Taylor Thomas
774789c79a
feat(*): Adds support for timeout flag
...
Installs, rollback, upgrade, and delete now accept a `--timeout` flag
that allows the user to specify the maximum number of seconds that
any kubernetes command can take.
Closes #1678
8 years ago
Marius Grigoriu
d87cd95112
Play nicely with roles that don't allow creating namespaces
...
It is unnecessary to create a namespace just to test that it exists.
Roles that don't have post namespace will error out even if the namespace exists
and it is possible to install the package anyway. This patch Gets a namespace and
only creates one if it doesn't exist.
8 years ago
Nikolay Mahotkin
1eaec045b2
Rename 'restart' to 'recreate'
8 years ago
Nikolay Mahotkin
44d9274df3
Fixing tests
8 years ago
Nikolay Mahotkin
ec0d104fe1
Reformatting changes
...
* Run gofmt on all changed files
so they formatted properly now
8 years ago
Nikolay Mahotkin
fdac5e8a39
Introducing flag for restarting pods during release upgrade/rollback
...
* Added pod restart for ReplicaSet
* Added --restart flag for helm CLI for upgrade/rollback commands
* By default, restart is false
8 years ago
Nikolay Mahotkin
22b206cc69
Adding pod restarting while upgrading release
...
* Added pod restarting for
- ReplicationController
- DaemonSet
- PetSet
8 years ago
Adam Reese
525df8f0d1
ref(kube): simplify encoding for creating patches
8 years ago
Adam Reese
fb9ef50bc8
test(kube): add test for upgrade
8 years ago
Adam Reese
cac9f9c7cc
ref(kube): isolate ensureNamespace and add tests
8 years ago
Adam Reese
bceea66d27
ref(kube): remove unused fields on client
8 years ago
Adam Reese
ea3be9e3b2
feat(*): migrate to kubernetes 1.5
8 years ago