v1alpha1

package
v0.0.0-...-21969d8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the app v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=app.improvado.io

Package v1alpha1 contains API Schema definitions for the app v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=app.improvado.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: "app.improvado.io", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}
)

Functions

func RegisterDefaults

func RegisterDefaults(scheme *runtime.Scheme) error

RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.

Types

type DefaultBackendSpec

type DefaultBackendSpec struct {
	Name               string                      `json:"name,omitempty"`               // default cr.name+"-default-backend"
	Namespace          string                      `json:"namespace,omitempty"`          // default current namespace
	Image              ImageSpec                   `json:"image,omitempty"`              // default k8s.gcr.io/defaultbackend-amd64:1.5
	CustomArgs         []string                    `json:"customArgs,omitempty"`         // pass arguments to container
	RunAsUser          *int64                      `json:"runAsUser,omitempty"`          // default 65534
	Env                *[]v1.EnvVar                `json:"env,omitempty"`                // pass ENVs to container
	Port               *int32                      `json:"port,omitempty"`               // default 8080
	Affinity           *v1.Affinity                `json:"affinity,omitempty"`           // default empty
	Replicas           *int32                      `json:"replicas,omitempty"`           // default 1
	Annotations        *map[string]string          `json:"annotations,omitempty"`        // default empty
	PodRequests        *v1.ResourceList            `json:"podRequests,omitempty"`        // default empty
	PodLimits          *v1.ResourceList            `json:"podLimits,omitempty"`          // default empty
	ServiceAnnotations *map[string]string          `json:"serviceAnnotations,omitempty"` // default empty
	Pdb                v1beta1.PodDisruptionBudget `json:"pdb"`
}

func (*DefaultBackendSpec) DeepCopy

func (in *DefaultBackendSpec) DeepCopy() *DefaultBackendSpec

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

func (*DefaultBackendSpec) DeepCopyInto

func (in *DefaultBackendSpec) DeepCopyInto(out *DefaultBackendSpec)

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

func (*DefaultBackendSpec) GetDisruptionBudget

func (in *DefaultBackendSpec) GetDisruptionBudget(name string, namespace string, replicas int32, selector map[string]string) v1beta1.PodDisruptionBudget

type ImageSpec

type ImageSpec struct {
	Tag        string         `json:"tag"`
	Repository string         `json:"repository"`
	PullPolicy *v1.PullPolicy `json:"pullPolicy,omitempty"`
}

func (*ImageSpec) DeepCopy

func (in *ImageSpec) DeepCopy() *ImageSpec

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

func (*ImageSpec) DeepCopyInto

func (in *ImageSpec) DeepCopyInto(out *ImageSpec)

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

type IngressServiceSpec

type IngressServiceSpec struct {
	Type                  v1.ServiceType                      `json:"serviceType,omitempty"`
	ExternalTrafficPolicy v1.ServiceExternalTrafficPolicyType `json:"externalTrafficPolicy,omitempty"`
}

func (*IngressServiceSpec) DeepCopy

func (in *IngressServiceSpec) DeepCopy() *IngressServiceSpec

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

func (*IngressServiceSpec) DeepCopyInto

func (in *IngressServiceSpec) DeepCopyInto(out *IngressServiceSpec)

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

type MetricsServiceSpecs

type MetricsServiceSpecs struct {
	Port        int32             `json:"port"` // required
	Annotations map[string]string `json:"annotations,omitempty"`
}

func (*MetricsServiceSpecs) DeepCopy

func (in *MetricsServiceSpecs) DeepCopy() *MetricsServiceSpecs

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

func (*MetricsServiceSpecs) DeepCopyInto

func (in *MetricsServiceSpecs) DeepCopyInto(out *MetricsServiceSpecs)

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

type NginxControllerSpec

type NginxControllerSpec struct {
	// default quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.24.1
	Image       ImageSpec          `json:"image"`
	Env         *[]v1.EnvVar       `json:"env,omitempty"`
	ElectionID  string             `json:"electionID"`
	CustomArgs  []string           `json:"customArgs,omitempty"`
	RunAsUser   *int64             `json:"runAsUser,omitempty"` // default 33
	Affinity    *v1.Affinity       `json:"affinity,omitempty"`
	PodRequests *v1.ResourceList   `json:"pod_requests,omitempty"`
	PodLimits   *v1.ResourceList   `json:"pod_limits,omitempty"`
	Annotations *map[string]string `json:"annotations,omitempty"`

	// nginx configuration
	// set CM name manually, if user want to use own CM, f.e. one config for many instances
	// if not defined CM will be autogenerated with data below
	ConfigMap string `json:"configmap,omitempty"`
	// data, ignored if CM name set manually
	Config map[string]string `json:"config,omitempty"`

	Labels             map[string]string `json:"labels,omitempty"`
	Headers            string            `json:"headers,omitempty"`
	HostNetwork        bool              `json:"hostNetwork,omitempty"`
	ConfigMapTCP       string            `json:"configmapTCP,omitempty"`
	ConfigMapUDP       string            `json:"configmapUDP,omitempty"`
	WatchNamespace     string            `json:"watchNamespace,omitempty"`
	PublishService     bool              `json:"publishService,omitempty"`
	PublishServicePath string            `json:"publishServicePath,omitempty"` // override generated value

	PriorityClassName     string                      `json:"priorityClassName,omitempty"`
	DefaultBackendService string                      `json:"defaultBackendService,omitempty"` // format: namespace/svcname
	DNSPolicy             v1.DNSPolicy                `json:"dnsPolicy,omitempty"`
	IngressClass          string                      `json:"ingressClass,omitempty"`
	Pdb                   v1beta1.PodDisruptionBudget `json:"pdb,omitempty"`
}

func (*NginxControllerSpec) DeepCopy

func (in *NginxControllerSpec) DeepCopy() *NginxControllerSpec

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

func (*NginxControllerSpec) DeepCopyInto

func (in *NginxControllerSpec) DeepCopyInto(out *NginxControllerSpec)

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

func (*NginxControllerSpec) GetDisruptionBudget

func (in *NginxControllerSpec) GetDisruptionBudget(name string, namespace string, replicas int32, selector map[string]string) v1beta1.PodDisruptionBudget

type NginxIngress

type NginxIngress struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   NginxIngressSpec   `json:"spec,omitempty"`
	Status NginxIngressStatus `json:"status,omitempty"`
}

NginxIngress is the Schema for the nginxingresses API +k8s:openapi-gen=true

func (*NginxIngress) DeepCopy

func (in *NginxIngress) DeepCopy() *NginxIngress

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

func (*NginxIngress) DeepCopyInto

func (in *NginxIngress) DeepCopyInto(out *NginxIngress)

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

func (*NginxIngress) DeepCopyObject

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

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

func (*NginxIngress) GetBackendLabels

func (in *NginxIngress) GetBackendLabels() map[string]string

func (*NginxIngress) GetControllerLabels

func (in *NginxIngress) GetControllerLabels() map[string]string

type NginxIngressList

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

NginxIngressList contains a list of NginxIngress

func (*NginxIngressList) DeepCopy

func (in *NginxIngressList) DeepCopy() *NginxIngressList

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

func (*NginxIngressList) DeepCopyInto

func (in *NginxIngressList) DeepCopyInto(out *NginxIngressList)

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

func (*NginxIngressList) DeepCopyObject

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

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

type NginxIngressSpec

type NginxIngressSpec struct {
	Replicas int32 `json:"replicas"`

	Metrics                 *MetricsServiceSpecs `json:"metrics,omitempty"`
	Stats                   *StatsSpec           `json:"stats,omitempty"`
	NginxController         NginxControllerSpec  `json:"nginxController"`
	DefaultBackend          *DefaultBackendSpec  `json:"defaultBackend,omitempty"`
	NginxServiceSpec        v1.ServiceSpec       `json:"service"`
	NginxServiceAnnotations map[string]string    `json:"serviceAnnotations,omitempty"`

	ServiceAccount string `json:"serviceAccount,omitempty"`
}

NginxIngressSpec defines the desired state of NginxIngress +k8s:openapi-gen=true

func (*NginxIngressSpec) DeepCopy

func (in *NginxIngressSpec) DeepCopy() *NginxIngressSpec

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

func (*NginxIngressSpec) DeepCopyInto

func (in *NginxIngressSpec) DeepCopyInto(out *NginxIngressSpec)

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

type NginxIngressStatus

type NginxIngressStatus struct {
}

NginxIngressStatus defines the observed state of NginxIngress +k8s:openapi-gen=true

func (*NginxIngressStatus) DeepCopy

func (in *NginxIngressStatus) DeepCopy() *NginxIngressStatus

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

func (*NginxIngressStatus) DeepCopyInto

func (in *NginxIngressStatus) DeepCopyInto(out *NginxIngressStatus)

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

type StatsSpec

type StatsSpec struct {
	Port int32 `json:"port"` // required
}

func (*StatsSpec) DeepCopy

func (in *StatsSpec) DeepCopy() *StatsSpec

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

func (*StatsSpec) DeepCopyInto

func (in *StatsSpec) DeepCopyInto(out *StatsSpec)

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