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
- Variables
- type DNSClass
- func (in *DNSClass) DeepCopy() *DNSClass
- func (in *DNSClass) DeepCopyInto(out *DNSClass)
- func (in *DNSClass) DeepCopyObject() runtime.Object
- func (r *DNSClass) Default()
- func (r *DNSClass) ExtractTemplateKeysRegex() []string
- func (r *DNSClass) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *DNSClass) ValidateCreate() (admission.Warnings, error)
- func (r *DNSClass) ValidateDelete() (admission.Warnings, error)
- func (r *DNSClass) ValidateUpdate(old runtime.Object) (admission.Warnings, error)
- type DNSClassList
- type DNSClassSpec
- type DNSClassStatus
- type DiscoveredFields
Constants ¶
const ( StateInit string = "initializing" StateReady string = "ready" StateError string = "error" )
Variables ¶
var ( ValidDNSPolicies = []corev1.DNSPolicy{corev1.DNSDefault, corev1.DNSClusterFirst, corev1.DNSClusterFirstWithHostNet, corev1.DNSNone} DefaultDNSPolicies = []corev1.DNSPolicy{corev1.DNSClusterFirst, corev1.DNSClusterFirstWithHostNet, corev1.DNSNone} ValidTemplateKeys = []string{"podNamespace", "clusterDomain", "dnsDomain", "clusterName"} )
Predefined constants for DNS policies and template keys
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DNSClass.
func (*DNSClass) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DNSClass) DeepCopyObject ¶
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) ExtractTemplateKeysRegex ¶ added in v0.2.0
Extract the keys using a regular expression
func (*DNSClass) SetupWebhookWithManager ¶
SetupWebhookWithManager will setup the manager to manage the webhooks
func (*DNSClass) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*DNSClass) ValidateDelete ¶
ValidateDelete 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"` }
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"` State string `json:"state,omitempty"` DiscoveredFields *DiscoveredFields `json:"discoveredFields,omitempty"` }
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.