Skip to content

Commit d306047

Browse files
committed
Remove explicit k8s.io/cli-runtime dependency
1 parent 49b26dc commit d306047

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Diff for: go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ require (
1616
gopkg.in/yaml.v3 v3.0.1
1717
helm.sh/helm/v3 v3.17.1
1818
k8s.io/apimachinery v0.32.2
19-
k8s.io/cli-runtime v0.32.2
2019
kcl-lang.io/cli v0.11.1
2120
kcl-lang.io/kcl-go v0.11.1
2221
kcl-lang.io/kcl-openapi v0.10.0
@@ -256,6 +255,7 @@ require (
256255
k8s.io/api v0.32.2 // indirect
257256
k8s.io/apiextensions-apiserver v0.32.1 // indirect
258257
k8s.io/apiserver v0.32.1 // indirect
258+
k8s.io/cli-runtime v0.32.2 // indirect
259259
k8s.io/client-go v0.32.2 // indirect
260260
k8s.io/component-base v0.32.1 // indirect
261261
k8s.io/klog/v2 v2.130.1 // indirect

Diff for: pkg/helm/chart_data.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import (
1515
"helm.sh/helm/v3/pkg/chart/loader"
1616
"helm.sh/helm/v3/pkg/chartutil"
1717
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
18-
"k8s.io/cli-runtime/pkg/genericclioptions"
1918

2019
helmkube "helm.sh/helm/v3/pkg/kube"
2120

@@ -140,7 +139,7 @@ func (c *Chart) templateData(ctx context.Context, chartPath string) ([]byte, err
140139
}
141140

142141
ta := action.NewInstall(&action.Configuration{
143-
KubeClient: helmkube.New(genericclioptions.NewConfigFlags(false)),
142+
KubeClient: helmkube.New(nil),
144143
Capabilities: &chartutil.Capabilities{
145144
KubeVersion: *kv,
146145
APIVersions: av,

0 commit comments

Comments
 (0)