patchk8sobjects

package
v0.0.1-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TypeName is the name of this action
	TypeName = "patch-k8s-objects"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PatchK8sObjects

type PatchK8sObjects struct {
	// contains filtered or unexported fields
}

PatchK8sObjects patches k8s objects.

func (*PatchK8sObjects) AllowConcurrency

func (pko *PatchK8sObjects) AllowConcurrency() bool

func (*PatchK8sObjects) Init

func (pko *PatchK8sObjects) Init(c types.Common, properties map[string]interface{}) error

func (*PatchK8sObjects) New

func (pko *PatchK8sObjects) New() types.Action

func (*PatchK8sObjects) Run

func (pko *PatchK8sObjects) Run(ctx context.Context, sourceType string, event interface{}, data interface{}, _ []string) error

func (*PatchK8sObjects) Type

func (pko *PatchK8sObjects) Type() string

func (*PatchK8sObjects) Validate

func (pko *PatchK8sObjects) Validate(properties map[string]interface{}) error

type PatchTarget

type PatchTarget struct {
	APIVersion string `json:"apiVersion"`
	Kind       string `json:"kind"`
	//+optional
	Namespace string `json:"namespace"`
	//+optional
	Name string `json:"name"`
	//+optional
	LabelSelectors map[string]string `json:"labelSelectors"`
}

+kubebuilder:object:generate=true

func (*PatchTarget) DeepCopy

func (in *PatchTarget) DeepCopy() *PatchTarget

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PatchTarget.

func (*PatchTarget) DeepCopyInto

func (in *PatchTarget) DeepCopyInto(out *PatchTarget)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Properties

type Properties struct {
	PatchTarget PatchTarget `json:"patchTarget"`
	Patch       string      `json:"patch"`
	//+optional
	AllowConcurrency bool `json:"allowConcurrency"`
}

+kubebuilder:object:generate=true

func (*Properties) DeepCopy

func (in *Properties) DeepCopy() *Properties

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Properties.

func (*Properties) DeepCopyInto

func (in *Properties) DeepCopyInto(out *Properties)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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