kubernetes

package
v0.34.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 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) UnmarshalRiver

func (args *ClientArguments) UnmarshalRiver(f func(interface{}) error) error

UnmarshalRiver unmarshals ClientArguments and performs validations.

Jump to

Keyboard shortcuts

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