-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into k8s-1.30-provider-slim-s390x
Some conflicts mainly due to Opts package PR 1217 are resolved manually during this merge Signed-off-by: chandramerla <[email protected]>
- Loading branch information
Showing
3,821 changed files
with
1,294,463 additions
and
159,197 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,197 @@ | ||
package nodesconfig | ||
|
||
type LinuxConfigFunc func(n *NodeLinuxConfig) | ||
|
||
type K8sConfigFunc func(n *NodeK8sConfig) | ||
|
||
func WithNodeIdx(nodeIdx int) LinuxConfigFunc { | ||
return func(n *NodeLinuxConfig) { | ||
n.NodeIdx = nodeIdx | ||
} | ||
} | ||
|
||
func WithK8sVersion(k8sVersion string) LinuxConfigFunc { | ||
return func(n *NodeLinuxConfig) { | ||
n.K8sVersion = k8sVersion | ||
} | ||
} | ||
|
||
func WithFipsEnabled(fipsEnabled bool) LinuxConfigFunc { | ||
return func(n *NodeLinuxConfig) { | ||
n.FipsEnabled = fipsEnabled | ||
} | ||
} | ||
|
||
func WithDockerProxy(dockerProxy string) LinuxConfigFunc { | ||
return func(n *NodeLinuxConfig) { | ||
n.DockerProxy = dockerProxy | ||
} | ||
} | ||
|
||
func WithEtcdInMemory(etcdInMemory bool) LinuxConfigFunc { | ||
return func(n *NodeLinuxConfig) { | ||
n.EtcdInMemory = etcdInMemory | ||
} | ||
} | ||
|
||
func WithEtcdSize(etcdSize string) LinuxConfigFunc { | ||
return func(n *NodeLinuxConfig) { | ||
n.EtcdSize = etcdSize | ||
} | ||
} | ||
|
||
func WithSingleStack(singleStack bool) LinuxConfigFunc { | ||
return func(n *NodeLinuxConfig) { | ||
n.SingleStack = singleStack | ||
} | ||
} | ||
|
||
func WithEnableAudit(enableAudit bool) LinuxConfigFunc { | ||
return func(n *NodeLinuxConfig) { | ||
n.EnableAudit = enableAudit | ||
} | ||
} | ||
|
||
func WithGpuAddress(gpuAddress string) LinuxConfigFunc { | ||
return func(n *NodeLinuxConfig) { | ||
n.GpuAddress = gpuAddress | ||
} | ||
} | ||
|
||
func WithRealtime(realtime bool) LinuxConfigFunc { | ||
return func(n *NodeLinuxConfig) { | ||
n.Realtime = realtime | ||
} | ||
} | ||
|
||
func WithPSA(psa bool) LinuxConfigFunc { | ||
return func(n *NodeLinuxConfig) { | ||
n.PSA = psa | ||
} | ||
} | ||
|
||
func WithKsm(ksm bool) LinuxConfigFunc { | ||
return func(n *NodeLinuxConfig) { | ||
n.KsmEnabled = ksm | ||
} | ||
} | ||
|
||
func WithSwap(swap bool) LinuxConfigFunc { | ||
return func(n *NodeLinuxConfig) { | ||
n.SwapEnabled = swap | ||
} | ||
} | ||
|
||
func WithKsmEnabled(ksmEnabled bool) LinuxConfigFunc { | ||
return func(n *NodeLinuxConfig) { | ||
n.KsmEnabled = ksmEnabled | ||
} | ||
} | ||
|
||
func WithSwapEnabled(swapEnabled bool) LinuxConfigFunc { | ||
return func(n *NodeLinuxConfig) { | ||
n.SwapEnabled = swapEnabled | ||
} | ||
} | ||
|
||
func WithKsmPageCount(ksmPageCount int) LinuxConfigFunc { | ||
return func(n *NodeLinuxConfig) { | ||
n.KsmPageCount = ksmPageCount | ||
} | ||
} | ||
|
||
func WithKsmScanInterval(ksmScanInterval int) LinuxConfigFunc { | ||
return func(n *NodeLinuxConfig) { | ||
n.KsmScanInterval = ksmScanInterval | ||
} | ||
} | ||
|
||
func WithSwapiness(swapiness int) LinuxConfigFunc { | ||
return func(n *NodeLinuxConfig) { | ||
n.Swappiness = swapiness | ||
} | ||
} | ||
|
||
func WithUnlimitedSwap(unlimitedSwap bool) LinuxConfigFunc { | ||
return func(n *NodeLinuxConfig) { | ||
n.UnlimitedSwap = unlimitedSwap | ||
} | ||
} | ||
|
||
func WithSwapSize(swapSize int) LinuxConfigFunc { | ||
return func(n *NodeLinuxConfig) { | ||
n.SwapSize = swapSize | ||
} | ||
} | ||
|
||
func WithCeph(ceph bool) K8sConfigFunc { | ||
return func(n *NodeK8sConfig) { | ||
n.Ceph = ceph | ||
} | ||
} | ||
|
||
func WithPrometheus(prometheus bool) K8sConfigFunc { | ||
return func(n *NodeK8sConfig) { | ||
n.Prometheus = prometheus | ||
} | ||
} | ||
|
||
func WithAlertmanager(alertmanager bool) K8sConfigFunc { | ||
return func(n *NodeK8sConfig) { | ||
n.Alertmanager = alertmanager | ||
} | ||
} | ||
|
||
func WithGrafana(grafana bool) K8sConfigFunc { | ||
return func(n *NodeK8sConfig) { | ||
n.Grafana = grafana | ||
} | ||
} | ||
|
||
func WithIstio(istio bool) K8sConfigFunc { | ||
return func(n *NodeK8sConfig) { | ||
n.Istio = istio | ||
} | ||
} | ||
|
||
func WithNfsCsi(nfsCsi bool) K8sConfigFunc { | ||
return func(n *NodeK8sConfig) { | ||
n.NfsCsi = nfsCsi | ||
} | ||
} | ||
|
||
func WithCnao(cnao bool) K8sConfigFunc { | ||
return func(n *NodeK8sConfig) { | ||
n.CNAO = cnao | ||
} | ||
} | ||
|
||
func WithMultus(multus bool) K8sConfigFunc { | ||
return func(n *NodeK8sConfig) { | ||
n.Multus = multus | ||
} | ||
} | ||
|
||
func WithCdi(cdi bool) K8sConfigFunc { | ||
return func(n *NodeK8sConfig) { | ||
n.CDI = cdi | ||
} | ||
} | ||
|
||
func WithCdiVersion(cdiVersion string) K8sConfigFunc { | ||
return func(n *NodeK8sConfig) { | ||
n.CDIVersion = cdiVersion | ||
} | ||
} | ||
|
||
func WithAAQ(aaq bool) K8sConfigFunc { | ||
return func(n *NodeK8sConfig) { | ||
n.AAQ = aaq | ||
} | ||
} | ||
|
||
func WithAAQVersion(aaqVersion string) K8sConfigFunc { | ||
return func(n *NodeK8sConfig) { | ||
n.AAQVersion = aaqVersion | ||
} | ||
} |
Oops, something went wrong.