Austin Abro
11eeb4a6b1
merge
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
7 months ago
Austin Abro
4f33e5c97f
test refactoring
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
7 months ago
Austin Abro
75292c5e04
refactor
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
7 months ago
Austin Abro
b79dfd09b0
refactor
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
7 months ago
Scott Rigby
2cda65d444
Merge pull request #10309 from Bez625/main
...
Add hook annotation to output hook logs to client on error
7 months ago
Robert Sirchia
8dd279271e
remove unused config.go
...
Signed-off-by: Robert Sirchia <rsirchia@outlook.com>
7 months ago
Chris Berry
6d30fa5990
Add HookOutputFunc and generic yaml unmarshaller
...
Signed-off-by: Chris Berry <bez625@gmail.com>
7 months ago
Chris Berry
3d4e679d9f
Update based on review comments
...
Signed-off-by: Chris Berry <bez625@gmail.com>
7 months ago
Chris
3964f84ac8
Tidy up imports
...
Signed-off-by: Chris <bez625@gmail.com>
7 months ago
Chris Berry
cde407b7d1
Add hook annotations to output pod logs to client on success and fail
...
Signed-off-by: Chris Berry <bez625@gmail.com>
7 months ago
Robert Sirchia
8207fafe13
fixing error handling from a previous PR
...
Signed-off-by: Robert Sirchia <rsirchia@outlook.com>
7 months ago
Austin Abro
ea87c49d1b
print
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
7 months ago
Austin Abro
efde830405
better name
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
7 months ago
Austin Abro
ecd5316577
lint
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
7 months ago
Austin Abro
5d12255497
wait for delete
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
7 months ago
Austin Abro
7fde4962a8
set waiter in functions
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
7 months ago
Austin Abro
978d5a3318
lint
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
7 months ago
Austin Abro
f2dd2c9109
add hook only waiter
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
7 months ago
Austin Abro
2b03c527f1
set command line flags
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
7 months ago
wangjingcun
8b8cc94822
Use a more direct and less error-prone return value
...
Signed-off-by: wangjingcun <wangjingcun@aliyun.com>
8 months ago
Austin Abro
bd3b5ee5d0
comment
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
8 months ago
Austin Abro
7207565e12
lint
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
8 months ago
Austin Abro
f866409c50
move statusreaders to it's own package
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
8 months ago
Austin Abro
14391dea5b
pods and jobs working
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
8 months ago
Austin Abro
d1cc9b39a3
tests for status reader
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
8 months ago
Austin Abro
187e99d299
custom status readers look good
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
8 months ago
Austin Abro
f49a7e134a
start watch until ready
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
8 months ago
Austin Abro
cc83b7c2e6
tests passing
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
8 months ago
Austin Abro
0314135290
tests passing
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
8 months ago
Austin Abro
b9cbc93003
tests passing
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
8 months ago
Austin Abro
59ef43e399
tests passing
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
8 months ago
Austin Abro
bbe3246f0a
tests passing
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
8 months ago
Austin Abro
a590999323
switch client
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
8 months ago
Austin Abro
a8f53f98ee
WIP custom status reader
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
8 months ago
George Jenkins
d637595735
chore: Remove unused `WaitAndGetCompletedPodPhase`
...
Signed-off-by: George Jenkins <gvjenkins@gmail.com>
8 months ago
Austin Abro
f1b642cb0d
unexport newWaiter function
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
8 months ago
Austin Abro
916aecf1f1
Merge remote-tracking branch 'origin/main' into refactor-wait
8 months ago
Austin Abro
cf51d714e8
go fmt
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
8 months ago
Austin Abro
4e12f9d530
simplify messages
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
9 months ago
Austin Abro
e56a6e678f
diff
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
9 months ago
Austin Abro
a859742e28
remove rest mapper
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
9 months ago
Austin Abro
c2dc44deb9
use dynamic rest mapper
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
9 months ago
Austin Abro
9894d3ae78
shorten interface
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
9 months ago
Austin Abro
8fe66998bf
refactor obj logic
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
9 months ago
Austin Abro
f9736d9022
renames
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
9 months ago
Austin Abro
d07f546003
get rid of rest client
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
9 months ago
Austin Abro
eaa6e14546
test cleanup
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
9 months ago
Austin Abro
674ab0d4f6
t.Parrallel
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
9 months ago
Austin Abro
e9d9854364
introduce test for status wait
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
9 months ago
Austin Abro
71434c0b38
implement logger
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
9 months ago
Austin Abro
649475265d
implement logger
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
9 months ago
Austin Abro
c26b44f651
update names
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
9 months ago
Austin Abro
8ce1876192
get rid of ext interface
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
9 months ago
Austin Abro
e6c6a40fe0
general error message
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
9 months ago
Austin Abro
6b68a00440
change error messages
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
9 months ago
Austin Abro
ac9012577a
status function
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
9 months ago
Austin Abro
b8bdcc3a2b
Helm waiter
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
9 months ago
Austin Abro
4c97d1276c
helm waiter
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
9 months ago
Austin Abro
86338215b7
ability to create different waiters
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
9 months ago
Austin Abro
cb6d48e6ae
status wait
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
9 months ago
Austin Abro
4dd6e19b1d
provide path for creating new legacy waiter
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
9 months ago
Austin Abro
2cb999d72b
go fmt
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
9 months ago
Austin Abro
c3eeab67f9
merge
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
9 months ago
Austin Abro
4b59583670
delete wait and get completed phase
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
9 months ago
Jiasheng Zhu
f5d488122b
fix: check group for resource info match
...
Closes : #13582
Signed-off-by: Jiasheng Zhu <gnehsaijuhz@hotmail.com>
9 months ago
Austin Abro
db90b17484
unknown status
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
9 months ago
Austin Abro
4dbdd7ce10
wait for delete working
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
9 months ago
Austin Abro
9b63459bec
save state while I change up tests
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
9 months ago
Austin Abro
265442c5eb
simplify things
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
9 months ago
Austin Abro
28a9183ee3
context
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
9 months ago
Austin Abro
b337790c10
paused as ready
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
9 months ago
Austin Abro
e18f22071d
paused as ready now working
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
9 months ago
Austin Abro
22af71f125
comments
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
9 months ago
Austin Abro
7b896df4d1
option to wait for jobs
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
9 months ago
Austin Abro
a6e5466942
refactor test
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
9 months ago
Austin Abro
807cc925f5
refactor test
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
9 months ago
Austin Abro
947425ee64
refactor new
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
9 months ago
Austin Abro
aacaa08be2
only emebed waiter
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
9 months ago
Austin Abro
859ff9b548
change structure of client
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
9 months ago
Austin Abro
ad1f1c02ef
cleanup test
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
9 months ago
Matt Farina
2236294119
Updating to helm.sh/helm/v4
...
Since Helm is going through breaking changes with Helm v4, the version path to
Helm needs to be updated.
Signed-off-by: Matt Farina <matt.farina@suse.com>
9 months ago
Austin Abro
4564b8f712
make a working test
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
9 months ago
Austin Abro
4c1758143f
basic design up and balling
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
9 months ago
Austin Abro
a61a35240e
understand it better
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
9 months ago
Austin Abro
6f7ac066ae
extending factory to enable getting a watcher
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
9 months ago
Austin Abro
2f44164fc6
Merge branch 'refactor-wait' of github.com:AustinAbro321/helm into refactor-wait
9 months ago
Matt Farina
5727f56a96
Update to Go 1.23
...
Multiple changes were made to pass linting. Some Go built-in names
are being used for variables (e.g., min). This happens in the Go
source itself including the Go standard library and is not always
a bad practice.
To handle allowing some built-in names to be used the linter config
is updated to allow (via opt-in) some names to pass. This allows us
to still check for re-use of Go built-in names and opt-in to any
new uses.
There were also several cases where a value was checked for nil
before checking its length when this is already handled by len()
or the types default value. These were cleaned up.
The license validation was updated because it was checking everything
in the .git directory including all remote content that was local.
The previous vendor directory was from a time prior to Go modules
when Helm handled dependencies differently. It was no longer needed.
Signed-off-by: Matt Farina <matt.farina@suse.com>
9 months ago
Austin Abro
41700f0248
WIP
...
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
9 months ago
Justen Stall
7df69020d8
revert duplicate slice conditions
...
Signed-off-by: Justen Stall <39888103+justenstall@users.noreply.github.com>
10 months ago
Justen Stall
b0944e8e7e
fix incorrect error return
...
Signed-off-by: Justen Stall <39888103+justenstall@users.noreply.github.com>
10 months ago
Justen Stall
63cf42a843
fix: replace "github.com/pkg/errors" with stdlib "errors" package
...
Signed-off-by: Justen Stall <39888103+justenstall@users.noreply.github.com>
10 months ago
KISHOREKUMAR THUDI
2c8cfaea41
Replacing NewSimpleClientSet to NewClientSet due to deprecation
...
Signed-off-by: KISHOREKUMAR THUDI <kishorekumarthudi@kishore.myfiosgateway.com>
10 months ago
Alex Johnson
9fd943b481
Add tests to `helm/pkg/kube/client_test.go` to cover `wait.go`
...
Signed-off-by: Alex Johnson <alex.kattathra.johnson@gmail.com>
11 months ago
Robert Sirchia
7e6b34d7dd
removing duplicate empty test
...
Signed-off-by: Robert Sirchia <rsirchia@outlook.com>
11 months ago
Robert Sirchia
16a4e37f20
fixing unit test as per Matt
...
Signed-off-by: Robert Sirchia <rsirchia@outlook.com>
11 months ago
Robert Sirchia
a205af755e
adding more unit test
...
Signed-off-by: Robert Sirchia <rsirchia@outlook.com>
11 months ago
Robert Sirchia
999b85145a
adding test coverage for ready.go
...
Signed-off-by: Robert Sirchia <rsirchia@outlook.com>
11 months ago
Matt Farina
8f59c8e807
Merge pull request #9713 from andreaskaris/issue9710
...
fix(helm): Retry Conflict error for createResource, deleteResource
11 months ago
Andreas Karis
79a1f2c801
fix(helm): Retry Conflict error for createResource, deleteResource
...
kubernetes might at any time throw 409 Conflict Error codes. Clients
are supposed to retry when this happens. As an example, see
kubernetes/issues/67761 where such an issues might happen when the
cluster manipulates a projects's ResourceQuotas.
Catch such Conflict Errors on createResource and deleteResource and
retry before giving up. Due to the more complex logic and focus on
kubernetes/issues/67761, this patch purposefully omits possibly
needed changes to updateResource and instead defers them to another
patch if required in the future.
Closes issue #9710
Signed-off-by: Andreas Karis <ak.karis@gmail.com>
11 months ago
Luis Davim
ab3c589809
chore: Make retryingRoundTripper type public
...
Make retryingRoundTripper type public to allow being used in other
projects
fixes : #13052
Signed-off-by: Luis Davim <luis.davim@gmail.com>
12 months ago