kubernetes

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: MPL-2.0 Imports: 55 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

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

func RestClientResultFromErr

func RestClientResultFromErr(err error) *RestClientResult

func RestClientResultFromInvalidTypeErr

func RestClientResultFromInvalidTypeErr(err error) *RestClientResult

func RestClientResultSuccess

func RestClientResultSuccess(resourceInterface dynamic.ResourceInterface) *RestClientResult

type RestClientStatus

type RestClientStatus int

Jump to

Keyboard shortcuts

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