helm/pkg/kube/roundtripper.go
Sumit Solanki 213c869a98 refactor(cli): share RetryingRoundTripper via pkg/kubeenv
Move implementation to pkg/kubeenv per review; kube.RetryingRoundTripper
remains a type alias for API compatibility. pkg/cli uses kubeenv only.

Signed-off-by: Sumit Solanki <sumit.solanki@ibm.com>
2026-04-09 22:46:41 +05:30

24 lines
889 B
Go

/*
Copyright The Helm Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package kube
import "helm.sh/helm/v4/pkg/kubeenv"
// RetryingRoundTripper retries transient Kubernetes API server errors on a
// wrapped [http.RoundTripper]. The implementation lives in [kubeenv] so
// consumers can depend on that package without importing all of kube.
type RetryingRoundTripper = kubeenv.RetryingRoundTripper