v1alpha1

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2020 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the sync v1alpha1 API group +kubebuilder:object:generate=true +groupName=sync.appuio.ch

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "sync.appuio.ch", Version: "v1alpha1"}

	// 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 DeleteMeta

type DeleteMeta struct {
	// Name of the item to be deleted
	Name string `json:"name,omitempty"`
	// Kind of the item to be deleted
	Kind string `json:"kind,omitempty"`
	// APIVersion of the item to be deleted
	APIVersion string `json:"apiVersion,omitempty"`
}

DeleteMeta defines an object by name, kind and version

func (*DeleteMeta) DeepCopy

func (in *DeleteMeta) DeepCopy() *DeleteMeta

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

func (*DeleteMeta) DeepCopyInto

func (in *DeleteMeta) DeepCopyInto(out *DeleteMeta)

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

func (*DeleteMeta) ToDeleteObj

func (d *DeleteMeta) ToDeleteObj(namespace string) *unstructured.Unstructured

ToDeleteObj creates a k8s Unstructured object based on a DeleteMeta obj

type NamespaceSelector

type NamespaceSelector struct {
	// LabelSelector of namespaces to be targeted
	LabelSelector *metav1.LabelSelector `json:"labelSelector,omitempty"`
	// MatchNames lists namespace names to be targeted
	MatchNames []string `json:"matchNames,omitempty"`
}

NamespaceSelector provides a way to specify targeted namespaces

func (*NamespaceSelector) DeepCopy

func (in *NamespaceSelector) DeepCopy() *NamespaceSelector

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

func (*NamespaceSelector) DeepCopyInto

func (in *NamespaceSelector) DeepCopyInto(out *NamespaceSelector)

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

type SyncConfig

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

	Spec   SyncConfigSpec   `json:"spec,omitempty"`
	Status SyncConfigStatus `json:"status,omitempty"`
}

SyncConfig is the Schema for the syncconfigs API

func (*SyncConfig) DeepCopy

func (in *SyncConfig) DeepCopy() *SyncConfig

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

func (*SyncConfig) DeepCopyInto

func (in *SyncConfig) DeepCopyInto(out *SyncConfig)

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

func (*SyncConfig) DeepCopyObject

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

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

type SyncConfigCondition added in v0.2.0

type SyncConfigCondition struct {
	Type               SyncConfigConditionType `json:"type"`
	Status             v1.ConditionStatus      `json:"status"`
	LastTransitionTime metav1.Time             `json:"lastTransitionTime,omitempty"`
	Reason             string                  `json:"reason,omitempty"`
	Message            string                  `json:"message,omitempty"`
}

SyncConfigSpec defines the desired state of SyncConfig

func (*SyncConfigCondition) DeepCopy added in v0.2.0

func (in *SyncConfigCondition) DeepCopy() *SyncConfigCondition

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

func (*SyncConfigCondition) DeepCopyInto added in v0.2.0

func (in *SyncConfigCondition) DeepCopyInto(out *SyncConfigCondition)

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

type SyncConfigConditionType added in v0.2.0

type SyncConfigConditionType string

SyncConfigSpec defines the desired state of SyncConfig

const (
	// SyncConfigReady tracks if the SyncConfig has been successfully reconciled.
	SyncConfigReady SyncConfigConditionType = "Ready"
	// SyncConfigErrored is given when no objects could be synced or deleted and the failed object count is > 0 or
	// any other reconciliation error.
	SyncConfigErrored SyncConfigConditionType = "Errored"
)

type SyncConfigList

type SyncConfigList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []SyncConfig `json:"items"`
	Prune           bool         `json:"prune,omitempty"`
}

SyncConfigList contains a list of SyncConfig

func (*SyncConfigList) DeepCopy

func (in *SyncConfigList) DeepCopy() *SyncConfigList

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

func (*SyncConfigList) DeepCopyInto

func (in *SyncConfigList) DeepCopyInto(out *SyncConfigList)

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

func (*SyncConfigList) DeepCopyObject

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

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

type SyncConfigSpec

type SyncConfigSpec struct {
	// ForceRecreate defines if objects should be deleted and recreated if updates fails
	ForceRecreate bool `json:"forceRecreate,omitempty"`
	// NamespaceSelector defines which namespaces should be targeted
	NamespaceSelector *NamespaceSelector `json:"namespaceSelector,omitempty"`
	// SyncItems lists items to be synced to targeted namespaces
	SyncItems []unstructured.Unstructured `json:"syncItems,omitempty"`
	// DeleteItems lists items to be deleted from targeted namespaces
	DeleteItems []DeleteMeta `json:"deleteItems,omitempty"`
}

SyncConfigSpec defines the desired state of SyncConfig

func (*SyncConfigSpec) DeepCopy

func (in *SyncConfigSpec) DeepCopy() *SyncConfigSpec

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

func (*SyncConfigSpec) DeepCopyInto

func (in *SyncConfigSpec) DeepCopyInto(out *SyncConfigSpec)

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

type SyncConfigStatus

type SyncConfigStatus struct {
	// Conditions contain the states of the SyncConfig
	Conditions []SyncConfigCondition `json:"conditions,omitempty" patchStrategy:"merge"`
	// SynchronizedItemCount holds the number of created or updated objects in the targeted namespaces.
	SynchronizedItemCount int64 `json:"synchronizedItemCount"`
	// DeletedItemCount holds the number of deleted objects from targeted namespaces. Inexisting items do not get counted.
	DeletedItemCount int64 `json:"deletedItemCount"`
	// FailedItemCount holds the number of objects that could not be created, updated or deleted. Inexisting items do not get counted.
	FailedItemCount int64 `json:"failedItemCount"`
}

SyncConfigStatus defines the observed state of SyncConfig

func (*SyncConfigStatus) DeepCopy

func (in *SyncConfigStatus) DeepCopy() *SyncConfigStatus

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

func (*SyncConfigStatus) DeepCopyInto

func (in *SyncConfigStatus) DeepCopyInto(out *SyncConfigStatus)

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