Commit Graph
480 Commits
Author SHA1 Message Date
Pavani Pogula 6597fecce3 test(pkg/kube/wait): Add unit tests for waitForPodSuccess, waitForJob and SelectorsForObject.
Signed-off-by: Pavani Pogula <pogulapavani@gmail.com>
2025-08-06 21:57:13 +05:30
Pavani Pogula d4ed9210df test(pkg/kube/roundtripper): Add unit tests for roundtripper.go
Signed-off-by: Pavani Pogula <pogulapavani@gmail.com>
2025-08-06 21:57:13 +05:30
Atish Kumar 008bd7fc82 test(pkg/kube/client): add test for isReachable
Signed-off-by: Atish Kumar <allolro@gmail.com>
2025-08-01 13:43:45 +05:30
curlwget bfc1af68fb chore: fix function in comment
Signed-off-by: curlwget <curlwget@icloud.com>
2025-06-24 15:48:08 +08:00
Terry Howe 744c6b5a97 fix: kube client create mutex
Signed-off-by: Terry Howe <terrylhowe@gmail.com>
2025-06-10 09:28:52 -06:00
Scott Rigby de745ea34b Merge pull request #12581 from Nordix/considerAllGroupVersionKind
Consider full GroupVersionKind when matching resources
2025-06-03 15:02:18 -04:00
Matthieu MOREL 56a2bb4188 chore: enable usetesting linter
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2025-05-30 08:12:11 +02:00
Robert Sirchia 1b21f04b3b Merge pull request #30865 from mmorel-35/github.com/evanphx/json-patch/v5
fix: update json-patch import path and add gomodguard settings
2025-05-22 10:34:35 -04:00
Matthieu MOREL 157f0ba10a chore: enable thelper
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2025-05-16 10:25:08 +02:00
Matthieu MOREL 706392fabb fix: update json-patch import path and add gomodguard settings
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2025-05-16 09:40:56 +02:00
MichaelMorris 1460ebd14a Added test case to resource_test.go
Signed-off-by: MichaelMorris <michael.morris@est.tech>
2025-05-13 23:11:57 +01:00
MichaelMorris 9a2ac85077 Consider GroupVersionKind when matching resources
This change shall take Group, Version and Kind from GroupVersionKind
into consideration instead of the current behavior of only considering
the Kind

Closes: #12578

Signed-off-by: MichaelMorris <michael.morris@est.tech>
2025-05-13 22:19:21 +01:00
Robert Sirchia 4d580c6b95 Merge pull request #30810 from mmorel-35/usestdlibvars
chore: enable usestdlibvars linter
2025-05-08 10:35:10 -04:00
Terry Howe 71787cca60 fix: rename slave replica
Signed-off-by: Terry Howe <terrylhowe@gmail.com>
2025-05-07 13:55:45 -06:00
Matthieu MOREL 77a267dacf chore: enable usestdlibvars linter
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2025-04-27 22:44:46 +02:00
Justen Stall fc6c5e5edb remove WaitAndGetCompletedPodPhase function
Signed-off-by: Justen Stall <39888103+justenstall@users.noreply.github.com>
2025-04-21 17:19:48 -04:00
Justen Stall 3877ec9049 fix golangci-lint issues
Signed-off-by: Justen Stall <39888103+justenstall@users.noreply.github.com>
2025-04-21 12:44:40 -04:00
Justen Stall 280a9ddbdb Merge branch 'main' into stdlib-errors-2
Signed-off-by: Justen Stall <39888103+justenstall@users.noreply.github.com>
2025-04-21 12:13:10 -04:00
Scott Rigby 599fad1864 Merge pull request #30697 from p-se/fix-take-ownership
Fix --take-ownership for custom resources - closes #30622
2025-04-17 11:54:11 -04:00
Evans Mungai 1f5605a405 fix formatting errors
Signed-off-by: Evans Mungai <mbuevans@gmail.com>
2025-04-17 15:33:21 +01:00
Evans Mungai e8e79cc4b4 Merge branch 'main' into fix-take-ownership
Signed-off-by: Evans Mungai <mbuevans@gmail.com>
2025-04-15 04:46:17 -06:00
Evans Mungai 7c37a109f2 Add install test for TakeOwnership flag
Signed-off-by: Evans Mungai <mbuevans@gmail.com>
2025-04-15 11:24:12 +01:00
Benoit Tigeot eb65ce280b could apply De Morgan's law
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
2025-04-14 11:11:37 +02:00
Benoit Tigeot a9b7732367 could remove embedded field X from selector
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
2025-04-14 10:43:48 +02:00
Benoit Tigeot f5aec508f5 Add detailed debug logging for resource readiness states
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
2025-04-12 09:58:56 +02:00
Benoit Tigeot c05bcbd498 Fix nil pointer dereference in ready test
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
2025-04-10 16:40:05 +02:00
Benoit Tigeot cbaac7652d Call slog directly instead of using a wrapper
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
2025-04-10 15:35:36 +02:00
Benoit Tigeot 0c85456788 Leverage slog.Any for errors
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
2025-04-07 18:26:48 +02:00
Benoit Tigeot 5580f61157 Properly reproduce the nopLogger as before
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
2025-04-07 17:48:57 +02:00
Benoit Tigeot b2380720eb Migrate to pure slog without a custom wrapper
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
2025-04-07 16:46:08 +02:00
Benoit Tigeot b42767be40 Migrate more code to log adapter
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
2025-04-07 15:36:52 +02:00
Benoit Tigeot 83cdffe4ae Migrate to a dedicated internal package for slog adapter + migrate more
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
2025-04-07 15:36:36 +02:00
Benoit Tigeot 3a22df9731 Deal with linting errors
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
2025-04-07 15:36:15 +02:00
Benoit Tigeot 394ba2d55e Properly use DefaultLogger
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
2025-04-07 15:36:14 +02:00
Benoit Tigeot eb2dfe7dbf Some interesting rephrasing by Terry Howe
See: https://github.com/helm/helm/pull/30698#discussion_r2012394228
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
2025-04-07 15:35:44 +02:00
Benoit Tigeot 227d270788 Extra comment + Default logger fallback
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
2025-04-07 15:35:43 +02:00
Benoit Tigeot b642bca8f6 Provide an adapter to easily pass a slog.Default()
```
helmClient.Log = NewSlogAdapter(slog.Default())
```

Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
2025-04-07 15:35:43 +02:00
Benoit Tigeot d6d7cff417 Try to make log more common and more easily grepable
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
2025-04-07 15:35:42 +02:00
Benoit Tigeot 8d30464f2c Do no mask warning alerts
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
2025-04-07 15:35:24 +02:00
Benoit Tigeot dfaf249221 Remove unreachable error
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
2025-04-07 15:35:24 +02:00
Benoit Tigeot f4631bf3d8 Migrate kube package to slog
As for helm v4. We want to migrate logs to slog.

Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
2025-04-07 15:35:20 +02:00
Patrick Seidensal e55707b09d Fix --take-ownership
If a resource exists in the cluster and is to be adopted by helm install
--take-ownership, it is left unchanged while helm reports the
installation to have succeeded.

This is due to CRs and CRDs being merged without three-way-merge, which
results in an empty patch.

By using a three-way-merge transparently when --take-ownership is used,
the helm behaves as expected without breaking previous behavior.

Fixes #30622

Signed-off-by: Patrick Seidensal <pseidensal@suse.com>
2025-04-07 13:54:56 +02:00
Scott Rigby 985f5af538 Merge pull request #13604 from AustinAbro321/refactor-wait
Introduce kstatus watcher
2025-04-05 14:45:25 +01:00
Scott Rigby 122e7b441a Merge pull request #13458 from thudi/main
#13449 Resolves: Replacing NewSimpleClientSet to NewClientSet due to deprecation
2025-04-05 14:39:49 +01:00
Austin Abro 21ee721242 go fmt
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
2025-03-25 14:15:27 +00:00
Austin Abro 8efd428e5d switch back to k8s rest mapper
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
2025-03-25 14:10:31 +00:00
Austin Abro 83266254f0 merge
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
2025-03-25 14:01:28 +00:00
Austin Abro 386523bdbc update to get waiter instead of set
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
2025-03-25 13:55:39 +00:00
Benoit Tigeot 4f4c858f9c Ignore unused parameter
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
2025-03-23 15:39:56 +01:00
Benoit Tigeot 94cb21c7c4 Follow convention for error with slog.Any()
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
2025-03-21 10:38:11 +01:00