v1alpha1

package
v0.1.3 Latest Latest
Warning

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

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

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the config v1alpha1 API group +kubebuilder:object:generate=true +groupName=config.kubedns-shepherd.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "config.kubedns-shepherd.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 DNSClass

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

	Spec   DNSClassSpec   `json:"spec,omitempty"`
	Status DNSClassStatus `json:"status,omitempty"`
}

DNSClass is the Schema for the dnsclasses API

func (*DNSClass) DeepCopy

func (in *DNSClass) DeepCopy() *DNSClass

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

func (*DNSClass) DeepCopyInto

func (in *DNSClass) DeepCopyInto(out *DNSClass)

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

func (*DNSClass) DeepCopyObject

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

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

func (*DNSClass) Default

func (r *DNSClass) Default()

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

func (*DNSClass) SetupWebhookWithManager

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

SetupWebhookWithManager will setup the manager to manage the webhooks

func (*DNSClass) ValidateCreate

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

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

func (*DNSClass) ValidateDelete

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

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

func (*DNSClass) ValidateUpdate

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

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

type DNSClassList

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

DNSClassList contains a list of DNSClass

func (*DNSClassList) DeepCopy

func (in *DNSClassList) DeepCopy() *DNSClassList

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

func (*DNSClassList) DeepCopyInto

func (in *DNSClassList) DeepCopyInto(out *DNSClassList)

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

func (*DNSClassList) DeepCopyObject

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

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

type DNSClassSpec

type DNSClassSpec struct {
	AllowedNamespaces  []string             `json:"allowedNamespaces,omitempty"`
	DisabledNamespaces []string             `json:"disabledNamespaces,omitempty"`
	AllowedDNSPolicies []corev1.DNSPolicy   `json:"allowedDNSPolicies,omitempty"`
	DNSPolicy          corev1.DNSPolicy     `json:"dnsPolicy,omitempty"`
	DNSConfig          *corev1.PodDNSConfig `json:"dnsConfig,omitempty"`
	DiscoveredFields   *DiscoveredFields    `json:"discoveredFields,omitempty"`
}

DNSClassSpec defines the desired state of DNSClass

func (*DNSClassSpec) DeepCopy

func (in *DNSClassSpec) DeepCopy() *DNSClassSpec

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

func (*DNSClassSpec) DeepCopyInto

func (in *DNSClassSpec) DeepCopyInto(out *DNSClassSpec)

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

type DNSClassStatus

type DNSClassStatus struct {
	// +operator-sdk:csv:customresourcedefinitions:type=status
	Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"`
}

DNSClassStatus defines the observed state of DNSClass

func (*DNSClassStatus) DeepCopy

func (in *DNSClassStatus) DeepCopy() *DNSClassStatus

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

func (*DNSClassStatus) DeepCopyInto

func (in *DNSClassStatus) DeepCopyInto(out *DNSClassStatus)

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

type DiscoveredFields added in v0.1.3

type DiscoveredFields struct {
	Nameservers   []string `json:"nameservers,omitempty"`
	ClusterDomain string   `json:"clusterDomain,omitempty"`
	ClusterName   string   `json:"clusterName,omitempty"`
	DNSDomain     string   `json:"dnsDomain,omitempty"`
}

func (*DiscoveredFields) DeepCopy added in v0.1.3

func (in *DiscoveredFields) DeepCopy() *DiscoveredFields

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

func (*DiscoveredFields) DeepCopyInto added in v0.1.3

func (in *DiscoveredFields) DeepCopyInto(out *DiscoveredFields)

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