Documentation ¶
Overview ¶
Package v1beta1 contains API Schema definitions for the networking v1beta1 API group +kubebuilder:object:generate=true +groupName=networking.kubegems.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "networking.kubegems.io", Version: "v1beta1"} // 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 Image ¶
type Image struct { // The repository of the image. // +optional Repository string `json:"repository"` // The tag (version) of the image. // +optional Tag string `json:"tag"` // The ImagePullPolicy of the image. // +optional PullPolicy corev1.PullPolicy `json:"pullPolicy"` }
Image defines the Repository, Tag and ImagePullPolicy of the Ingress Controller Image.
func (*Image) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Image.
func (*Image) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Metrics ¶
type Metrics struct { // Enable Prometheus metrics. Enable bool `json:"enable"` // Sets the port where the Prometheus metrics are exposed. Default is 10254. // Format is 1023 - 65535 // +kubebuilder:validation:Minimum=1023 // +kubebuilder:validation:Maximum=65535 // +optional // +nullable Port *uint16 `json:"port"` }
Metrics defines the Metrics metrics for the Ingress Controller.
func (*Metrics) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Metrics.
func (*Metrics) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NginxIngressController ¶
type NginxIngressController struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec NginxIngressControllerSpec `json:"spec,omitempty"` Status NginxIngressControllerStatus `json:"status,omitempty"` }
NginxIngressController is the Schema for the nginxingresscontrollers API
func (*NginxIngressController) DeepCopy ¶
func (in *NginxIngressController) DeepCopy() *NginxIngressController
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NginxIngressController.
func (*NginxIngressController) DeepCopyInto ¶
func (in *NginxIngressController) DeepCopyInto(out *NginxIngressController)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NginxIngressController) DeepCopyObject ¶
func (in *NginxIngressController) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NginxIngressControllerList ¶
type NginxIngressControllerList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []NginxIngressController `json:"items"` }
NginxIngressControllerList contains a list of NginxIngressController
func (*NginxIngressControllerList) DeepCopy ¶
func (in *NginxIngressControllerList) DeepCopy() *NginxIngressControllerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NginxIngressControllerList.
func (*NginxIngressControllerList) DeepCopyInto ¶
func (in *NginxIngressControllerList) DeepCopyInto(out *NginxIngressControllerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NginxIngressControllerList) DeepCopyObject ¶
func (in *NginxIngressControllerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NginxIngressControllerSpec ¶
type NginxIngressControllerSpec struct { // The image of the Ingress Controller. // +optional Image Image `json:"image"` // The number of replicas of the Ingress Controller pod. The default is 1. Only applies if the type is set to deployment. // +optional // +nullable Replicas *int32 `json:"replicas"` // A class of the Ingress controller. The Ingress controller only processes Ingress resources that belong to its class. // +optional IngressClass string `json:"ingressClass"` // The service of the Ingress controller. // +optional // +nullable Service *Service `json:"service"` // The Workload of the Ingress controller. // +optional // +nullable Workload *Workload `json:"workload"` // Namespace to watch for Ingress resources. By default the Ingress controller watches all namespaces. // +optional WatchNamespace string `json:"watchNamespace"` // Initial values of the Ingress Controller ConfigMap. // Check https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/ for // more information about possible values. // +optional // +nullable ConfigMapData map[string]string `json:"configMapData,omitempty"` }
NginxIngressControllerSpec defines the desired state of NginxIngressController
func (*NginxIngressControllerSpec) DeepCopy ¶
func (in *NginxIngressControllerSpec) DeepCopy() *NginxIngressControllerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NginxIngressControllerSpec.
func (*NginxIngressControllerSpec) DeepCopyInto ¶
func (in *NginxIngressControllerSpec) DeepCopyInto(out *NginxIngressControllerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NginxIngressControllerStatus ¶
type NginxIngressControllerStatus struct { // Deployed is true if the Operator has finished the deployment of the NginxIngressController. Deployed bool `json:"deployed"` }
NginxIngressControllerStatus defines the observed state of NginxIngressController
func (*NginxIngressControllerStatus) DeepCopy ¶
func (in *NginxIngressControllerStatus) DeepCopy() *NginxIngressControllerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NginxIngressControllerStatus.
func (*NginxIngressControllerStatus) DeepCopyInto ¶
func (in *NginxIngressControllerStatus) DeepCopyInto(out *NginxIngressControllerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Service ¶
type Service struct { // The type of the Service for the Ingress Controller. Valid Service types are: NodePort and LoadBalancer. // +optional Type string `json:"type"` // Specifies extra labels of the service. // +optional // +nullable ExtraLabels map[string]string `json:"extraLabels,omitempty"` // Specifies extra annotations of the service. // +optional // +nullable ExtraAnnotations map[string]string `json:"extraAnnotations,omitempty"` }
Service defines the Service for the Ingress Controller.
func (*Service) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Service.
func (*Service) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Workload ¶
type Workload struct { // Specifies resource request and limit of the nginx container // +optional Resources corev1.ResourceRequirements `json:"resources,omitempty"` // Specifies extra labels of the workload(deployment or daemonset) of nginx. // +optional // +nullable ExtraLabels map[string]string `json:"extraLabels,omitempty"` }
Workload of the Ingress controller.
func (*Workload) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Workload.
func (*Workload) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.