configmap

package
v0.0.0-...-11fd857 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigMapTargetProvider

type ConfigMapTargetProvider struct {
	Config          ConfigMapTargetProviderConfig
	Context         *contexts.ManagerContext
	Client          kubernetes.Interface
	DynamicClient   dynamic.Interface
	DiscoveryClient *discovery.DiscoveryClient
	Mapper          *restmapper.DeferredDiscoveryRESTMapper
	RESTConfig      *rest.Config
}

ConfigMapTargetProvider is the kubectl target provider

func (*ConfigMapTargetProvider) Apply

Apply applies the configmap artifacts

func (*ConfigMapTargetProvider) Get

Get gets the artifacts for a configmap

func (*ConfigMapTargetProvider) GetValidationRule

GetValidationRule returns validation rule for the provider

func (*ConfigMapTargetProvider) Init

Init initializes the configmap target provider

func (*ConfigMapTargetProvider) InitWithMap

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

InitWithMap initializes the configmap target provider with a map

func (*ConfigMapTargetProvider) SetContext

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

type ConfigMapTargetProviderConfig

type ConfigMapTargetProviderConfig 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"`
}

ConfigMapTargetProviderConfig is the configuration for the kubectl target provider

func ConfigMapTargetProviderConfigFromMap

func ConfigMapTargetProviderConfigFromMap(properties map[string]string) (ConfigMapTargetProviderConfig, error)

ConfigMapTargetProviderConfigFromMap converts a map to a ConfigMapTargetProviderConfig

Jump to

Keyboard shortcuts

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