Commit Graph

489 Commits (main)

Author SHA1 Message Date
muang0 4cb62d1262
Update pkg/kube/ready.go
3 years ago
muang0 dbb21fcf44
Update pkg/kube/ready.go
3 years ago
muang0 fcc03324a6
Update pkg/kube/ready.go
3 years ago
muang0 a1a1aafb7d
Update pkg/kube/ready.go
3 years ago
cpanato 006bc0f39d
update k8s registry domain
3 years ago
MichaelMorris 830d4a9ee9 Add option to support cascade deletion options
3 years ago
Matt Farina 36e18fa6e1
Fix improper use of Table request/response to k8s API
3 years ago
Matt Farina 774c6ce703
Merge pull request #11439 from phoenixsqf/main
3 years ago
Xin Ruan a2b98281a1 Use errors.Is to compare
3 years ago
Soujanya Mangipudi 038cc4a0ca
Merge branch 'main' into main
3 years ago
Xin Ruan f01486a0ef Use wrapped error so that ErrNoObjectsVisited can be compared after return.
3 years ago
Martin Hickey 3974136b6e
Merge pull request #11426 from cenkalti/leader-changed
3 years ago
Andrew Block 269dd247d0
Merge pull request #11300 from porridge/better-logging
3 years ago
Qifan Shen 9d59d92abb use intstr.GetScaledValueFromIntOrPercent instead of the deprecated
3 years ago
Cenk Alti d32c623699 Revert "Tolerate temporary errors from etcdserver"
3 years ago
Davanum Srinivas ebc79fa807
Tolerate temporary errors from etcdserver
3 years ago
Soujanya Mangipudi ffa19a4b5d Addressing review comments - move printing code out of client.go
3 years ago
Soujanya Mangipudi 20e3577543 Addressing review comments:
3 years ago
Soujanya Mangipudi 9d5be803bc feat(helm): Supporting helm3 to show up resource names that were deployed as part of release in helm status command
3 years ago
Marcin Owsiany b7c35d2a0f During deletion, explicitly log already deleted resource name.
3 years ago
James Oden d008340891 ready checker- comment update
3 years ago
James Oden 4f99c86914 ready checker- remove duplicate statefulset generational check
3 years ago
James Oden f067073e23 Merge branch 'main' into readiness-generation-check
3 years ago
Dominic Evans 7c74f1dd02 fix: improve logging & safety of statefulSetReady
3 years ago
Andrew Seigner bd7c97f786 Bump k8s packages from 0.23.6 to 0.24.0
3 years ago
James Oden d94c5094f6 Verify generation in readiness checks
3 years ago
Martin Hickey 292368a64d
Merge pull request #10209 from yxxhero/fix_sa_issue
4 years ago
yxxhero f82896b0b5 add more debug msg when helm upgrade
4 years ago
Matthew Fisher 67f92d63fa
Merge pull request #9640 from wangchenglong01/wangchl01
4 years ago
Bhavin Gandhi c3310bb724 fix(pkg/kube): statefulSetReady: handle partition cases correctly
4 years ago
Jeff Rosenberg b13f3a13d4
Merge branch 'main' into error-on-failed-jobs-9285
4 years ago
Matt Farina accf82ba1c
Merge pull request #9180 from Moser-ss/feature-handle-SIGINT
4 years ago
Mike Ng 75fe8883cc Rename newly introduced interface to InterfaceExt
4 years ago
Mike Ng d51a61f9ab Introduce a new interface for WaitForDelete() to avoid breaking backwards compatibility
4 years ago
Mike Ng 655bdcd2fd feat: add optional boolean '--wait' flag to 'uninstall' command.
4 years ago
lsowen 249d1b5fb9 Fix SIGSEGV when job.Spec.Completions is nil
4 years ago
Stephane Moser 4bc901c95f Resolve PR comments
4 years ago
Rosenberg, Jeff cd04e3f418 Throw an error from jobReady() if the job exceeds its BackoffLimit
4 years ago
Stephane Moser 4026190e7b Revert change in PrintingKubeClient
4 years ago
Stephane Moser 7bfb2a3602 Improve tests
4 years ago
Matt Farina 21251378b4
Merge pull request #9870 from mattfarina/fix-9859
4 years ago
小龙同学 cf0c6fed51
fix(doc): fix kube client interface doc. (#9882)
4 years ago
Stephane Moser 2fa339b25d Add test for Upgrade Release Interrupted
4 years ago
Matt Farina aeb94798f0
Set Helm as manager for managedFields
4 years ago
Cookie Wang 8959d93711 Add error check to avoid panic
4 years ago
Joe Lanford 98d98369ed
Add ReadyChecker to decouple ready check logic from --wait
5 years ago
James McElwain 54410194a6 closes #9312
5 years ago
Matt Farina f5ef87b96e
Merge pull request #8363 from zh168654/master
5 years ago
Jon Huhn 5d08a0d00e Fix typo
5 years ago
zh168654 bfc575dec2 add waitwithjobs instead of changing wait api
5 years ago
zh168654 957d2a2bf9 add wait-for-jobs flag
5 years ago
zhangye15 bd03e1b5c7 fix style conformance
5 years ago
zhangye15 c96dc48f21 fix test-style error
5 years ago
zh168654 8d498d58e7 add test cases
5 years ago
zh168654 5825112a8b helm upgrade with --wait support jobs in manifest to be completed
5 years ago
Janario Oliveira cf3870a57f Adjusted import
5 years ago
Janario Oliveira 10a29d1662 Reuse kube-client
5 years ago
Matt Farina b7c38c879a Adding support for k8s 1.19
5 years ago
Li Zhijian 4258e8664e Use T.cleanup() to cleanup cmdtest_temp file
5 years ago
Tariq Ibrahim b07b2589fb
optimise if condition in service ready logic
5 years ago
Rajat Jindal 4faeedd98b fix watch error due to elb/proxy timeout
5 years ago
Hidde Beydals 8217aba4a6 fix(kube): use logger instead of fmt.Printf
5 years ago
Matt Farina dbd001e532
Removing tiller language
5 years ago
小明同学 decab8ea2e
fix: upgrade using --force shoud not run patch logic (#8000)
5 years ago
Liu Ming ff3ed53b7c polish to keep the same log style
5 years ago
Adam Reese d5d96ed3cf
Merge pull request #7929 from adamreese/fix/upgrade-results
5 years ago
Adam Reese 4a0dfbe53b
fix(pkg/cli): ensure correct configuration from kubeconfig file
5 years ago
Adam Reese bdf6f48704
fix(pkg/kube): continue deleting objects when one fails
6 years ago
Adam Reese c2da4fd53d
ref(*): kubernetes v1.18 (#7831)
6 years ago
lnattrass c12a9aee02
fix(helm): Data race in kube/client Delete func. (#7820)
6 years ago
Dong Gang 69d9722eda test(helm): fix client update error
6 years ago
Dong Gang c45869c4ad fix(helm): polish goimport
6 years ago
Dong Gang 9744e9f619 fix(helm): respect resource policy on ungrade
6 years ago
Matthew Fisher 64ce6e6a74
Merge pull request #7591 from ylvmw/master
6 years ago
Taylor Thomas 512e1b8bc9
Merge pull request #7401 from hiddeco/non-global-scheme-convert
6 years ago
Taylor Thomas 2cd3d12acd
Merge pull request #7530 from plenus-cloud/fix-7513
6 years ago
ylvmw 54ca879095 IsReachable() needs to give detailed error message.
6 years ago
Hidde Beydals e41184a585 fix(kube): generate k8s native scheme only once
6 years ago
Hidde Beydals b55224ebb9 fix(kube): use non global Scheme to convert
6 years ago
Benn Linger 5e638e3587
Revert "Do not delete templated CRDs"
6 years ago
Federico Bevione af0007c908 fix(helm): improved logs
6 years ago
Federico Bevione 077503f175 fix(helm): Reworded logs for clarity
6 years ago
Matthew Fisher 0dadbdc309
Merge pull request #7373 from Sh4d1/bypass_ns
6 years ago
Federico Bevione 438eaec971 fix(helm): Don't wait for service to be ready when external IP are set
6 years ago
Taylor Thomas c8c0000725
Merge pull request #7409 from akazemis/11414-fix-the-helm-upgrade-force-log-issue
6 years ago
Jakub Bielecki 8fe2097ffe fix(kube) only add to scheme.Scheme once
6 years ago
Ahmad Kazemi 9143223932 unnecessary import removed
6 years ago
Ahmad Kazemi d4c37d33d1 Signed-off-by: Ahmad Kazemi <ahmad.kazemi@recordpoint.com>
6 years ago
Guangwen Feng 0cdbbf287f Fix typo in comment for func IsReachable
6 years ago
Patrik Cyvoct ff0e008558
add option to bypass kubeconfig namespace
6 years ago
Taylor Thomas f35719a62a
Merge pull request #7320 from PhilGrayson/issue-7279
6 years ago
Matthew Fisher 9e4d42e18c
Merge pull request #7245 from waveywaves/fix/crd-install-api-extensions
6 years ago
Phil Grayson 600970459e Do not delete templated CRDs
6 years ago
Guangwen Feng cedd480199 Add corresponding unit test to the function in resource.go.
6 years ago
Adrian Gonzalez-Martin afa612df9d Add back fix for CRD patch creation
6 years ago
Martin Hickey b6e2a14306
fix(kube): Port use of watcher with retries to wait for resources (#7217)
6 years ago
Vibhav Bobade 1c6424cb18 fix(install) crd install with apiextensions.k8s.io/v1
6 years ago
Taylor Thomas ecb55c1de7 fix(wait): Adds support for waiting on v1 apiextensions for CRDs
6 years ago
Fabian Ruff 7f7e90b407 Consider namespace when comparing resources
6 years ago
Matthew Fisher a505f91073
fix(kube): return error when object cannot be patched
6 years ago
Taylor Thomas c69af3d5bd fix(wait): Removes ingress checks
6 years ago
Matthew Fisher 4d5a62303e
fix(kube): replace rather than delete/create
6 years ago
Matthew Fisher 9e9f317cbf
Merge pull request #6608 from bacongobbler/refactor-switch-statement
6 years ago
John Howard 7a22cb88d9 Drop dependency on k8s.io/kubernetes (#6609)
6 years ago
Adam Reese 572b92dc8a
feat(pkg/kube): add openapi validation for k8s objects
6 years ago
Matthew Fisher f55a64240f
ref(wait): remove versioned type, use unversioned instead
6 years ago
fengxsong a4dd603f78
Refactor switch statement in pkg/kube/wait.go
6 years ago
fengxsong cf728f4076
fix wait.go
6 years ago
fengxusong 3b280ab038
Refactor switch statement in pkg/kube/wait.go
6 years ago
Taylor Thomas 63c994343b feat(wait): Ports ingress wait to v3
6 years ago
Taylor Thomas 07c950fc41
Merge pull request #6571 from cgetzen/cg/dev-v3/kube_create_goroutine
6 years ago
Charlie Getzen d2cafdc063 modify resources to match helm3
6 years ago
Charlie Getzen ce4ca05d0a use WaitGroup instead of channels and counters
6 years ago
Matt Farina 9bc7934f35
Updating the module for v3 as the major version
6 years ago
Charlie Getzen 25bbd88639 Add check on empty list
6 years ago
Charlie Getzen 4c39d2b63f batch perform function by resource kind (Deployment, Pod, etc)
6 years ago
Charlie Getzen f7a05ba018 Use a goroutine when interacting with kube api
6 years ago
Matt Farina e3137d106a
Migrating dependency management to go modules
6 years ago
Taylor Thomas 3cc0240d8d
Merge pull request #6549 from perher/no-wait-paused-v3
6 years ago
Taylor Thomas 6ccb2897d9 PR fixes
6 years ago
Per Hermansson f5e977b8ed Skip waiting for paused deployments
6 years ago
Taylor Thomas 36f3a4b326 fix(action): Protects against current resource conflicts
6 years ago
Taylor Thomas 17854e83af feat(*): Ports `--cleanup-on-fail` to v3
6 years ago
Matt Butcher 0f332b67f1
fix: clear the discovery cache after CRDs are installed (#6332)
6 years ago
Vibhav Bobade 5a07055645 Add IsReachable to /pkg/kube/client to see if connected to the internet
6 years ago
Adam Reese cc98242feb
fix(pkg/kube): only wait for events from Jobs and Pods
6 years ago
Jacob LeGrone 2bd94bc552
Merge branch 'dev-v3' of https://github.com/helm/helm into test-as-hook
6 years ago
Taylor Thomas b46d7fd527 fix(kube): Fixes nil panic with stateful set waiting
6 years ago
Jacob LeGrone 08b2d8a2dc
Merge branch 'dev-v3' of https://github.com/helm/helm into test-as-hook
6 years ago
Matthew Fisher 18ca0dd6c4
ref(client): use three-way merge patch strategy
6 years ago
Jacob LeGrone 49987975a8
fix(test): wait for pods and record status
6 years ago
Taylor Thomas dd8222d7f2 Removes clientset method from interface in favor of the configuration struct
6 years ago
Taylor Thomas 189b5a1229 Fixed object typing for watching Jobs/hooks
6 years ago
Taylor Thomas 15fc57f8a3 ref(*): Refactors kube client to be a bit more friendly
6 years ago
Taylor Thomas 1dac8421ef ref(kube): Renames `Result` type to `ResourceList`
6 years ago
Martin Hickey 5410e7d346 Fix style conformance issues
6 years ago
Matthew Fisher 880f4456b3
Merge pull request #6046 from bacongobbler/fix-5654
6 years ago
Matthew Fisher b5d555e4ea
fix(kube): remove namespace enforcement
6 years ago
Taylor Thomas 29c343278e feat(action): Refactors unit tests with better fakes
6 years ago
Taylor Thomas eaa7d8c7c4 feat(wait): Adds smarter waiting for DaemonSets and StatefulSets
6 years ago
Marc Khouzam 81321532e6 Fix linter issuers
6 years ago
Taylor Thomas c8c854a35c fix(pkg/kube): Fixes wait functionality
6 years ago
Adam Reese 77a1b7e0a2
ref(*): expose klog flags
6 years ago
Adam Reese 0338576fc5
ref(pkg/kube): cleanup kube client interface
6 years ago
Adam Reese b97f881be0
ref(*): use time.Duration for timeouts
6 years ago
Adam Reese 2dd4744d23
ref(pkg/kube): extract wait logic from install/update
6 years ago
Michelle Noorali ceab13e9a1 fix test command, move test to test run subcmd
7 years ago
Adam Reese fe06343b8f
Merge pull request #5512 from adamreese/v3/linter-fixes
7 years ago
Adam Reese 295092cd7d
ref(pkg/action): refactoring dup code and linter fixes
7 years ago
Matthew Fisher bb179bdead
chore(dep): bump kubernetes to 1.14.0
7 years ago
Adam Reese 14d8e97d2a
fix(*): resolve new govet issues
7 years ago
Adam Reese 895e9192d4
feat(*): use vanity import helm.sh/helm
7 years ago
Matthew Fisher 2571dbf82f
ref: remove pkg/helm, pkg/hapi, pkg/tiller
7 years ago
Adam Reese f791421fab
feat(Makefile): add formatting target
7 years ago
Matt Butcher f3bfae5ea7
fix: fix a number of style errors (#5136)
7 years ago
Adam Reese b4ed1de6b8
ref(*): kubernetes v1.12 support
7 years ago
Adam Reese 4f26b658d8
change copyright to "Copyright The Helm Authors"
7 years ago
Adam Reese f012940d9c
ref(*): refactor chart/chartutil
7 years ago
Adam Reese 7423eddf21
ref(*): kubernetes v1.11 support
7 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
8 years ago
Adam Reese 1a508ccdd1
ref(*): move kubeconfig flags to helm/environment
8 years ago
Adam Reese 19398a2ef1
feat(*): store release History in same namespace as release
8 years ago
Adam Reese c233336079
ref(pkg/kube): simplify creating versioned objects
8 years ago
Adam Reese 8f58c9efdc
ref(*): refactor release testing
8 years ago
Adam Reese 496ca54183
ref(*): bypass grpc for helm client
8 years ago
AdamDang ee9ef91df0
typo fix get->Get's
8 years ago
AdamDang 138de17c64
Fix some typos
8 years ago
Adam Reese 7c19cb7040
ref(*): kubernetes v1.10 support
8 years ago
Matthew Fisher 3c39e72189
Merge pull request #3401 from bacongobbler/revert-kubeconfig-flag
8 years ago
Matt Farina e6137ff05f
fix(api-machinery): Fixes patching for unstructured objects
8 years ago
Matthew Fisher 2724387506
Merge pull request #3373 from unguiculus/feature/fix-recreate-part-1
8 years ago
Paolo Mainardi b065ffe1fc adding other missing apiVersions
8 years ago
Paolo Mainardi 2cee4c68fa add appsv1beta1 and appsv1beta2 apiVersion
8 years ago
Reinhard Nägele ea520afd3e Fix 'getSelectorFromObject'
8 years ago
Matthew Fisher f13c4d28b5 Revert "feat(helm): adding kubeconfig flag"
8 years ago
Reinhard Nägele 3d05da0109 Fix pod recreation
8 years ago
Adam Reese a31e3b8fe1
ref(*): kubernetes v1.9 support (#3234)
8 years ago
Timofey Kirillov 13cb8d8244 Show kind in resource-not-found-in-release error
8 years ago
Tim Hockin 05d4b30730 Convert registry to k8s.gcr.io
8 years ago
Taylor Thomas 04769b7c26
Merge pull request #3131 from fgimenez/fix-2745
8 years ago
Matt Cholick fe3eeaf39d fix(helm): Tunnel closing already closed channel (#3157)
8 years ago
Kai Chen bc45e90198 Remove unnecessary parentheses in switch statements (#3175)
8 years ago
Federico Gimenez e6d907ed28 check if resource is present before adding it to remaining or keep on deletion
8 years ago
gardlt 371ff8f26d feat(helm): adding kubeconfig flag
8 years ago
Adam Reese 2b43ecd405
ref(*): kubernetes v1.8 support
8 years ago
Matthew Fisher d7a81c99e1 Merge pull request #2976 from HotelsDotCom/respect-apiversion-change
8 years ago
Taylor Thomas acd113ec21 Merge pull request #2978 from HotelsDotCom/detailed-wait-log
8 years ago
Maxim Ivanov cd8bae1df5 More helpful wait messages in tiller logs
8 years ago
Maxim Ivanov bed80e482c When looking for original resource on update/delete, ignore Apiversion, use Kind and Name only
8 years ago
devinyan 3458ad8e6a Add the status of pod when using "Helm status" command
8 years ago
Adam Reese 845e990143
feat(*): use kubernetes 1.7
8 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
8 years ago
Taylor Thomas b71bd6a455 Merge pull request #2513 from thomastaylor312/feat/moar_logging
8 years ago
Taylor Thomas 119fa6537c feat(tiller): Adds more logging
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)
8 years ago
Adam Reese 35aabdb61a Merge pull request #2423 from FengyunPan/add-check
8 years ago
Taylor Thomas d310612526 fix(tiller): Fixes bug with `--wait` and updated deployments
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
9 years ago
Adam Reese 7a141a10b3 fix(helm): correct import for apps api
9 years ago
Adam Reese 85c41ef11a ref(*): kubernetes v1.6
9 years ago
kiich 85a91394aa Merge branch 'master' into deploymentsReady-when-newRS-has-minimumReplicas
9 years ago
Kiichiro Okano e3655bb142 Trigger deployment as success when new replicaSet has reached minimum you need which is number of replicas minus maxUnavailable
9 years ago
Matt Butcher 55791e227e Merge pull request #2148 from technosophos/fix/2118-broken-status
9 years ago
Anubhav Mishra 76ebf20aac fix(helm): fix typo
9 years ago
Anubhav Mishra b208258f53 fix(helm): more quotation fixes
9 years ago
Anubhav Mishra 73fd0e4557 fix(tiller): now better formatting
9 years ago
Anubhav Mishra c17ce5f9c1 fix(tiller): adding kind to tiller client logs
9 years ago
Matt Butcher 27c3ff595a
fix(tiller): fix helm status failure on missing resource
9 years ago
Taylor Thomas 185fb4f43c fix(tiller): Fixes problem with `--wait` on headless Services
9 years ago
Taylor Thomas 9afa04b71b fix(tiller): Fixes `--wait` panic on upgrade
9 years ago
Adam Reese 12db1f945f fix(kube): fix wait and recreate
9 years ago
Adam Reese 790b90b95b fix(kube): prevent recreating pods without a selector
9 years ago
Adam Reese 67fc1a21aa feat(kube): support upgrading ThirdPartyResources
9 years ago
Adam Reese ae9691910d ref(kube): code style cleanup
9 years ago
Adam Reese 0f461ba8b5 feat(kube): use jsonpatch to update ThirdPartyResources
9 years ago
Adam Reese 4cdb2ac538 feat(kube): support thirdpartyresources
9 years ago
Michelle Noorali e95a0570ad chore(pkg/releasetesting): add test_suite tests
9 years ago
Michelle Noorali e132191275 ref(pkg/): refactor helm test logic
9 years ago
Vaughn Dice 9bd12953a9 feat(*): add kube client test
9 years ago
Michelle Noorali d46d63a8f7 feat(*): add helm test command mvp
9 years ago
Taylor Thomas 7ef9bb6f71 feat(*): Add --wait flag
9 years ago
Adam Reese de64da2bb1 ref(kube): misc code cleanup
9 years ago
Adam Reese 9e37009467 fix(kube): reap deleted resources during upgrade
9 years ago
Adam Reese b22e6fcfaa ref(kube): add Result to abstract a collection of resources
9 years ago
Adam Reese d10e9186dc feat(tiller): validate objects against kube schema on dry-run
9 years ago
Matt Butcher dbe1c970b3
ref(tiller): minor style refactor
9 years ago
Matt Butcher b28b58ad8b Merge pull request #1715 from mariusgrigoriu/master
9 years ago
Taylor Thomas 774789c79a feat(*): Adds support for timeout flag
9 years ago
Marius Grigoriu d87cd95112 Play nicely with roles that don't allow creating namespaces
9 years ago
Nikolay Mahotkin 1eaec045b2 Rename 'restart' to 'recreate'
9 years ago
Nikolay Mahotkin 44d9274df3 Fixing tests
9 years ago
Nikolay Mahotkin ec0d104fe1 Reformatting changes
9 years ago
Nikolay Mahotkin fdac5e8a39 Introducing flag for restarting pods during release upgrade/rollback
9 years ago
Nikolay Mahotkin 22b206cc69 Adding pod restarting while upgrading release
9 years ago
Adam Reese 525df8f0d1 ref(kube): simplify encoding for creating patches
9 years ago
Adam Reese fb9ef50bc8 test(kube): add test for upgrade
9 years ago
Adam Reese cac9f9c7cc ref(kube): isolate ensureNamespace and add tests
9 years ago
Adam Reese bceea66d27 ref(kube): remove unused fields on client
9 years ago
Adam Reese ea3be9e3b2 feat(*): migrate to kubernetes 1.5
9 years ago
Adam Reese 803475c824 fix(*): misc linter issues
9 years ago
Adam Reese 2ae8821418 feat(kube): add schema validation
9 years ago
Adam Reese df123865c3 fix(kube): fix incomplete patches generated on update
9 years ago
Adam Reese d59f66fc9e fix(*): fix new linter errors
9 years ago
Matt Butcher 8a7e1ec29f Merge pull request #1512 from technosophos/fix/1508-delete-error-message
9 years ago
Matt Butcher 3830736001
fix(tiller): improve deletion failure handling
9 years ago