@@ -8,16 +8,21 @@ import (
8
8
"strings"
9
9
10
10
v1 "github.com/rancher/rancher/pkg/apis/rke.cattle.io/v1"
11
- "github.com/rancher/rancherd/pkg/config"
12
- "github.com/rancher/rancherd/pkg/images"
13
- "github.com/rancher/rancherd/pkg/kubectl"
14
- "github.com/rancher/rancherd/pkg/self"
15
- "github.com/rancher/rancherd/pkg/versions"
16
11
"github.com/rancher/system-agent/pkg/applyinator"
17
12
"github.com/rancher/wrangler/pkg/randomtoken"
18
13
"github.com/rancher/wrangler/pkg/yaml"
19
14
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
20
15
"k8s.io/apimachinery/pkg/runtime"
16
+
17
+ "github.com/rancher/rancherd/pkg/config"
18
+ "github.com/rancher/rancherd/pkg/images"
19
+ "github.com/rancher/rancherd/pkg/kubectl"
20
+ "github.com/rancher/rancherd/pkg/self"
21
+ "github.com/rancher/rancherd/pkg/versions"
22
+ )
23
+
24
+ const (
25
+ localRKEStateSecretType = "rke.cattle.io/cluster-state"
21
26
)
22
27
23
28
func writeCattleID (id string ) error {
@@ -113,6 +118,7 @@ func ToBootstrapFile(config *config.Config, path string) (*applyinator.File, err
113
118
"name" : "local-rke-state" ,
114
119
"namespace" : "fleet-local" ,
115
120
},
121
+ "type" : localRKEStateSecretType ,
116
122
"data" : map [string ]interface {}{
117
123
"serverToken" : []byte (token ),
118
124
"agentToken" : []byte (token ),
0 commit comments