Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Library based ssh #1209

Merged
merged 8 commits into from
Jul 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cluster-provision/gocli/cmd/cmd_suite_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package cmd_test
package cmd

import (
"testing"
Expand Down
54 changes: 54 additions & 0 deletions cluster-provision/gocli/cmd/nodesconfig/nodeconfig.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
package nodesconfig

// NodeLinuxConfig type holds the config params that a node can have for its linux system
type NodeLinuxConfig struct {
NodeIdx int
K8sVersion string
FipsEnabled bool
DockerProxy string
EtcdInMemory bool
EtcdSize string
SingleStack bool
EnableAudit bool
GpuAddress string
Realtime bool
PSA bool
}

// NodeK8sConfig type holds the config k8s options for kubevirt cluster
type NodeK8sConfig struct {
Ceph bool
Prometheus bool
Alertmanager bool
Grafana bool
Istio bool
NfsCsi bool
}

func NewNodeK8sConfig(ceph, prometheus, alertmanager, grafana, istio, nfsCsi bool) *NodeK8sConfig {
return &NodeK8sConfig{
Ceph: ceph,
Prometheus: prometheus,
Alertmanager: alertmanager,
Grafana: grafana,
Istio: istio,
NfsCsi: nfsCsi,
}
}

func NewNodeLinuxConfig(nodeIdx int, k8sVersion, dockerProxy, etcdSize, gpuAddress string,
fipsEnabled, etcdInMemory, singleStack, enableAudit, realtime, psa bool) *NodeLinuxConfig {
return &NodeLinuxConfig{
NodeIdx: nodeIdx,
K8sVersion: k8sVersion,
FipsEnabled: fipsEnabled,
DockerProxy: dockerProxy,
EtcdInMemory: etcdInMemory,
EtcdSize: etcdSize,
SingleStack: singleStack,
EnableAudit: enableAudit,
GpuAddress: gpuAddress,
Realtime: realtime,
PSA: psa,
}
}
Loading