Skip to content

Commit 69fafb1

Browse files
committed
fix(*): add NumericTopologyAlignResources to KubeletConfiguration
Signed-off-by: caohe <caohe9603@gmail.com>
1 parent 20c923c commit 69fafb1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pkg/util/native/kubelet.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,14 @@ type KubeletConfiguration struct {
9999
// CPU list rather than the "dynamic" list by systemReserved and kubeReserved.
100100
// This option does not support systemReservedCgroup or kubeReservedCgroup.
101101
ReservedSystemCPUs string `json:"reservedSystemCPUs,omitempty"`
102+
103+
/* the following fields are introduced for compatibility with KubeWharf Kubernetes distro */
104+
105+
// NumericTopologyAlignResources is a list of resources which need to be aligned numa affinity
106+
// in numeric topology policy.
107+
// Default: [cpu, memory]
108+
// +optional
109+
NumericTopologyAlignResources []string `json:"numericTopologyAlignResources,omitempty"`
102110
}
103111

104112
// GetAndUnmarshalForHttps gets data from the given url and unmarshal it into the given struct.

0 commit comments

Comments
 (0)