v1alpha2

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 v1alpha2 contains API Schema definitions for the dns v1alpha2 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: "v1alpha2"}

	// 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 ClusterRRset added in v0.4.2

type ClusterRRset 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" ClusterRRset is the Schema for the clusterrrsets API

func (*ClusterRRset) Copy added in v0.4.2

func (c *ClusterRRset) Copy() GenericRRset

func (*ClusterRRset) DeepCopy added in v0.4.2

func (in *ClusterRRset) DeepCopy() *ClusterRRset

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

func (*ClusterRRset) DeepCopyInto added in v0.4.2

func (in *ClusterRRset) DeepCopyInto(out *ClusterRRset)

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

func (*ClusterRRset) DeepCopyObject added in v0.4.2

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

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

func (*ClusterRRset) GetObjectMeta added in v0.4.2

func (c *ClusterRRset) GetObjectMeta() *metav1.ObjectMeta

func (*ClusterRRset) GetSpec added in v0.4.2

func (c *ClusterRRset) GetSpec() *RRsetSpec

func (*ClusterRRset) GetStatus added in v0.4.2

func (c *ClusterRRset) GetStatus() RRsetStatus

func (*ClusterRRset) GetTypeMeta added in v0.4.2

func (c *ClusterRRset) GetTypeMeta() *metav1.TypeMeta

func (*ClusterRRset) IsInExpectedStatus added in v0.4.2

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

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

func (*ClusterRRset) SetStatus added in v0.4.2

func (c *ClusterRRset) SetStatus(status RRsetStatus)

type ClusterRRsetList added in v0.4.2

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

ClusterRRsetList contains a list of ClusterRRset

func (*ClusterRRsetList) DeepCopy added in v0.4.2

func (in *ClusterRRsetList) DeepCopy() *ClusterRRsetList

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

func (*ClusterRRsetList) DeepCopyInto added in v0.4.2

func (in *ClusterRRsetList) DeepCopyInto(out *ClusterRRsetList)

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

func (*ClusterRRsetList) DeepCopyObject added in v0.4.2

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

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

type ClusterZone

type ClusterZone 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" ClusterZone is the Schema for the clusterzones API

func (*ClusterZone) Copy

func (c *ClusterZone) Copy() GenericZone

func (*ClusterZone) DeepCopy

func (in *ClusterZone) DeepCopy() *ClusterZone

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

func (*ClusterZone) DeepCopyInto

func (in *ClusterZone) DeepCopyInto(out *ClusterZone)

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

func (*ClusterZone) DeepCopyObject

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

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

func (*ClusterZone) GetObjectMeta

func (c *ClusterZone) GetObjectMeta() *metav1.ObjectMeta

func (*ClusterZone) GetSpec

func (c *ClusterZone) GetSpec() *ZoneSpec

func (*ClusterZone) GetStatus

func (c *ClusterZone) GetStatus() ZoneStatus

func (*ClusterZone) GetTypeMeta

func (c *ClusterZone) GetTypeMeta() *metav1.TypeMeta

func (*ClusterZone) IsInExpectedStatus

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

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

func (*ClusterZone) SetStatus

func (c *ClusterZone) SetStatus(status ZoneStatus)

type ClusterZoneList

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

ClusterZoneList contains a list of ClusterZone

func (*ClusterZoneList) DeepCopy

func (in *ClusterZoneList) DeepCopy() *ClusterZoneList

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

func (*ClusterZoneList) DeepCopyInto

func (in *ClusterZoneList) DeepCopyInto(out *ClusterZoneList)

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

func (*ClusterZoneList) DeepCopyObject

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

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

type GenericRRset added in v0.4.2

type GenericRRset interface {
	runtime.Object
	metav1.Object

	GetObjectMeta() *metav1.ObjectMeta
	GetTypeMeta() *metav1.TypeMeta

	GetSpec() *RRsetSpec
	GetStatus() RRsetStatus
	SetStatus(status RRsetStatus)
	Copy() GenericRRset
}

GenericRRset is a common interface for interacting with ClusterRRset or a namespaced RRset.

type GenericZone

type GenericZone interface {
	runtime.Object
	metav1.Object

	GetObjectMeta() *metav1.ObjectMeta
	GetTypeMeta() *metav1.TypeMeta

	GetSpec() *ZoneSpec
	GetStatus() ZoneStatus
	SetStatus(status ZoneStatus)
	Copy() GenericZone
}

GenericZone is a common interface for interacting with ClusterZone or a namespaced Zone.

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) Copy added in v0.4.2

func (c *RRset) Copy() GenericRRset

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) GetObjectMeta added in v0.4.2

func (c *RRset) GetObjectMeta() *metav1.ObjectMeta

func (*RRset) GetSpec added in v0.4.2

func (c *RRset) GetSpec() *RRsetSpec

func (*RRset) GetStatus added in v0.4.2

func (c *RRset) GetStatus() RRsetStatus

func (*RRset) GetTypeMeta added in v0.4.2

func (c *RRset) GetTypeMeta() *metav1.TypeMeta

func (*RRset) IsInExpectedStatus

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

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

func (*RRset) SetStatus added in v0.4.2

func (c *RRset) SetStatus(status RRsetStatus)

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) Copy

func (c *Zone) Copy() GenericZone

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) GetObjectMeta

func (c *Zone) GetObjectMeta() *metav1.ObjectMeta

func (*Zone) GetSpec

func (c *Zone) GetSpec() *ZoneSpec

func (*Zone) GetStatus

func (c *Zone) GetStatus() ZoneStatus

func (*Zone) GetTypeMeta

func (c *Zone) GetTypeMeta() *metav1.TypeMeta

func (*Zone) IsInExpectedStatus

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

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

func (*Zone) SetStatus

func (c *Zone) SetStatus(status ZoneStatus)

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"`
	// Kind of the Zone resource (Zone or ClusterZone)
	// +kubebuilder:validation:Enum:=Zone;ClusterZone
	Kind string `json:"kind"`
}

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