v1alpha1

package
v0.1.46 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the dns v1alpha1 API group

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "dns.cs.sap.com", 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
)
View Source
var (
	// Needed by kubernetes/code-generator
	SchemeGroupVersion = GroupVersion
)

Functions

func Resource

func Resource(resource string) schema.GroupResource

Needed by kubernetes/code-generator

Types

type MasqueradingRule

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

	Spec MasqueradingRuleSpec `json:"spec,omitempty"`
	// +kubebuilder:default={"observedGeneration":-1}
	Status MasqueradingRuleStatus `json:"status,omitempty"`
}

MasqueradingRule is the Schema for the masqueradingrules API

func (*MasqueradingRule) DeepCopy

func (in *MasqueradingRule) DeepCopy() *MasqueradingRule

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

func (*MasqueradingRule) DeepCopyInto

func (in *MasqueradingRule) DeepCopyInto(out *MasqueradingRule)

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

func (*MasqueradingRule) DeepCopyObject

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

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

func (*MasqueradingRule) Default

func (r *MasqueradingRule) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*MasqueradingRule) SetState

func (masqueradingRule *MasqueradingRule) SetState(state MasqueradingRuleState, message string)

Set state (and the 'Ready' condition) of a MasqueradingRule

func (*MasqueradingRule) SetupWebhookWithManager

func (r *MasqueradingRule) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*MasqueradingRule) ValidateCreate

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

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

func (*MasqueradingRule) ValidateDelete

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

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

func (*MasqueradingRule) ValidateUpdate

func (r *MasqueradingRule) ValidateUpdate(old runtime.Object) (admission.Warnings, error)

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

type MasqueradingRuleCondition

type MasqueradingRuleCondition struct {
	// Type of the condition, known values are ('Ready').
	Type MasqueradingRuleConditionType `json:"type"`

	// Status of the condition, one of ('True', 'False', 'Unknown').
	Status corev1.ConditionStatus `json:"status"`

	// LastUpdateTime is the timestamp corresponding to the last status
	// update of this condition.
	// +optional
	LastUpdateTime *metav1.Time `json:"lastUpdateTime,omitempty"`

	// LastTransitionTime is the timestamp corresponding to the last status
	// change of this condition.
	// +optional
	LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`

	// Reason is a brief machine readable explanation for the condition's last
	// transition.
	// +optional
	Reason string `json:"reason,omitempty"`

	// Message is a human readable description of the details of the last
	// transition, complementing reason.
	// +optional
	Message string `json:"message,omitempty"`
}

MasqueradingRuleCondition contains condition information for a MasqueradingRule.

func (*MasqueradingRuleCondition) DeepCopy

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

func (*MasqueradingRuleCondition) DeepCopyInto

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

type MasqueradingRuleConditionType

type MasqueradingRuleConditionType string

MasqueradingRuleConditionType represents a MasqueradingRule condition value.

const (
	// MasqueradingRuleConditionReady represents the fact that a given MasqueradingRule is ready.
	MasqueradingRuleConditionTypeReady MasqueradingRuleConditionType = "Ready"
)

type MasqueradingRuleList

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

MasqueradingRuleList contains a list of MasqueradingRule

func (*MasqueradingRuleList) DeepCopy

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

func (*MasqueradingRuleList) DeepCopyInto

func (in *MasqueradingRuleList) DeepCopyInto(out *MasqueradingRuleList)

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

func (*MasqueradingRuleList) DeepCopyObject

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

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

type MasqueradingRuleSpec

type MasqueradingRuleSpec struct {
	// +kubebuilder:validation:Pattern=^(\*|[a-z0-9]|[a-z0-9][a-z0-9-]*[a-z0-9])(\.([a-z0-9]|[a-z0-9][a-z0-9-]*[a-z0-9]))*$
	From string `json:"from"`
	// +kubebuilder:validation:Pattern=^([a-z0-9]|[a-z0-9][a-z0-9-]*[a-z0-9])(\.([a-z0-9]|[a-z0-9][a-z0-9-]*[a-z0-9]))*$
	To string `json:"to"`
}

MasqueradingRuleSpec defines the desired state of MasqueradingRule

func (*MasqueradingRuleSpec) DeepCopy

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

func (*MasqueradingRuleSpec) DeepCopyInto

func (in *MasqueradingRuleSpec) DeepCopyInto(out *MasqueradingRuleSpec)

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

type MasqueradingRuleState

type MasqueradingRuleState string

MasqueradingRuleState represents a condition state in a readable form +kubebuilder:validation:Enum=New;Processing;DeletionBlocked;Deleting;Ready;Error

const (
	// Represents the fact that the MasqueradingRule was first seen.
	MasqueradingRuleStateNew MasqueradingRuleState = "New"

	// MasqueradingRuleStateProcessing represents the fact that the MasqueradingRule is reconciling
	MasqueradingRuleStateProcessing MasqueradingRuleState = "Processing"

	// Represents the fact that the MasqueradingRule should be deleted, but deletion is blocked.
	MasqueradingRuleStateDeletionBlocked MasqueradingRuleState = "DeletionBlocked"

	// MasqueradingRuleStateProcessing represents the fact that the MasqueradingRule is being deleted
	MasqueradingRuleStateDeleting MasqueradingRuleState = "Deleting"

	// MasqueradingRuleStateProcessing represents the fact that the MasqueradingRule is ready
	MasqueradingRuleStateReady MasqueradingRuleState = "Ready"

	// MasqueradingRuleStateProcessing represents the fact that the MasqueradingRule is not ready resp. has an error
	MasqueradingRuleStateError MasqueradingRuleState = "Error"
)

These are valid condition states

type MasqueradingRuleStatus

type MasqueradingRuleStatus struct {
	// Observed generation
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`

	// List of status conditions to indicate the status of a MasqueradingRule.
	// Known condition types are `Ready`.
	// +optional
	Conditions []MasqueradingRuleCondition `json:"conditions,omitempty"`

	// Readable form of the state.
	// +optional
	State MasqueradingRuleState `json:"state,omitempty"`
}

MasqueradingRuleStatus defines the observed state of MasqueradingRule

func (*MasqueradingRuleStatus) DeepCopy

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

func (*MasqueradingRuleStatus) DeepCopyInto

func (in *MasqueradingRuleStatus) DeepCopyInto(out *MasqueradingRuleStatus)

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