James Sheppard
703f1d72b1
clean up error imports for provenance pkg
...
Signed-off-by: James Sheppard <jgsheppa@protonmail.com>
3 years ago
James Sheppard
61cffdfaf0
use fmt and errors pkgs for installer plugin files
...
Signed-off-by: James Sheppard <jgsheppa@protonmail.com>
3 years ago
James Sheppard
c39d980ebf
use fmt and errors pkgs for lint files
...
Signed-off-by: James Sheppard <jgsheppa@protonmail.com>
3 years ago
James Sheppard
05f02ceafd
use fmt pkg instead of github errors pkg in validateChartFormat func
...
Signed-off-by: James Sheppard <jgsheppa@protonmail.com>
3 years ago
James Sheppard
d67f5fd0c6
use fmt and errors pkgs to replace github error pkg
...
Signed-off-by: James Sheppard <jgsheppa@protonmail.com>
3 years ago
James Sheppard
254bddaa7a
use errors pkg instead of github.com/pkg/errors
...
Signed-off-by: James Sheppard <jgsheppa@protonmail.com>
3 years ago
James Sheppard
b166e2d07a
use fmt pkg for Errorf calls in client.go
...
Signed-off-by: James Sheppard <jgsheppa@protonmail.com>
3 years ago
James Sheppard
df69c5ff9f
use fmt pkg for Errorf call in plugingetter.go
...
Signed-off-by: James Sheppard <jgsheppa@protonmail.com>
3 years ago
James Sheppard
475a3cb087
use fmt pkg for Errorf call in httpgetter.go
...
Signed-off-by: James Sheppard <jgsheppa@protonmail.com>
3 years ago
James Sheppard
1ca5ce0da1
use fmt pkg for Errorf call in getter.go
...
Signed-off-by: James Sheppard <jgsheppa@protonmail.com>
3 years ago
James Sheppard
f12450025c
use fmt pkg for Errorf calls in engine.go
...
Signed-off-by: James Sheppard <jgsheppa@protonmail.com>
3 years ago
James Sheppard
51ca28e7c9
use fmt pkg for Errorf calls in manager.go
...
Signed-off-by: James Sheppard <jgsheppa@protonmail.com>
3 years ago
James Sheppard
41e6c6f27c
use lowercase letter for error message in getOciURI func
...
Signed-off-by: James Sheppard <jgsheppa@protonmail.com>
3 years ago
James Sheppard
6d08340987
use fmt for Errorf calls in chart_downloader.go
...
Signed-off-by: James Sheppard <jgsheppa@protonmail.com>
3 years ago
James Sheppard
bbb57bb681
use fmt pkg for Errorf call in options.go
...
Signed-off-by: James Sheppard <jgsheppa@protonmail.com>
3 years ago
James Sheppard
4eb8eaecee
use errors pkg for errors.New call in values.go
...
Signed-off-by: James Sheppard <jgsheppa@protonmail.com>
3 years ago
James Sheppard
6b11efb7d6
use errors pkg in validate_name
...
Signed-off-by: James Sheppard <jgsheppa@protonmail.com>
3 years ago
James Sheppard
e56523006b
use fmt pkg for Errorf calls in save.go
...
Signed-off-by: James Sheppard <jgsheppa@protonmail.com>
3 years ago
James Sheppard
2841b81834
use std lib errors pkg in jsonschema.go
...
Signed-off-by: James Sheppard <jgsheppa@protonmail.com>
3 years ago
James Sheppard
d102f8b422
use fmt pkg for Errorf call in create.go
...
Signed-off-by: James Sheppard <jgsheppa@protonmail.com>
3 years ago
James Sheppard
c26721fb0d
use fmt pkg for Errorf call in coalesce.go
...
Signed-off-by: James Sheppard <jgsheppa@protonmail.com>
3 years ago
James Sheppard
357b867046
use fmt pkg for Errorf calls in chartfile.go
...
Signed-off-by: James Sheppard <jgsheppa@protonmail.com>
3 years ago
James Sheppard
f0f25656d2
use fmt package for Errorf call in load.go
...
Signed-off-by: James Sheppard <jgsheppa@protonmail.com>
3 years ago
James Sheppard
957debec7b
use std lib errors pkg in archive.go
...
Signed-off-by: James Sheppard <jgsheppa@protonmail.com>
3 years ago
James Sheppard
98b7aab369
use fmt pkg for Errorf call in upgrade.go
...
Signed-off-by: James Sheppard <jgsheppa@protonmail.com>
3 years ago
James Sheppard
b4c0d6e069
use fmt pkg for Errorf calls in uninstall.go
...
Signed-off-by: James Sheppard <jgsheppa@protonmail.com>
3 years ago
James Sheppard
6b4addd496
use fmt pkg for Errorf call in rollback.go
...
Signed-off-by: James Sheppard <jgsheppa@protonmail.com>
3 years ago
James Sheppard
d50a35bfe1
use fmt pkg for Errorf call in release_testing.go
...
Signed-off-by: James Sheppard <jgsheppa@protonmail.com>
3 years ago
James Sheppard
da85a4b50d
use fmt pkg for Errorf call in pull.go
...
Signed-off-by: James Sheppard <jgsheppa@protonmail.com>
3 years ago
James Sheppard
c5b9609397
use fmt pkg for Errorf call in lint.go
...
Signed-off-by: James Sheppard <jgsheppa@protonmail.com>
3 years ago
James Sheppard
c4773b473a
use fmt pkg for Errorf calls in install.go
...
Signed-off-by: James Sheppard <jgsheppa@protonmail.com>
3 years ago
James Sheppard
2e59b703e2
use fmt pkg for Errorf calls in history.go
...
Signed-off-by: James Sheppard <jgsheppa@protonmail.com>
3 years ago
James Sheppard
f2935711a9
write tests for UploadTo func errors
...
Signed-off-by: James Sheppard <jgsheppa@protonmail.com>
3 years ago
James Sheppard
966a4a5d7f
use fmt.Errorf in chart_uploader instead of errors.Errorf
...
Signed-off-by: James Sheppard <jgsheppa@protonmail.com>
3 years ago
Matt Farina
b4b629c3c2
Merge pull request #11204 from sabre1041/oci-annotations
...
Attach annotations to OCI artifacts
4 years ago
Matt Farina
b81428919b
Merge pull request #12015 from yann-soubeyrand/bump-k8s-io-deps
...
chore: bump k8s.io dependencies to v0.27.1
4 years ago
Andrew Block
f900e9f1b1
Attach annotations to OCI artifacts
...
Signed-off-by: Andrew Block <andy.block@gmail.com>
4 years ago
Matt Farina
01dabe5312
Merge pull request #11948 from wujunwei/fix-failed-testcase-on-windows
...
fix: failed testcase on windows
4 years ago
Matt Farina
9705369da6
Merge pull request #11973 from joejulian/quiet_lint
...
fail quiet linting when an error occurs
4 years ago
Matt Farina
0833318b32
Merge pull request #9182 from pscheid92/4030-provide-literal-alternative-for-set-flag
...
Provide an alternative for --set and/or --set-string to take a value literally
4 years ago
Matt Farina
3b74c13768
Merge pull request #11479 from MichaelMorrisEst/cascade
...
Add option to support foreground cascade deletion
4 years ago
Tom Wieczorek
b9361407a3
Bump k8s.io deps from v0.26.0 to v0.27.0
...
Adapt to changes in 1.27 client libs:
* The OpenAPIGetter method is now private, but the Validator method does
what is needed instead.
* The function wait.PollImmediateUntil is deprecated. Switch to the
recommended new function wait.PollUntilContextCancel.
Related dependency changes:
change k8s.io/kube-openapi v0.0.0-20221012153701-172d655c2280 => v0.0.0-20230308215209-15aac26d736a
And some transitive version changes:
add github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0
add github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1
remove github.com/elazarl/goproxy v0.0.0-20180725130230-947c36da3153
github.com/go-errors/errors v1.0.1 => v1.4.2
github.com/go-openapi/jsonpointer v0.19.5 => v0.19.6
github.com/go-openapi/jsonreference v0.20.0 => v0.20.1
github.com/go-openapi/swag v0.19.14 => v0.22.3
github.com/golang/protobuf v1.5.2 => v1.5.3
github.com/mailru/easyjson v0.7.6 => v0.7.7
github.com/onsi/ginkgo/v2 v2.4.0 => v2.9.1
github.com/onsi/gomega v1.23.0 => v1.27.4
github.com/rogpeppe/go-internal v1.9.0 => v1.10.0
golang.org/x/mod v0.8.0 => v0.9.0
golang.org/x/net v0.7.0 => v0.8.0
golang.org/x/term v0.5.0 => v0.6.0
golang.org/x/tools v0.6.0 => v0.7.0
gotest.tools/v3 v3.0.3 => v3.4.0
sigs.k8s.io/json v0.0.0-20220713155537-f223a00ba0e2 => v0.0.0-20221116044647-bc3834ca7abd
sigs.k8s.io/kustomize/api v0.12.1 => v0.13.2
sigs.k8s.io/kustomize/kyaml v0.13.9 => v0.14.1
Signed-off-by: Tom Wieczorek <twieczorek@mirantis.com>
4 years ago
Matt Farina
cf3d2531a8
Merge pull request #11898 from willzgli/waitbatchPerform
...
Fix goroutine leak in perform
4 years ago
Matt Farina
7c9d636f40
Fix goroutine leak in action install
...
During the install process there was a place where an install
process could be stuck trying to write to a channel. This would
happen when a context had completed prior to performInstall
finishing. In a short running Helm Client this was not a problem.
But, for long running applications that use Helm as an SDK there
are problems where a memory leak ends up happening due to
goroutines never being able to complete.
This fix provides a means for performInstall to write to its
channel using the method already used to fix the upgrade
issue of the same kind.
Fixes #11805
Signed-off-by: Matt Farina <matt.farina@suse.com>
4 years ago
Matt Farina
10587613cf
Merge pull request #11949 from dirkmueller/goarches
...
Fix 32bit-x86 typo in testsuite
4 years ago
Joe Julian
853c18002f
fix quiet lint does not fail on non-linting errors
...
Signed-off-by: Joe Julian <me@joejulian.name>
4 years ago
Aman Nijhawan
eea2f27bab
Fixes Readiness Check for statefulsets using partitioned rolling update. ( #11774 )
...
* Fixes Readiness Check for statefulsets using partitioned rolling update.
Fixes #11773
This change updates readiness check in ready.go to correctly
account for statefulsets that are utilizing a partitioned upgrade.
These statefulsets only upgrade a subset of the managed pods with each call
to helm upgrade. This causes the upgrade to legitimately hit the condition where
sts.status.CurrentRevision != sts.Status.UpdateRevision which causes helm to mark
the upgrade has failed when in fact it is successful.
This change fixes that behavior to only check when partition is unspecified or 0.
Signed-off-by: Aman Nijhawan <anijhawan@yugabyte.com>
* Adding a unit test to verify that partitioned rolling upgrade for a statefulset works.
Signed-off-by: Aman Nijhawan <anijhawan@yugabyte.com>
---------
Signed-off-by: Aman Nijhawan <anijhawan@yugabyte.com>
Co-authored-by: Aman Nijhawan <anijhawan@yugabyte.com>
4 years ago
wujunwei
878e962b23
fix: failed testcase on windows
...
Signed-off-by: wujunwei <wjw3323@live.com>
4 years ago
Dirk Müller
1fc8369356
Fix 32bit-x86 typo in testsuite
...
The GOARCH here is 386 not i386. This caused a slightly odd test
suite failure on that architecture:
--- FAIL: TestPlatformPrepareCommand (0.00s)
plugin_test.go:45: Expected arg="os-arch", got "linux-s390x"
plugin_test.go:64: Expected arg="os-arch", got "linux-s390x"
Signed-off-by: Dirk Müller <dirk@dmllr.de>
4 years ago
Matt Farina
046646c944
Handle failed DNS case for Go 1.20+
...
Go 1.20 introduced DNS/CNAME handling changes. This can cause an
IP address represented in hex, oct, etc to be looked up as DNS and
fail. This change introduces a mock DNS resolver.
Note, with the mock resolver, we don't need to use 0x7f000001 any
longer. Keeping because it was already there.
Signed-off-by: Matt Farina <matt.farina@suse.com>
4 years ago