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 Hugepage
- type HugepageList
- type HugepageSpec
- type HugepageStatus
- type KsmdPhase
- type KsmdRun
- type Ksmtuned
- type KsmtunedList
- type KsmtunedMode
- type KsmtunedParameters
- type KsmtunedSpec
- type KsmtunedStatus
- type LonghornConfig
- type Meminfo
- type NTPConfig
- type NodeConfig
- type NodeConfigList
- type NodeConfigSpec
- type NodeConfigStatus
- type Rollout
- type THPConfig
- type THPDefrag
- type THPEnabled
- type THPShmemEnabled
Constants ¶
This section is empty.
Variables ¶
var ( CloudInitResourceName = "cloudinits" HugepageResourceName = "hugepages" 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 Hugepage ¶ added in v1.7.0
type Hugepage struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec HugepageSpec `json:"spec"`
Status HugepageStatus `json:"status,omitempty"`
}
func NewHugepage ¶ added in v1.7.0
func (*Hugepage) DeepCopy ¶ added in v1.7.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Hugepage.
func (*Hugepage) DeepCopyInto ¶ added in v1.7.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Hugepage) DeepCopyObject ¶ added in v1.7.0
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type HugepageList ¶ added in v1.7.0
type HugepageList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata"`
Items []Hugepage `json:"items"`
}
HugepageList is a list of Hugepage resources
func (*HugepageList) DeepCopy ¶ added in v1.7.0
func (in *HugepageList) DeepCopy() *HugepageList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HugepageList.
func (*HugepageList) DeepCopyInto ¶ added in v1.7.0
func (in *HugepageList) DeepCopyInto(out *HugepageList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*HugepageList) DeepCopyObject ¶ added in v1.7.0
func (in *HugepageList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type HugepageSpec ¶ added in v1.7.0
type HugepageSpec struct {
// +optional
// +kubebuilder:validation:Optional
Transparent THPConfig `json:"transparent,omitempty"`
}
func (*HugepageSpec) DeepCopy ¶ added in v1.7.0
func (in *HugepageSpec) DeepCopy() *HugepageSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HugepageSpec.
func (*HugepageSpec) DeepCopyInto ¶ added in v1.7.0
func (in *HugepageSpec) DeepCopyInto(out *HugepageSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HugepageStatus ¶ added in v1.7.0
type HugepageStatus struct {
// +optional
// +kubebuilder:validation:Optional
Transparent THPConfig `json:"transparent,omitempty"`
// +optional
// +kubebuilder:validation:Optional
Meminfo Meminfo `json:"meminfo"`
}
func (*HugepageStatus) DeepCopy ¶ added in v1.7.0
func (in *HugepageStatus) DeepCopy() *HugepageStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HugepageStatus.
func (*HugepageStatus) DeepCopyInto ¶ added in v1.7.0
func (in *HugepageStatus) DeepCopyInto(out *HugepageStatus)
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 Meminfo ¶ added in v1.7.0
type Meminfo struct {
// +optional
// +kubebuilder:default:=0
AnonHugePages uint64 `json:"anonHugePages"`
// +optional
// +kubebuilder:default:=0
ShmemHugePages uint64 `json:"shmemHugePages"`
// +optional
// +kubebuilder:default:=0
HugePagesTotal uint64 `json:"hugePagesTotal"`
// +optional
// +kubebuilder:default:=0
HugePagesFree uint64 `json:"hugePagesFree"`
// +optional
// +kubebuilder:default:=0
HugePagesRsvd uint64 `json:"hugePagesRsvd"`
// +optional
// +kubebuilder:default:=0
HugePagesSurp uint64 `json:"hugePagesSurp"`
// +optional
// +kubebuilder:default:=0
HugepageSize uint64 `json:"hugepageSize"`
}
func (*Meminfo) DeepCopy ¶ added in v1.7.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Meminfo.
func (*Meminfo) DeepCopyInto ¶ added in v1.7.0
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.
type THPConfig ¶ added in v1.7.0
type THPConfig struct {
// +optional
// +kubebuilder:validation:Enum=always;madvise;never
// +kubebuilder:default=always
Enabled THPEnabled `json:"enabled"`
// +optional
// +kubebuilder:validation:Enum=always;within_size;advise;never;deny;force
// +kubebuilder:default=never
ShmemEnabled THPShmemEnabled `json:"shmemEnabled"`
// +optional
// +kubebuilder:validation:Enum=always;defer;defer+madvise;madvise;never
// +kubebuilder:default=defer
Defrag THPDefrag `json:"defrag"`
}
func (*THPConfig) DeepCopy ¶ added in v1.7.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new THPConfig.
func (*THPConfig) DeepCopyInto ¶ added in v1.7.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type THPEnabled ¶ added in v1.7.0
type THPEnabled string
const ( THPEnabledAlways THPEnabled = "always" THPEnabledMadvise THPEnabled = "madvise" THPEnabledNever THPEnabled = "never" )
type THPShmemEnabled ¶ added in v1.7.0
type THPShmemEnabled string
const ( THPShmemEnabledAlways THPShmemEnabled = "always" THPShmemEnabledWithinSize THPShmemEnabled = "within_size" THPShmemEnabledAdvise THPShmemEnabled = "advise" THPShmemEnabledNever THPShmemEnabled = "never" THPShmemEnabledDeny THPShmemEnabled = "deny" THPShmemEnabledForce THPShmemEnabled = "force" )