kubectl

package
v0.0.0-...-5785f03 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: MIT Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KubectlTargetProvider

type KubectlTargetProvider struct {
	Config          KubectlTargetProviderConfig
	Context         *contexts.ManagerContext
	Client          kubernetes.Interface
	DynamicClient   dynamic.Interface
	DiscoveryClient *discovery.DiscoveryClient
	Mapper          *restmapper.DeferredDiscoveryRESTMapper
	RESTConfig      *rest.Config
	MetaPopulator   metahelper.MetaPopulator
}

KubectlTargetProvider is the kubectl target provider

func (*KubectlTargetProvider) Apply

Apply applies the deployment artifacts

func (*KubectlTargetProvider) Get

Get gets the artifacts for a deployment

func (*KubectlTargetProvider) GetValidationRule

func (*KubectlTargetProvider) GetValidationRule(ctx context.Context) model.ValidationRule

GetValidationRule returns validation rule for the provider

func (*KubectlTargetProvider) Init

Init initializes the kubectl target provider

func (*KubectlTargetProvider) InitWithMap

func (i *KubectlTargetProvider) InitWithMap(properties map[string]string) error

InitWithMap initializes the kubectl target provider with a map

func (*KubectlTargetProvider) SetContext

func (s *KubectlTargetProvider) SetContext(ctx *contexts.ManagerContext)

type KubectlTargetProviderConfig

type KubectlTargetProviderConfig struct {
	Name       string `json:"name,omitempty"`
	ConfigType string `json:"configType,omitempty"`
	ConfigData string `json:"configData,omitempty"`
	Context    string `json:"context,omitempty"`
	InCluster  bool   `json:"inCluster"`
}

KubectlTargetProviderConfig is the configuration for the kubectl target provider

func KubectlTargetProviderConfigFromMap

func KubectlTargetProviderConfigFromMap(properties map[string]string) (KubectlTargetProviderConfig, error)

KubectlTargetProviderConfigFromMap converts a map to a KubectlTargetProviderConfig

type StatusProbe

type StatusProbe struct {
	SucceededValues  []string `json:"succeededValues,omitempty"`
	FailedValues     []string `json:"failedValues,omitempty"`
	StatusPath       string   `json:"statusPath,omitempty"`
	ErrorMessagePath string   `json:"errorMessagePath,omitempty"`
	Timeout          string   `json:"timeout,omitempty"`
	Interval         string   `json:"interval,omitempty"`
	InitialWait      string   `json:"initialWait,omitempty"`
}

StatusProbe is the expected resource status property

Jump to

Keyboard shortcuts

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