kubernetes

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: MPL-2.0 Imports: 54 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RestClientOk = iota
	RestClientGenericError
	RestClientInvalidTypeError
)

Variables

This section is empty.

Functions

func GetDeploymentCondition

func GetDeploymentCondition(status apps_v1.DeploymentStatus, condType apps_v1.DeploymentConditionType) *apps_v1.DeploymentCondition

GetDeploymentConditionInternal returns the condition with the provided type. Borrowed from: https://github.com/kubernetes/kubernetes/blob/master/pkg/controller/deployment/util/deployment_util.go#L135

func Provider

func Provider() *schema.Provider

Types

type KubeProvider

type KubeProvider struct {
	MainClientset       *kubernetes.Clientset
	RestConfig          restclient.Config
	AggregatorClientset *aggregator.Clientset
}

func (*KubeProvider) ToDiscoveryClient

func (p *KubeProvider) ToDiscoveryClient() (discovery.CachedDiscoveryInterface, error)

func (*KubeProvider) ToRESTConfig

func (p *KubeProvider) ToRESTConfig() (*restclient.Config, error)

func (*KubeProvider) ToRESTMapper

func (p *KubeProvider) ToRESTMapper() (meta.RESTMapper, error)

func (*KubeProvider) ToRawKubeConfigLoader

func (p *KubeProvider) ToRawKubeConfigLoader() clientcmd.ClientConfig

type RestClientResult added in v1.9.2

type RestClientResult struct {
	ResourceInterface dynamic.ResourceInterface
	Error             error
	Status            RestClientStatus
}

func RestClientResultFromErr added in v1.9.2

func RestClientResultFromErr(err error) *RestClientResult

func RestClientResultFromInvalidTypeErr added in v1.9.2

func RestClientResultFromInvalidTypeErr(err error) *RestClientResult

func RestClientResultSuccess added in v1.9.2

func RestClientResultSuccess(resourceInterface dynamic.ResourceInterface) *RestClientResult

type RestClientStatus added in v1.9.2

type RestClientStatus int

Jump to

Keyboard shortcuts

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