v1alpha1

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the gdp v1alpha1 API group +kubebuilder:object:generate=true +groupName=gdp.deliveryhero.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "gdp.deliveryhero.io", 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 Condition

type Condition struct {
	// Type is the type of the Condition
	Type ConditionType `json:"type"`
	// Status of the condition, one of True, False, Unknown.
	Status corev1.ConditionStatus `json:"status"`
	// The last time the condition transitioned from one status to another.
	// +optional
	LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
	// A human-readable message indicating details about the transition.
	// +optional
	Message *string `json:"message,omitempty"`
}

func (*Condition) DeepCopy

func (in *Condition) DeepCopy() *Condition

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

func (*Condition) DeepCopyInto

func (in *Condition) DeepCopyInto(out *Condition)

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

type ConditionType

type ConditionType string

type DestinationRef

type DestinationRef struct {
	Type DestinationType `json:"type"`
	Name string          `json:"name"`
}

DestinationRef is where the fields should be written.

func (*DestinationRef) DeepCopy

func (in *DestinationRef) DeepCopy() *DestinationRef

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

func (*DestinationRef) DeepCopyInto

func (in *DestinationRef) DeepCopyInto(out *DestinationRef)

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

type DestinationType

type DestinationType string

DestinationType is a ConfigMap or a Secret +kubebuilder:validation:Enum=ConfigMap;Secret

const (
	ConfigMap DestinationType = "ConfigMap"
	Secret    DestinationType = "Secret"
)

type Output

type Output struct {
	Key  string `json:"key"`
	Path string `json:"path"`
}

func (*Output) DeepCopy

func (in *Output) DeepCopy() *Output

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

func (*Output) DeepCopyInto

func (in *Output) DeepCopyInto(out *Output)

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

type RequiredFields

type RequiredFields struct {
	// +kubebuilder:validation:Optional
	StatusConditions []StatusCondition `json:"statusConditions"`
}

func (*RequiredFields) DeepCopy

func (in *RequiredFields) DeepCopy() *RequiredFields

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

func (*RequiredFields) DeepCopyInto

func (in *RequiredFields) DeepCopyInto(out *RequiredFields)

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

type ResourceFieldExport

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

	Spec   ResourceFieldExportSpec   `json:"spec,omitempty"`
	Status ResourceFieldExportStatus `json:"status,omitempty"`
}

ResourceFieldExport is the Schema for the resourcefieldexports API

func (*ResourceFieldExport) DeepCopy

func (in *ResourceFieldExport) DeepCopy() *ResourceFieldExport

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

func (*ResourceFieldExport) DeepCopyInto

func (in *ResourceFieldExport) DeepCopyInto(out *ResourceFieldExport)

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

func (*ResourceFieldExport) DeepCopyObject

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

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

func (*ResourceFieldExport) SetupWebhookWithManager added in v1.2.0

func (r *ResourceFieldExport) SetupWebhookWithManager(mgr ctrl.Manager, validator *resourcemanager.ResourceManager) error

SetupWebhookWithManager will setup the manager to manage the webhooks

func (*ResourceFieldExport) ValidateCreate added in v1.2.0

func (r *ResourceFieldExport) ValidateCreate() (admission.Warnings, error)

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*ResourceFieldExport) ValidateDelete added in v1.2.0

func (r *ResourceFieldExport) ValidateDelete() (admission.Warnings, error)

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*ResourceFieldExport) ValidateUpdate added in v1.2.0

func (r *ResourceFieldExport) ValidateUpdate(_ runtime.Object) (admission.Warnings, error)

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type ResourceFieldExportList

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

ResourceFieldExportList contains a list of ResourceFieldExport

func (*ResourceFieldExportList) DeepCopy

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

func (*ResourceFieldExportList) DeepCopyInto

func (in *ResourceFieldExportList) DeepCopyInto(out *ResourceFieldExportList)

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

func (*ResourceFieldExportList) DeepCopyObject

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

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

type ResourceFieldExportSpec

type ResourceFieldExportSpec struct {
	From ResourceRef    `json:"from"`
	To   DestinationRef `json:"to"`

	// +kubebuilder:validation:Optional
	RequiredFields *RequiredFields `json:"requiredFields"`
	Outputs        []Output        `json:"outputs"`
}

ResourceFieldExportSpec defines the desired state of ResourceFieldExport

func (*ResourceFieldExportSpec) DeepCopy

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

func (*ResourceFieldExportSpec) DeepCopyInto

func (in *ResourceFieldExportSpec) DeepCopyInto(out *ResourceFieldExportSpec)

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

type ResourceFieldExportStatus

type ResourceFieldExportStatus struct {
	Conditions []Condition `json:"conditions"`
}

ResourceFieldExportStatus defines the observed state of ResourceFieldExport

func (*ResourceFieldExportStatus) DeepCopy

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

func (*ResourceFieldExportStatus) DeepCopyInto

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

type ResourceRef

type ResourceRef struct {
	// APIVersion is the group version of the resource
	// +kubebuilder:validation:Pattern=^([a-zA-Z0-9.-]+[a-zA-Z0-9-]\/[a-zA-Z0-9]+|[a-zA-Z0-9]+)$
	APIVersion string `json:"apiVersion"`
	Kind       string `json:"kind"`
	Name       string `json:"name"`
}

func (*ResourceRef) DeepCopy

func (in *ResourceRef) DeepCopy() *ResourceRef

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

func (*ResourceRef) DeepCopyInto

func (in *ResourceRef) DeepCopyInto(out *ResourceRef)

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

type StatusCondition

type StatusCondition struct {
	Type   string `json:"type"`
	Status string `json:"status"`
}

func (*StatusCondition) DeepCopy

func (in *StatusCondition) DeepCopy() *StatusCondition

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

func (*StatusCondition) DeepCopyInto

func (in *StatusCondition) DeepCopyInto(out *StatusCondition)

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