Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the dhcp v1alpha1 API group +kubebuilder:object:generate=true +groupName=example.thetechnick.ninja
Index ¶
Constants ¶
const (
NginxAvailable = "Available"
)
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "example.thetechnick.ninja", 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 Nginx ¶
type Nginx struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec NginxSpec `json:"spec,omitempty"` // +kubebuilder:default={phase:Pending} Status NginxStatus `json:"status,omitempty"` }
Nginx controls the handover process between two operators. +kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="Operator Version",type="string",JSONPath=".status.operatorVersion" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
func (*Nginx) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Nginx.
func (*Nginx) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Nginx) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NginxList ¶
type NginxList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Nginx `json:"items"` }
NginxList contains a list of Nginxs +kubebuilder:object:root=true
func (*NginxList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NginxList.
func (*NginxList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NginxList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NginxPhase ¶
type NginxPhase string
const ( NginxPhasePending NginxPhase = "Pending" NginxPhaseReady NginxPhase = "Ready" NginxPhaseNotReady NginxPhase = "NotReady" )
Well-known Nginx Phases for printing a Status in kubectl, see deprecation notice in NginxStatus for details.
type NginxSpec ¶
type NginxSpec struct { // Nginx Version to deploy Version string `json:"version"` // How long to sleep before updating .Status. ReconcileDelay metav1.Duration `json:"reconcileDelay"` }
NginxSpec defines the desired state of a Nginx.
func (*NginxSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NginxSpec.
func (*NginxSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NginxStatus ¶
type NginxStatus struct { // The most recent generation observed by the controller. ObservedGeneration int64 `json:"observedGeneration,omitempty"` // Conditions is a list of status conditions ths object is in. Conditions []metav1.Condition `json:"conditions,omitempty"` // DEPRECATED: This field is not part of any API contract // it will go away as soon as kubectl can print conditions! // Human readable status - please use .Conditions from code Phase NginxPhase `json:"phase,omitempty"` // Version of the operator OperatorVersion string `json:"operatorVersion,omitempty"` }
NginxStatus defines the observed state of a Nginx
func (*NginxStatus) DeepCopy ¶
func (in *NginxStatus) DeepCopy() *NginxStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NginxStatus.
func (*NginxStatus) DeepCopyInto ¶
func (in *NginxStatus) DeepCopyInto(out *NginxStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.