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
- type DNSClassCustomDefaulter
- type DNSClassCustomValidator
- func (in *DNSClassCustomValidator) DeepCopy() *DNSClassCustomValidator
- func (in *DNSClassCustomValidator) DeepCopyInto(out *DNSClassCustomValidator)
- func (r *DNSClassCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (r *DNSClassCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (r *DNSClassCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj 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"} )
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) ExtractTemplateKeysRegex ¶ added in v0.2.0
Extract the keys using a regular expression
type DNSClassCustomDefaulter ¶ added in v0.2.1
type DNSClassCustomDefaulter struct { }
func (*DNSClassCustomDefaulter) DeepCopy ¶ added in v0.2.1
func (in *DNSClassCustomDefaulter) DeepCopy() *DNSClassCustomDefaulter
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DNSClassCustomDefaulter.
func (*DNSClassCustomDefaulter) DeepCopyInto ¶ added in v0.2.1
func (in *DNSClassCustomDefaulter) DeepCopyInto(out *DNSClassCustomDefaulter)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DNSClassCustomValidator ¶ added in v0.2.1
type DNSClassCustomValidator struct { }
func (*DNSClassCustomValidator) DeepCopy ¶ added in v0.2.1
func (in *DNSClassCustomValidator) DeepCopy() *DNSClassCustomValidator
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DNSClassCustomValidator.
func (*DNSClassCustomValidator) DeepCopyInto ¶ added in v0.2.1
func (in *DNSClassCustomValidator) DeepCopyInto(out *DNSClassCustomValidator)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DNSClassCustomValidator) ValidateCreate ¶ added in v0.2.1
func (r *DNSClassCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the Kind DNSClass
func (*DNSClassCustomValidator) ValidateDelete ¶ added in v0.2.1
func (r *DNSClassCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the Kind DNSClass
func (*DNSClassCustomValidator) ValidateUpdate ¶ added in v0.2.1
func (r *DNSClassCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the Kind DNSClass
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"` }
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.