Help us shape the future of Go! Take the 2026 Go Developer Survey

client

package
v0.33.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SupportNoAuth = true
	Insecure      = false
)

Functions

This section is empty.

Types

type SafeClient

type SafeClient struct {
	// contains filtered or unexported fields
}

func NewSafeClient

func NewSafeClient(flags ...*pflag.FlagSet) (*SafeClient, error)

func NewSafeClientForConfig added in v0.33.16

func NewSafeClientForConfig(config *rest.Config) *SafeClient

NewSafeClientForConfig derives a SafeClient from an already-resolved REST configuration instead of re-parsing --kubeconfig/--context flags, so a probe built from it targets the same cluster the caller already resolved.

func (*SafeClient) Copy

func (c *SafeClient) Copy() *SafeClient

func (*SafeClient) HTTPDo added in v0.20.9

func (c *SafeClient) HTTPDo(req *http.Request) (*http.Response, error)

func (*SafeClient) NewRTClient

func (c *SafeClient) NewRTClient(schemeFuncs ...func(s *apiruntime.Scheme) error) (ctrlrtclient.Client, error)

func (*SafeClient) RESTConfig added in v0.33.14

func (c *SafeClient) RESTConfig() *rest.Config

RESTConfig returns a copy of the client's Kubernetes configuration, for callers that need a client-go client this type does not build itself (discovery, SelfSubjectAccessReview). A copy rather than the original: the caller's client must not be able to retarget or re-authenticate every other client derived from this one, the way SetProbeEndpoint deliberately does. Returns nil when the client holds no configuration.

func (*SafeClient) SetProbeEndpoint added in v0.29.8

func (c *SafeClient) SetProbeEndpoint(timeout time.Duration, targetHost, kubeServiceServerName string)

SetProbeEndpoint configures host, TLS ServerName and timeout for probe requests.

func (*SafeClient) SetTLSCAData

func (c *SafeClient) SetTLSCAData(caData []byte)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL