v1beta1

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package v1beta1 contains API Schema definitions for the web v1beta1 API group +kubebuilder:object:generate=true +groupName=web.kwite.site

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "web.kwite.site", 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
)
View Source
var (
	ControllerName = "Kwite"
)

Functions

This section is empty.

Types

type Kwite

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

	Spec   KwiteSpec   `json:"spec,omitempty"`
	Status KwiteStatus `json:"status,omitempty"`
}

Kwite is the Schema for the kwites API

func (*Kwite) DeepCopy

func (in *Kwite) DeepCopy() *Kwite

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

func (*Kwite) DeepCopyInto

func (in *Kwite) DeepCopyInto(out *Kwite)

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

func (*Kwite) DeepCopyObject

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

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

func (*Kwite) Default

func (r *Kwite) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*Kwite) SetupWebhookWithManager

func (r *Kwite) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Kwite) ValidateCreate

func (r *Kwite) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Kwite) ValidateDelete

func (r *Kwite) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Kwite) ValidateUpdate

func (r *Kwite) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type KwiteList

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

KwiteList contains a list of Kwite

func (*KwiteList) DeepCopy

func (in *KwiteList) DeepCopy() *KwiteList

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

func (*KwiteList) DeepCopyInto

func (in *KwiteList) DeepCopyInto(out *KwiteList)

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

func (*KwiteList) DeepCopyObject

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

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

type KwiteSpec

type KwiteSpec struct {

	// The URL to handle in the kwite instances, default "/"
	Url string `json:"url"`

	// Whether the url is public (i.e., needs an ingress), default false
	// +optional
	Public *bool `json:"public,omitempty"`

	// container image to use for the http(s) server, default is kwite:latest
	// +optional
	Image string `json:"image"`

	// port on which to expose the Url, default is 8080
	// +optional
	Port int `json:"port,omitempty"`

	// The minimum number of page hander replicas, default is 1 (one)
	// +optional
	MinReplicas int `json:"minreplicas,omitempty"`

	// The maximum number of page hander replicas, default is 1 (one)
	// +optional
	MaxReplicas int `json:"maxreplicas,omitempty"`

	// Memory Resource request (e.g., "128Mi"), defaults to "64Mi"
	// +optional
	Memory string `json:"memory"`

	// CPU Resource request (e.g., "200m"), defaults to "200m"
	// +optional
	CPU string `json:"cpu"`

	// HorizontalPodAutoscaler CPU target utilization per pod, default is 80
	// +optional
	TargetCpu int `json:"targetcpu,omitempty"`

	// Image pull secrets name for container pulls.
	// +optional
	ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets"`

	// The security context for kwite instance Pods, default is no specified context
	// +optional
	SecurityContext *corev1.SecurityContext `json:"securityContext,omitempty"`

	// The template to execute for the kwite instances
	Template string `json:"template"`

	// The template to execute for the readiness probes
	Ready string `json:"ready"`

	// The template to execute for aliveness probes
	Alive string `json:"alive"`
}

KwiteSpec defines the desired state of Kwite

func (*KwiteSpec) DeepCopy

func (in *KwiteSpec) DeepCopy() *KwiteSpec

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

func (*KwiteSpec) DeepCopyInto

func (in *KwiteSpec) DeepCopyInto(out *KwiteSpec)

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

type KwiteStatus

type KwiteStatus struct {

	// The service address on which the URL is exposed
	Address string `json:"address,omitempty"`

	// The number of ready replicas HPA is requesting
	ReadyReplicas int `json:"readyReplicas,omitempty"`

	// The total number of replicas HPA is requesting
	DesiredReplicas int `json:"desiredReplicas,omitempty"`

	// True if the minimum number of replicas are ready
	Ready bool `json:"ready"`
}

KwiteStatus defines the observed state of Kwite

func (*KwiteStatus) DeepCopy

func (in *KwiteStatus) DeepCopy() *KwiteStatus

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

func (*KwiteStatus) DeepCopyInto

func (in *KwiteStatus) DeepCopyInto(out *KwiteStatus)

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