v1

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the templating.flanksource.com v1 API group +kubebuilder:object:generate=true +groupName=templating.flanksource.com

Index

Constants

View Source
const ApiVersion = "templating.flanksource.com/v1"

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "templating.flanksource.com", Version: "v1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type CopyToNamespaces added in v0.1.6

type CopyToNamespaces struct {
	Namespaces        []string              `json:"namespaces,omitempty"`
	NamespaceSelector *metav1.LabelSelector `json:"namespaceSelector,omitempty"`
}

func (*CopyToNamespaces) DeepCopy added in v0.1.6

func (in *CopyToNamespaces) DeepCopy() *CopyToNamespaces

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

func (*CopyToNamespaces) DeepCopyInto added in v0.1.6

func (in *CopyToNamespaces) DeepCopyInto(out *CopyToNamespaces)

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

type JsonPatch

type JsonPatch struct {
	Object metav1.TypeMeta `json:"object,omitempty"`
	Patch  string          `json:"patch,omitempty"`
}

func (*JsonPatch) DeepCopy

func (in *JsonPatch) DeepCopy() *JsonPatch

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

func (*JsonPatch) DeepCopyInto

func (in *JsonPatch) DeepCopyInto(out *JsonPatch)

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

type ObjectSelector

type ObjectSelector struct {
	Kind       string `json:"kind,omitempty"`
	APIVersion string `json:"apiVersion,omitempty"`
}

func (*ObjectSelector) DeepCopy

func (in *ObjectSelector) DeepCopy() *ObjectSelector

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

func (*ObjectSelector) DeepCopyInto

func (in *ObjectSelector) DeepCopyInto(out *ObjectSelector)

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

type ResourceSelector

type ResourceSelector struct {
	LabelSelector      metav1.LabelSelector `json:"labelSelector,omitempty"`
	NamespaceSelector  metav1.LabelSelector `json:"namespaceSelector,omitempty"`
	AnnotationSelector map[string]string    `json:"annotationSelector,omitempty"`
	FieldSelector      string               `json:"fieldSelector,omitempty"`
	APIVersion         string               `json:"apiVersion,omitempty"`
	Kind               string               `json:"kind,omitempty"`
}

func (*ResourceSelector) DeepCopy

func (in *ResourceSelector) DeepCopy() *ResourceSelector

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

func (*ResourceSelector) DeepCopyInto

func (in *ResourceSelector) DeepCopyInto(out *ResourceSelector)

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

type Template

type Template struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   TemplateSpec   `json:"spec,omitempty"`
	Status TemplateStatus `json:"status,omitempty"`
}

+kubebuilder:object:root=true +genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:resource:scope="Cluster" Template is the Schema for the templates API

func (*Template) DeepCopy

func (in *Template) DeepCopy() *Template

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

func (*Template) DeepCopyInto

func (in *Template) DeepCopyInto(out *Template)

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

func (*Template) DeepCopyObject

func (in *Template) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type TemplateList

type TemplateList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Template `json:"items"`
}

TemplateList contains a list of Template

func (*TemplateList) DeepCopy

func (in *TemplateList) DeepCopy() *TemplateList

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

func (*TemplateList) DeepCopyInto

func (in *TemplateList) DeepCopyInto(out *TemplateList)

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

func (*TemplateList) DeepCopyObject

func (in *TemplateList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type TemplateSpec

type TemplateSpec struct {
	// Source selects objects on which to use as a templating object
	Source ResourceSelector `json:"source,omitempty"`

	// Target optionally allows to lookup related resources to patch, defaults
	// to the source object selected
	// +optional
	PatchTarget ResourceSelector `json:"patchTarget,omitempty"`

	// Resources is a list of new resources to create for each source object found
	// Must specify at least resources or patches or both
	// +optional
	Resources []runtime.RawExtension `json:"resources,omitempty"`

	// Patches is list of strategic merge patches to apply to to the targets
	// Must specify at least resources or patches or both
	// +optional
	Patches []string `json:"patches,omitempty"`

	JsonPatches []JsonPatch `json:"jsonPatches,omitempty"`

	// Copy this object to other namespaces
	CopyToNamespaces *CopyToNamespaces `json:"copyToNamespaces,omitempty"`

	// Onceoff will not apply templating more than once (usually at admission stage)
	Onceoff bool `json:"onceoff,omitempty"`
}

TemplateSpec defines the desired state of Template

func (*TemplateSpec) DeepCopy

func (in *TemplateSpec) DeepCopy() *TemplateSpec

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

func (*TemplateSpec) DeepCopyInto

func (in *TemplateSpec) DeepCopyInto(out *TemplateSpec)

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

type TemplateStatus

type TemplateStatus struct {
}

TemplateStatus defines the observed state of Template

func (*TemplateStatus) DeepCopy

func (in *TemplateStatus) DeepCopy() *TemplateStatus

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

func (*TemplateStatus) DeepCopyInto

func (in *TemplateStatus) DeepCopyInto(out *TemplateStatus)

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