v1alpha1

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the dns v1alpha1 API group +kubebuilder:object:generate=true +groupName=dns.cav.enablers.ob

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "dns.cav.enablers.ob", 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 RRset

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

	Spec   RRsetSpec   `json:"spec,omitempty"`
	Status RRsetStatus `json:"status,omitempty"`
}

+kubebuilder:printcolumn:name="Zone",type="string",JSONPath=".spec.zoneRef.name" +kubebuilder:printcolumn:name="Name",type="string",JSONPath=".status.dnsEntryName" +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".spec.type" +kubebuilder:printcolumn:name="TTL",type="integer",JSONPath=".spec.ttl" +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.syncStatus" +kubebuilder:printcolumn:name="Records",type="string",JSONPath=".spec.records" RRset is the Schema for the rrsets API

func (*RRset) DeepCopy

func (in *RRset) DeepCopy() *RRset

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

func (*RRset) DeepCopyInto

func (in *RRset) DeepCopyInto(out *RRset)

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

func (*RRset) DeepCopyObject

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

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

func (*RRset) IsInExpectedStatus added in v0.4.0

func (r *RRset) IsInExpectedStatus(expectedMinimumObservedGeneration int64, expectedSyncStatus string) bool

IsInExpectedStatus returns true if Status.SyncStatus and Status.ObservedGeneration are, at least, at expected value

type RRsetList

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

RRsetList contains a list of RRset

func (*RRsetList) DeepCopy

func (in *RRsetList) DeepCopy() *RRsetList

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

func (*RRsetList) DeepCopyInto

func (in *RRsetList) DeepCopyInto(out *RRsetList)

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

func (*RRsetList) DeepCopyObject

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

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

type RRsetSpec

type RRsetSpec struct {
	// Type of the record (e.g. "A", "PTR", "MX").
	Type string `json:"type"`
	// Name of the record
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="Value is immutable"
	Name string `json:"name"`
	// DNS TTL of the records, in seconds.
	TTL uint32 `json:"ttl"`
	// All records in this Resource Record Set.
	Records []string `json:"records"`
	// Comment on RRSet.
	// +optional
	Comment *string `json:"comment,omitempty"`
	// ZoneRef reference the zone the RRSet depends on.
	ZoneRef ZoneRef `json:"zoneRef"`
}

RRsetSpec defines the desired state of RRset

func (*RRsetSpec) DeepCopy

func (in *RRsetSpec) DeepCopy() *RRsetSpec

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

func (*RRsetSpec) DeepCopyInto

func (in *RRsetSpec) DeepCopyInto(out *RRsetSpec)

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

type RRsetStatus

type RRsetStatus struct {
	LastUpdateTime     *metav1.Time       `json:"lastUpdateTime,omitempty"`
	DnsEntryName       *string            `json:"dnsEntryName,omitempty"`
	SyncStatus         *string            `json:"syncStatus,omitempty"`
	Conditions         []metav1.Condition `json:"conditions,omitempty"`
	ObservedGeneration *int64             `json:"observedGeneration,omitempty"`
}

RRsetStatus defines the observed state of RRset

func (*RRsetStatus) DeepCopy

func (in *RRsetStatus) DeepCopy() *RRsetStatus

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

func (*RRsetStatus) DeepCopyInto

func (in *RRsetStatus) DeepCopyInto(out *RRsetStatus)

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

type Zone

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

	Spec   ZoneSpec   `json:"spec,omitempty"`
	Status ZoneStatus `json:"status,omitempty"`
}

+kubebuilder:printcolumn:name="Serial",type="integer",JSONPath=".status.serial" +kubebuilder:printcolumn:name="ID",type="string",JSONPath=".status.id" +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.syncStatus" Zone is the Schema for the zones API

func (*Zone) DeepCopy

func (in *Zone) DeepCopy() *Zone

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

func (*Zone) DeepCopyInto

func (in *Zone) DeepCopyInto(out *Zone)

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

func (*Zone) DeepCopyObject

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

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

func (*Zone) IsInExpectedStatus added in v0.4.0

func (z *Zone) IsInExpectedStatus(expectedMinimumObservedGeneration int64, expectedSyncStatus string) bool

IsInExpectedStatus returns true if Status.SyncStatus and Status.ObservedGeneration are, at least, at expected value

type ZoneList

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

ZoneList contains a list of Zone

func (*ZoneList) DeepCopy

func (in *ZoneList) DeepCopy() *ZoneList

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

func (*ZoneList) DeepCopyInto

func (in *ZoneList) DeepCopyInto(out *ZoneList)

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

func (*ZoneList) DeepCopyObject

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

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

type ZoneRef

type ZoneRef struct {
	// Name of the zone.
	Name string `json:"name"`
}

func (*ZoneRef) DeepCopy

func (in *ZoneRef) DeepCopy() *ZoneRef

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

func (*ZoneRef) DeepCopyInto

func (in *ZoneRef) DeepCopyInto(out *ZoneRef)

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

type ZoneSpec

type ZoneSpec struct {
	// Kind of the zone, one of "Native", "Master", "Slave", "Producer", "Consumer".
	// +kubebuilder:validation:Enum:=Native;Master;Slave;Producer;Consumer
	Kind string `json:"kind"`
	// List of the nameservers of the zone.
	// +kubebuilder:validation:MinItems=1
	// +kubebuilder:validation:items:Pattern=`^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$`
	Nameservers []string `json:"nameservers"`
	// The catalog this zone is a member of
	// +optional
	Catalog *string `json:"catalog,omitempty"`
	// The SOA-EDIT-API metadata item, one of "DEFAULT", "INCREASE", "EPOCH", defaults to "DEFAULT"
	// +kubebuilder:validation:Enum:=DEFAULT;INCREASE;EPOCH
	// +kubebuilder:default:="DEFAULT"
	// +optional
	SOAEditAPI *string `json:"soa_edit_api,omitempty"`
}

ZoneSpec defines the desired state of Zone

func (*ZoneSpec) DeepCopy

func (in *ZoneSpec) DeepCopy() *ZoneSpec

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

func (*ZoneSpec) DeepCopyInto

func (in *ZoneSpec) DeepCopyInto(out *ZoneSpec)

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

type ZoneStatus

type ZoneStatus struct {
	// ID define the opaque zone id.
	// +optional
	ID *string `json:"id,omitempty"`
	// Name of the zone (e.g. "example.com.")
	// +optional
	Name *string `json:"name,omitempty"`
	// Kind of the zone, one of "Native", "Master", "Slave", "Producer", "Consumer".
	// +optional
	Kind *string `json:"kind,omitempty"`
	// The SOA serial number.
	// +optional
	Serial *uint32 `json:"serial,omitempty"`
	// The SOA serial notifications have been sent out for
	// +optional
	NotifiedSerial *uint32 `json:"notified_serial,omitempty"`
	// The SOA serial as seen in query responses.
	// +optional
	EditedSerial *uint32 `json:"edited_serial,omitempty"`
	// List of IP addresses configured as a master for this zone ("Slave" type zones only).
	// +optional
	Masters []string `json:"masters,omitempty"`
	// Whether or not this zone is DNSSEC signed.
	// +optional
	DNSsec *bool `json:"dnssec,omitempty"`
	// The catalog this zone is a member of.
	// +optional
	Catalog            *string            `json:"catalog,omitempty"`
	SyncStatus         *string            `json:"syncStatus,omitempty"`
	Conditions         []metav1.Condition `json:"conditions,omitempty"`
	ObservedGeneration *int64             `json:"observedGeneration,omitempty"`
}

ZoneStatus defines the observed state of Zone

func (*ZoneStatus) DeepCopy

func (in *ZoneStatus) DeepCopy() *ZoneStatus

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

func (*ZoneStatus) DeepCopyInto

func (in *ZoneStatus) DeepCopyInto(out *ZoneStatus)

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