Skip to content

Commit

Permalink
Add bootstrap config test
Browse files Browse the repository at this point in the history
  • Loading branch information
bschimke95 committed Jun 11, 2024
1 parent 9b67c18 commit 687bb19
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions src/k8s/api/v1/bootstrap_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,20 @@ func TestBootstrapConfigToMicrocluster(t *testing.T) {
},
CloudProvider: utils.Pointer("external"),
},
PodCIDR: utils.Pointer("10.100.0.0/16"),
ServiceCIDR: utils.Pointer("10.200.0.0/16"),
DisableRBAC: utils.Pointer(false),
SecurePort: utils.Pointer(6443),
K8sDqlitePort: utils.Pointer(9090),
DatastoreType: utils.Pointer("k8s-dqlite"),
ExtraSANs: []string{"custom.kubernetes"},
PodCIDR: utils.Pointer("10.100.0.0/16"),
ServiceCIDR: utils.Pointer("10.200.0.0/16"),
DisableRBAC: utils.Pointer(false),
SecurePort: utils.Pointer(6443),
K8sDqlitePort: utils.Pointer(9090),
DatastoreType: utils.Pointer("k8s-dqlite"),
ExtraSANs: []string{"custom.kubernetes"},
ExtraNodeKubeAPIServerArgs: map[string]*string{"--extra-kube-apiserver-arg": utils.Pointer("extra-kube-apiserver-value")},
ExtraNodeKubeControllerManagerArgs: map[string]*string{"--extra-kube-controller-manager-arg": utils.Pointer("extra-kube-controller-manager-value")},
ExtraNodeKubeSchedulerArgs: map[string]*string{"--extra-kube-scheduler-arg": utils.Pointer("extra-kube-scheduler-value")},
ExtraNodeKubeProxyArgs: map[string]*string{"--extra-kube-proxy-arg": utils.Pointer("extra-kube-proxy-value")},
ExtraNodeKubeletArgs: map[string]*string{"--extra-kubelet-arg": utils.Pointer("extra-kubelet-value")},
ExtraNodeContainerdArgs: map[string]*string{"--extra-containerd-arg": utils.Pointer("extra-containerd-value")},
ExtraNodeK8sDqliteArgs: map[string]*string{"--extra-k8s-dqlite-arg": utils.Pointer("extra-k8s-dqlite-value")},
}

microclusterConfig, err := cfg.ToMicrocluster()
Expand Down

0 comments on commit 687bb19

Please sign in to comment.