Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the cdn v1alpha1 API group +kubebuilder:object:generate=true +groupName=cdn.gympass.com
Index ¶
- Variables
- type CDNClass
- type CDNClassList
- type CDNClassSpec
- type CDNClassStatus
- type CDNStatus
- func (in *CDNStatus) DeepCopy() *CDNStatus
- func (in *CDNStatus) DeepCopyInto(out *CDNStatus)
- func (in *CDNStatus) DeepCopyObject() runtime.Object
- func (c *CDNStatus) Exists() bool
- func (c *CDNStatus) GetIngressKeys() []client.ObjectKey
- func (c *CDNStatus) HasIngressRef(ing namespacedName) bool
- func (c *CDNStatus) RemoveDNSRecords(records []string)
- func (c *CDNStatus) RemoveIngressRef(ing namespacedName)
- func (c *CDNStatus) SetAliases(aliases []string)
- func (c *CDNStatus) SetDNSSync(synced bool)
- func (c *CDNStatus) SetInfo(id, arn, address string)
- func (c *CDNStatus) SetIngressRef(inSync bool, ing namespacedName)
- func (c *CDNStatus) UpsertDNSRecords(records []string)
- type CDNStatusList
- type CDNStatusStatus
- type DNSStatus
- type IngressRef
- type IngressRefs
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "cdn.gympass.com", 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 CDNClass ¶ added in v0.2.0
type CDNClass struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec CDNClassSpec `json:"spec,omitempty"` Status CDNClassStatus `json:"status,omitempty"` }
CDNClass is the Schema for the cdnclasses API
func (*CDNClass) DeepCopy ¶ added in v0.2.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CDNClass.
func (*CDNClass) DeepCopyInto ¶ added in v0.2.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CDNClass) DeepCopyObject ¶ added in v0.2.0
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CDNClassList ¶ added in v0.2.0
type CDNClassList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []CDNClass `json:"items"` }
CDNClassList contains a list of CDNClass
func (*CDNClassList) DeepCopy ¶ added in v0.2.0
func (in *CDNClassList) DeepCopy() *CDNClassList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CDNClassList.
func (*CDNClassList) DeepCopyInto ¶ added in v0.2.0
func (in *CDNClassList) DeepCopyInto(out *CDNClassList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CDNClassList) DeepCopyObject ¶ added in v0.2.0
func (in *CDNClassList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CDNClassSpec ¶ added in v0.2.0
type CDNClassSpec struct { // CertificateArn is deprecated, certs are now automatically discovered and this field is ignored // +optional CertificateArn string `json:"certificateArn"` // HostedZoneID represents a valid hosted zone ID for a domain name // +kubebuilder:validation:Required HostedZoneID string `json:"hostedZoneID"` // CreateAlias determine if should create an DNS alias for distribution // +kubebuilder:validation:Required CreateAlias bool `json:"createAlias"` // TXTOwnerValue is the value to be used when creating ownership TXT records for aliases // +kubebuilder:validation:Required TXTOwnerValue string `json:"txtOwnerValue"` }
CDNClassSpec defines the desired state of CDNClass
func (*CDNClassSpec) DeepCopy ¶ added in v0.2.0
func (in *CDNClassSpec) DeepCopy() *CDNClassSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CDNClassSpec.
func (*CDNClassSpec) DeepCopyInto ¶ added in v0.2.0
func (in *CDNClassSpec) DeepCopyInto(out *CDNClassSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CDNClassStatus ¶ added in v0.2.0
type CDNClassStatus struct { // CDNClass resource condition // +optional // +nullable Conditions []metav1.Condition `json:"conditions"` }
CDNClassStatus defines the observed state of CDNClass
func (*CDNClassStatus) DeepCopy ¶ added in v0.2.0
func (in *CDNClassStatus) DeepCopy() *CDNClassStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CDNClassStatus.
func (*CDNClassStatus) DeepCopyInto ¶ added in v0.2.0
func (in *CDNClassStatus) DeepCopyInto(out *CDNClassStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CDNStatus ¶
type CDNStatus struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Status CDNStatusStatus `json:"status,omitempty"` }
CDNStatus is the Schema for the cdnstatuses API
func (*CDNStatus) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CDNStatus.
func (*CDNStatus) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CDNStatus) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*CDNStatus) Exists ¶ added in v0.0.13
Exists returns whether the CDNStatus exists on Kubernetes or not
func (*CDNStatus) GetIngressKeys ¶
GetIngressKeys returns keys to manipulate all IngressRef stored in the CDNStatus
func (*CDNStatus) HasIngressRef ¶
HasIngressRef returns whether the given Ingress is part of the refs stored by CDNStatus
func (*CDNStatus) RemoveDNSRecords ¶
RemoveDNSRecords deletes the given records from the DNS status section
func (*CDNStatus) RemoveIngressRef ¶
func (c *CDNStatus) RemoveIngressRef(ing namespacedName)
RemoveIngressRef ensures the given Ingress is not referenced
func (*CDNStatus) SetAliases ¶
SetAliases sets the CDN's aliases
func (*CDNStatus) SetDNSSync ¶ added in v0.0.10
SetDNSSync sets the DNS sync status if there is any DNS status to report
func (*CDNStatus) SetIngressRef ¶
SetIngressRef set IngressRef to the status based on Ingress obj
func (*CDNStatus) UpsertDNSRecords ¶
UpsertDNSRecords inserts the given records at the DNS status section if they're not present already
type CDNStatusList ¶
type CDNStatusList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []CDNStatus `json:"items"` }
CDNStatusList contains a list of CDNStatus
func (*CDNStatusList) DeepCopy ¶
func (in *CDNStatusList) DeepCopy() *CDNStatusList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CDNStatusList.
func (*CDNStatusList) DeepCopyInto ¶
func (in *CDNStatusList) DeepCopyInto(out *CDNStatusList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CDNStatusList) DeepCopyObject ¶
func (in *CDNStatusList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CDNStatusStatus ¶
type CDNStatusStatus struct { ID string `json:"id,omitempty"` ARN string `json:"arn,omitempty"` Ingresses IngressRefs `json:"ingresses,omitempty"` Aliases []string `json:"aliases,omitempty"` Address string `json:"address,omitempty"` // +optional // +nullable DNS *DNSStatus `json:"dns,omitempty"` }
CDNStatusStatus defines the observed state of CDNStatus
func (*CDNStatusStatus) DeepCopy ¶
func (in *CDNStatusStatus) DeepCopy() *CDNStatusStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CDNStatusStatus.
func (*CDNStatusStatus) DeepCopyInto ¶
func (in *CDNStatusStatus) DeepCopyInto(out *CDNStatusStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DNSStatus ¶
DNSStatus provides status regarding the creation of DNS records for aliases
func (*DNSStatus) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DNSStatus.
func (*DNSStatus) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IngressRef ¶
type IngressRef string
IngressRef represents a reference to an Ingress
func NewIngressRef ¶
func NewIngressRef(namespace, name string) IngressRef
NewIngressRef creates a new IngressRef for given name and namespace
func (IngressRef) GetName ¶
func (i IngressRef) GetName() string
GetName returns the IngressRef name
func (IngressRef) GetNamespace ¶
func (i IngressRef) GetNamespace() string
GetNamespace returns the IngressRef namespace
func (IngressRef) ToNamespacedName ¶
func (i IngressRef) ToNamespacedName() types.NamespacedName
ToNamespacedName creates a types.Namespaced from an IngressRef
type IngressRefs ¶
type IngressRefs map[IngressRef]string
IngressRefs ingresses map
func (IngressRefs) DeepCopy ¶
func (in IngressRefs) DeepCopy() IngressRefs
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressRefs.
func (IngressRefs) DeepCopyInto ¶
func (in IngressRefs) DeepCopyInto(out *IngressRefs)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.