mirror of
https://github.com/lingble/talos.git
synced 2025-12-05 15:15:35 +00:00
feat(init): Add initToken parameter to userdata (#664)
Signed-off-by: Brad Beam <brad.beam@talos-systems.com>
This commit is contained in:
@@ -56,7 +56,7 @@ func testUDServer() *httptest.Server {
|
||||
ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
count++
|
||||
log.Printf("Request %d\n", count)
|
||||
if count == 4 {
|
||||
if count == 3 {
|
||||
// nolint: errcheck
|
||||
w.Write([]byte(testConfig))
|
||||
return
|
||||
@@ -97,6 +97,7 @@ services:
|
||||
init:
|
||||
cni: flannel
|
||||
kubeadm:
|
||||
initToken: 528d1ad6-3485-49ad-94cd-0f44a35877ac
|
||||
certificateKey: 'test'
|
||||
configuration: |
|
||||
apiVersion: kubeadm.k8s.io/v1beta1
|
||||
@@ -225,4 +226,5 @@ const kubeadmConfig = `configuration: |
|
||||
networkName: ""
|
||||
sourceVip: ""
|
||||
certificateKey: test
|
||||
initToken: 528d1ad6-3485-49ad-94cd-0f44a35877ac
|
||||
`
|
||||
|
||||
Reference in New Issue
Block a user