v1alpha1

package
v0.0.0-...-ef57656 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the operator v1alpha1 API group +kubebuilder:object:generate=true +groupName=operator.hedui.com

Index

Constants

View Source
const (
	ReasonCRNotAvailable          = "OperatorResourceNotAvailable"
	ReasonDeploymentNotAvailable  = "OperandDeploymentNotAvailable"
	ReasonOperandDeploymentFailed = "OperandDeploymentFailed"
	ReasonSucceeded               = "OperatorSucceeded"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "operator.hedui.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 NginxOperator

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

	Spec   NginxOperatorSpec   `json:"spec,omitempty"`
	Status NginxOperatorStatus `json:"status,omitempty"`
}

NginxOperator is the Schema for the nginxoperators API

func (*NginxOperator) DeepCopy

func (in *NginxOperator) DeepCopy() *NginxOperator

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

func (*NginxOperator) DeepCopyInto

func (in *NginxOperator) DeepCopyInto(out *NginxOperator)

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

func (*NginxOperator) DeepCopyObject

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

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

type NginxOperatorList

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

NginxOperatorList contains a list of NginxOperator

func (*NginxOperatorList) DeepCopy

func (in *NginxOperatorList) DeepCopy() *NginxOperatorList

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

func (*NginxOperatorList) DeepCopyInto

func (in *NginxOperatorList) DeepCopyInto(out *NginxOperatorList)

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

func (*NginxOperatorList) DeepCopyObject

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

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

type NginxOperatorSpec

type NginxOperatorSpec struct {

	// Port is the port number to expose on the Nginx Pod
	// +kubebuilder:default=8080
	// +kubebuilder:validation:Required
	Port *int32 `json:"port,omitempty"`

	// Replicas is the number of deployment replicas to scale
	Replicas *int32 `json:"replicas,omitempty"`

	// ForceRedploy is any string, modifying this field
	// instructs  the Operator to redeploy the Operand
	ForceRedploy string `json:"forceRedploy,omitempty"`
}

NginxOperatorSpec defines the desired state of NginxOperator

func (*NginxOperatorSpec) DeepCopy

func (in *NginxOperatorSpec) DeepCopy() *NginxOperatorSpec

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

func (*NginxOperatorSpec) DeepCopyInto

func (in *NginxOperatorSpec) DeepCopyInto(out *NginxOperatorSpec)

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

type NginxOperatorStatus

type NginxOperatorStatus struct {

	// Conditions is the list of status condition updates
	Conditions []metav1.Condition `json:"conditions"`
}

NginxOperatorStatus defines the observed state of NginxOperator

func (*NginxOperatorStatus) DeepCopy

func (in *NginxOperatorStatus) DeepCopy() *NginxOperatorStatus

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

func (*NginxOperatorStatus) DeepCopyInto

func (in *NginxOperatorStatus) DeepCopyInto(out *NginxOperatorStatus)

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