Documentation ¶
Overview ¶
+k8s:deepcopy-gen=package +groupName=node.harvesterhci.io
+k8s:deepcopy-gen=package +groupName=node.harvesterhci.io
+k8s:deepcopy-gen=package +groupName=node.harvesterhci.io
Index ¶
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type AppliedConfigAnnotation
- type CloudInit
- type CloudInitList
- type CloudInitSpec
- type CloudInitStatus
- type ConditionTypeCloudInit
- type ConfigConditionType
- type ConfigStatus
- type KsmdPhase
- type KsmdRun
- type Ksmtuned
- type KsmtunedList
- type KsmtunedMode
- type KsmtunedParameters
- type KsmtunedSpec
- type KsmtunedStatus
- type LonghornConfig
- type NTPConfig
- type NodeConfig
- type NodeConfigList
- type NodeConfigSpec
- type NodeConfigStatus
- type Rollout
Constants ¶
This section is empty.
Variables ¶
var ( CloudInitResourceName = "cloudinits" KsmtunedResourceName = "ksmtuneds" NodeConfigResourceName = "nodeconfigs" )
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: node.GroupName, Version: "v1beta1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type AppliedConfigAnnotation ¶ added in v0.1.5
type AppliedConfigAnnotation struct {
NTPServers string `json:"ntpServers,omitempty"`
}
func (*AppliedConfigAnnotation) DeepCopy ¶ added in v0.1.5
func (in *AppliedConfigAnnotation) DeepCopy() *AppliedConfigAnnotation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppliedConfigAnnotation.
func (*AppliedConfigAnnotation) DeepCopyInto ¶ added in v0.1.5
func (in *AppliedConfigAnnotation) DeepCopyInto(out *AppliedConfigAnnotation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CloudInit ¶ added in v0.1.9
type CloudInit struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec CloudInitSpec `json:"spec"` Status CloudInitStatus `json:"status,omitempty"` }
func NewCloudInit ¶ added in v0.1.9
func (*CloudInit) DeepCopy ¶ added in v0.1.9
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudInit.
func (*CloudInit) DeepCopyInto ¶ added in v0.1.9
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CloudInit) DeepCopyObject ¶ added in v0.1.9
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CloudInitList ¶ added in v0.1.9
type CloudInitList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []CloudInit `json:"items"` }
CloudInitList is a list of CloudInit resources
func (*CloudInitList) DeepCopy ¶ added in v0.1.9
func (in *CloudInitList) DeepCopy() *CloudInitList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudInitList.
func (*CloudInitList) DeepCopyInto ¶ added in v0.1.9
func (in *CloudInitList) DeepCopyInto(out *CloudInitList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CloudInitList) DeepCopyObject ¶ added in v0.1.9
func (in *CloudInitList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CloudInitSpec ¶ added in v0.1.9
type CloudInitSpec struct { MatchSelector map[string]string `json:"matchSelector"` Filename string `json:"filename"` Contents string `json:"contents"` Paused bool `json:"paused,omitempty"` }
func (*CloudInitSpec) DeepCopy ¶ added in v0.1.9
func (in *CloudInitSpec) DeepCopy() *CloudInitSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudInitSpec.
func (*CloudInitSpec) DeepCopyInto ¶ added in v0.1.9
func (in *CloudInitSpec) DeepCopyInto(out *CloudInitSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CloudInitStatus ¶ added in v0.1.9
func (*CloudInitStatus) DeepCopy ¶ added in v0.1.9
func (in *CloudInitStatus) DeepCopy() *CloudInitStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudInitStatus.
func (*CloudInitStatus) DeepCopyInto ¶ added in v0.1.9
func (in *CloudInitStatus) DeepCopyInto(out *CloudInitStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConditionTypeCloudInit ¶ added in v0.1.9
type ConditionTypeCloudInit string
const ( CloudInitFilePresent ConditionTypeCloudInit = "Present" CloudInitApplicable ConditionTypeCloudInit = "Applicable" CloudInitOutOfSync ConditionTypeCloudInit = "OutOfSync" )
type ConfigConditionType ¶ added in v0.1.5
type ConfigConditionType string
const ( // first time when we create the config, is "WaitApplied" ConfigWaitApplied ConfigConditionType = "WaitApplied" // when the config is applied, is "Applied" ConfigApplied ConfigConditionType = "Applied" // when the applied config is modified, is "Modified" ConfigModified ConfigConditionType = "Modified" )
type ConfigStatus ¶ added in v0.1.5
type ConfigStatus struct { Type ConfigConditionType `json:"type"` Status corev1.ConditionStatus `json:"status"` // +nullable LastProbeTime metav1.Time `json:"lastProbeTime,omitempty"` // +nullable LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"` Reason string `json:"reason,omitempty"` Message string `json:"message,omitempty"` }
func (*ConfigStatus) DeepCopy ¶ added in v0.1.5
func (in *ConfigStatus) DeepCopy() *ConfigStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigStatus.
func (*ConfigStatus) DeepCopyInto ¶ added in v0.1.5
func (in *ConfigStatus) DeepCopyInto(out *ConfigStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KsmdPhase ¶
type KsmdPhase string
const ( // KsmdStopped stop ksmd from running but keep merged pages, KsmdStopped KsmdPhase = "Stopped" KsmdRunning KsmdPhase = "Running" // KsmdPruned stop ksmd and unmerge all pages currently merged, but leave mergeable areas registered for next run. KsmdPruned KsmdPhase = "Pruned" KsmdUndefined KsmdPhase = "Undefined" )
type Ksmtuned ¶
type Ksmtuned struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec KsmtunedSpec `json:"spec"` Status KsmtunedStatus `json:"status,omitempty"` }
func NewKsmtuned ¶
func (*Ksmtuned) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Ksmtuned.
func (*Ksmtuned) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Ksmtuned) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type KsmtunedList ¶
type KsmtunedList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Ksmtuned `json:"items"` }
KsmtunedList is a list of Ksmtuned resources
func (*KsmtunedList) DeepCopy ¶
func (in *KsmtunedList) DeepCopy() *KsmtunedList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KsmtunedList.
func (*KsmtunedList) DeepCopyInto ¶
func (in *KsmtunedList) DeepCopyInto(out *KsmtunedList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KsmtunedList) DeepCopyObject ¶
func (in *KsmtunedList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type KsmtunedMode ¶
type KsmtunedMode string
KsmtunedMode defines the mode used by ksmtuned
const ( // StandardMode is default mode with new CR. StandardMode KsmtunedMode = "standard" HighMode KsmtunedMode = "high" CustomizedMode KsmtunedMode = "customized" )
type KsmtunedParameters ¶
type KsmtunedParameters struct { SleepMsec uint64 `json:"sleepMsec"` Boost uint `json:"boost"` Decay uint `json:"decay"` MinPages uint `json:"minPages"` MaxPages uint `json:"maxPages"` }
func (*KsmtunedParameters) DeepCopy ¶
func (in *KsmtunedParameters) DeepCopy() *KsmtunedParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KsmtunedParameters.
func (*KsmtunedParameters) DeepCopyInto ¶
func (in *KsmtunedParameters) DeepCopyInto(out *KsmtunedParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KsmtunedSpec ¶
type KsmtunedSpec struct { // +kubebuilder:validation:Required // +kubebuilder:validation:Enum=stop;run;prune // +kubebuilder:default=stop Run KsmdRun `json:"run"` // +kubebuilder:validation:Required // +kubebuilder:validation:Enum=standard;high;customized // +kubebuilder:default=standard Mode KsmtunedMode `json:"mode"` // +kubebuilder:validation:Required // +kubebuilder:validation:Minimum=0 // +kubebuilder:validation:Maximum=100 // +kubebuilder:default=20 ThresCoef uint `json:"thresCoef"` // +kubebuilder:validation:Maximum=1 MergeAcrossNodes uint `json:"mergeAcrossNodes"` KsmtunedParameters KsmtunedParameters `json:"ksmtunedParameters"` }
func (*KsmtunedSpec) DeepCopy ¶
func (in *KsmtunedSpec) DeepCopy() *KsmtunedSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KsmtunedSpec.
func (*KsmtunedSpec) DeepCopyInto ¶
func (in *KsmtunedSpec) DeepCopyInto(out *KsmtunedSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KsmtunedStatus ¶
type KsmtunedStatus struct { // how many more sites are sharing them i.e. how much saved Sharing uint64 `json:"sharing"` Shared uint64 `json:"shared"` Unshared uint64 `json:"unshared"` // how many pages changing too fast to be placed in a tree Volatile uint64 `json:"volatile"` // how many times all mergeable areas have been scanned FullScans uint64 `json:"fullScans"` // the number of KSM pages that hit the max_page_sharing limit StableNodeChains uint64 `json:"stableNodeChains"` // number of duplicated KSM pages StableNodeDups uint64 `json:"stableNodeDups"` // ksmd status // +kubebuilder:validation:Enum=Stopped;Running;Pruned // +kubebuilder:default=Stopped KsmdPhase KsmdPhase `json:"ksmdPhase"` }
func (*KsmtunedStatus) DeepCopy ¶
func (in *KsmtunedStatus) DeepCopy() *KsmtunedStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KsmtunedStatus.
func (*KsmtunedStatus) DeepCopyInto ¶
func (in *KsmtunedStatus) DeepCopyInto(out *KsmtunedStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LonghornConfig ¶ added in v0.3.1
type LonghornConfig struct {
EnableV2DataEngine bool `json:"enableV2DataEngine,omitempty"`
}
func (*LonghornConfig) DeepCopy ¶ added in v0.3.1
func (in *LonghornConfig) DeepCopy() *LonghornConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LonghornConfig.
func (*LonghornConfig) DeepCopyInto ¶ added in v0.3.1
func (in *LonghornConfig) DeepCopyInto(out *LonghornConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NTPConfig ¶ added in v0.1.5
type NTPConfig struct {
NTPServers string `json:"ntpServers"`
}
func (*NTPConfig) DeepCopy ¶ added in v0.1.5
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NTPConfig.
func (*NTPConfig) DeepCopyInto ¶ added in v0.1.5
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NodeConfig ¶ added in v0.1.5
type NodeConfig struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec NodeConfigSpec `json:"spec"` Status NodeConfigStatus `json:"status,omitempty"` }
func NewNodeConfig ¶ added in v0.1.5
func NewNodeConfig(namespace, name string, obj NodeConfig) *NodeConfig
func (*NodeConfig) DeepCopy ¶ added in v0.1.5
func (in *NodeConfig) DeepCopy() *NodeConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeConfig.
func (*NodeConfig) DeepCopyInto ¶ added in v0.1.5
func (in *NodeConfig) DeepCopyInto(out *NodeConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NodeConfig) DeepCopyObject ¶ added in v0.1.5
func (in *NodeConfig) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NodeConfigList ¶ added in v0.1.5
type NodeConfigList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []NodeConfig `json:"items"` }
NodeConfigList is a list of NodeConfig resources
func (*NodeConfigList) DeepCopy ¶ added in v0.1.5
func (in *NodeConfigList) DeepCopy() *NodeConfigList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeConfigList.
func (*NodeConfigList) DeepCopyInto ¶ added in v0.1.5
func (in *NodeConfigList) DeepCopyInto(out *NodeConfigList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NodeConfigList) DeepCopyObject ¶ added in v0.1.5
func (in *NodeConfigList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NodeConfigSpec ¶ added in v0.1.5
type NodeConfigSpec struct { NTPConfig *NTPConfig `json:"ntpConfigs,omitempty"` LonghornConfig *LonghornConfig `json:"longhornConfig,omitempty"` }
func (*NodeConfigSpec) DeepCopy ¶ added in v0.1.5
func (in *NodeConfigSpec) DeepCopy() *NodeConfigSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeConfigSpec.
func (*NodeConfigSpec) DeepCopyInto ¶ added in v0.1.5
func (in *NodeConfigSpec) DeepCopyInto(out *NodeConfigSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NodeConfigStatus ¶ added in v0.1.5
type NodeConfigStatus struct {
NTPConditions []ConfigStatus `json:"ntpConditions,omitempty"`
}
func (*NodeConfigStatus) DeepCopy ¶ added in v0.1.5
func (in *NodeConfigStatus) DeepCopy() *NodeConfigStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeConfigStatus.
func (*NodeConfigStatus) DeepCopyInto ¶ added in v0.1.5
func (in *NodeConfigStatus) DeepCopyInto(out *NodeConfigStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Rollout ¶ added in v0.1.9
func (*Rollout) DeepCopy ¶ added in v0.1.9
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Rollout.
func (*Rollout) DeepCopyInto ¶ added in v0.1.9
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.