kubernetes

package
v0.35.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultClientArguments = ClientArguments{
	HTTPClientConfig: commoncfg.DefaultHTTPClientConfig,
}

DefaultClientArguments holds default values for Arguments.

Functions

This section is empty.

Types

type ClientArguments

type ClientArguments struct {
	APIServer        commoncfg.URL              `river:"api_server,attr,optional"`
	KubeConfig       string                     `river:"kubeconfig_file,attr,optional"`
	HTTPClientConfig commoncfg.HTTPClientConfig `river:",squash"`
}

ClientArguments controls how to connect to a Kubernetes cluster.

func (*ClientArguments) BuildRESTConfig

func (args *ClientArguments) BuildRESTConfig(l log.Logger) (*rest.Config, error)

BuildRESTConfig converts ClientArguments to a Kubernetes REST config.

func (*ClientArguments) SetToDefault added in v0.35.0

func (args *ClientArguments) SetToDefault()

SetToDefault implements river.Defaulter.

func (*ClientArguments) Validate added in v0.35.0

func (args *ClientArguments) Validate() error

Validate implements river.Validator.

Jump to

Keyboard shortcuts

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