MCPcopy
hub / github.com/helm/helm / Client

Struct Client

pkg/kube/client.go:74–99  ·  view source on GitHub ↗

Client represents a client capable of communicating with the Kubernetes API.

Source from the content-addressed store, hash-verified

72
73// Client represents a client capable of communicating with the Kubernetes API.
74type Client struct {
75 // Factory provides a minimal version of the kubectl Factory interface. If
76 // you need the full Factory you can type switch to the full interface.
77 // Since Kubernetes Go API does not provide backwards compatibility across
78 // minor versions, this API does not follow Helm backwards compatibility.
79 // Helm is exposing Kubernetes in this property and cannot guarantee this
80 // will not change. The minimal interface only has the functions that Helm
81 // needs. The smaller surface area of the interface means there is a lower
82 // chance of it changing.
83 Factory Factory
84 // Namespace allows to bypass the kubeconfig file for the choice of the namespace
85 Namespace string
86
87 // WaitContext is an optional context to use for wait operations.
88 // If not set, a context will be created internally using the
89 // timeout provided to the wait functions.
90 //
91 // Deprecated: Use WithWaitContext wait option when getting a Waiter instead.
92 WaitContext context.Context
93
94 Waiter
95 kubeClient kubernetes.Interface
96
97 // Embed a LogHolder to provide logger functionality
98 logging.LogHolder
99}
100
101var _ Interface = (*Client)(nil)
102

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected