Documentation ¶
Index ¶
- type ConfigMapTargetProvider
- func (i *ConfigMapTargetProvider) Apply(ctx context.Context, deployment model.DeploymentSpec, ...) (map[string]model.ComponentResultSpec, error)
- func (i *ConfigMapTargetProvider) Get(ctx context.Context, deployment model.DeploymentSpec, ...) ([]model.ComponentSpec, error)
- func (*ConfigMapTargetProvider) GetValidationRule(ctx context.Context) model.ValidationRule
- func (i *ConfigMapTargetProvider) Init(config providers.IProviderConfig) error
- func (i *ConfigMapTargetProvider) InitWithMap(properties map[string]string) error
- func (s *ConfigMapTargetProvider) SetContext(ctx *contexts.ManagerContext)
- type ConfigMapTargetProviderConfig
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 ¶
func (i *ConfigMapTargetProvider) Apply(ctx context.Context, deployment model.DeploymentSpec, step model.DeploymentStep, isDryRun bool) (map[string]model.ComponentResultSpec, error)
Apply applies the configmap artifacts
func (*ConfigMapTargetProvider) Get ¶
func (i *ConfigMapTargetProvider) Get(ctx context.Context, deployment model.DeploymentSpec, references []model.ComponentStep) ([]model.ComponentSpec, error)
Get gets the artifacts for a configmap
func (*ConfigMapTargetProvider) GetValidationRule ¶
func (*ConfigMapTargetProvider) GetValidationRule(ctx context.Context) model.ValidationRule
GetValidationRule returns validation rule for the provider
func (*ConfigMapTargetProvider) Init ¶
func (i *ConfigMapTargetProvider) Init(config providers.IProviderConfig) error
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
Click to show internal directories.
Click to hide internal directories.