Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the runtime v1alpha1 API group +kubebuilder:object:generate=true +groupName=runtime.kwasm.sh
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "runtime.kwasm.sh", 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 AnonHTTPSpec ¶
type AnonHTTPSpec struct {
Location string `json:"location"`
}
func (*AnonHTTPSpec) DeepCopy ¶
func (in *AnonHTTPSpec) DeepCopy() *AnonHTTPSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AnonHTTPSpec.
func (*AnonHTTPSpec) DeepCopyInto ¶
func (in *AnonHTTPSpec) DeepCopyInto(out *AnonHTTPSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FetchStrategy ¶
type FetchStrategy struct { Type string `json:"type"` AnonHTTP AnonHTTPSpec `json:"anonHttp"` }
func (*FetchStrategy) DeepCopy ¶
func (in *FetchStrategy) DeepCopy() *FetchStrategy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FetchStrategy.
func (*FetchStrategy) DeepCopyInto ¶
func (in *FetchStrategy) DeepCopyInto(out *FetchStrategy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RollingSpec ¶
type RollingSpec struct {
MaxUpdate int `json:"maxUpdate"`
}
func (*RollingSpec) DeepCopy ¶
func (in *RollingSpec) DeepCopy() *RollingSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RollingSpec.
func (*RollingSpec) DeepCopyInto ¶
func (in *RollingSpec) DeepCopyInto(out *RollingSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RolloutStrategy ¶
type RolloutStrategy struct { Type RolloutStrategyType `json:"type"` Rolling RollingSpec `json:"rolling,omitempty"` }
func (*RolloutStrategy) DeepCopy ¶
func (in *RolloutStrategy) DeepCopy() *RolloutStrategy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RolloutStrategy.
func (*RolloutStrategy) DeepCopyInto ¶
func (in *RolloutStrategy) DeepCopyInto(out *RolloutStrategy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RolloutStrategyType ¶
type RolloutStrategyType string
+kubebuilder:validation:Enum=rolling;recreate
const ( RolloutStrategyTypeRolling RolloutStrategyType = "rolling" RolloutStrategyTypeRecreate RolloutStrategyType = "recreate" )
type RuntimeClassSpec ¶
func (*RuntimeClassSpec) DeepCopy ¶
func (in *RuntimeClassSpec) DeepCopy() *RuntimeClassSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuntimeClassSpec.
func (*RuntimeClassSpec) DeepCopyInto ¶
func (in *RuntimeClassSpec) DeepCopyInto(out *RuntimeClassSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Shim ¶
type Shim struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ShimSpec `json:"spec,omitempty"` Status ShimStatus `json:"status,omitempty"` }
+kubebuilder:object:root=true +kubebuilder:resource:path=shims,scope=Cluster +kubebuilder:printcolumn:JSONPath=".spec.runtimeClass.name",name=RuntimeClass,type=string +kubebuilder:printcolumn:JSONPath=".status.nodesReady",name=Ready,type=integer +kubebuilder:printcolumn:JSONPath=".status.nodes",name=Nodes,type=integer Shim is the Schema for the shims API
func (*Shim) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Shim.
func (*Shim) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Shim) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ShimList ¶
type ShimList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Shim `json:"items"` }
ShimList contains a list of Shim
func (*ShimList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ShimList.
func (*ShimList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ShimList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ShimSpec ¶
type ShimSpec struct { NodeSelector map[string]string `json:"nodeSelector,omitempty"` FetchStrategy FetchStrategy `json:"fetchStrategy"` RuntimeClass RuntimeClassSpec `json:"runtimeClass"` RolloutStrategy RolloutStrategy `json:"rolloutStrategy"` }
ShimSpec defines the desired state of Shim
func (*ShimSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ShimSpec.
func (*ShimSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ShimStatus ¶
type ShimStatus struct { Conditions []metav1.Condition `json:"conditions,omitempty"` NodeCount int `json:"nodes"` NodeReadyCount int `json:"nodesReady"` }
ShimStatus defines the observed state of Shim +operator-sdk:csv:customresourcedefinitions:type=status
func (*ShimStatus) DeepCopy ¶
func (in *ShimStatus) DeepCopy() *ShimStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ShimStatus.
func (*ShimStatus) DeepCopyInto ¶
func (in *ShimStatus) DeepCopyInto(out *ShimStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.