Skip to content

Commit 8b6ec82

Browse files
bk201guangbochen
authored andcommitted
Change local-rke2-state secret type
Signed-off-by: Kiefer Chang <[email protected]>
1 parent daf3859 commit 8b6ec82

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

pkg/resources/resources.go

+11-5
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,21 @@ import (
88
"strings"
99

1010
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"
1611
"github.com/rancher/system-agent/pkg/applyinator"
1712
"github.com/rancher/wrangler/pkg/randomtoken"
1813
"github.com/rancher/wrangler/pkg/yaml"
1914
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
2015
"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"
2126
)
2227

2328
func writeCattleID(id string) error {
@@ -113,6 +118,7 @@ func ToBootstrapFile(config *config.Config, path string) (*applyinator.File, err
113118
"name": "local-rke-state",
114119
"namespace": "fleet-local",
115120
},
121+
"type": localRKEStateSecretType,
116122
"data": map[string]interface{}{
117123
"serverToken": []byte(token),
118124
"agentToken": []byte(token),

0 commit comments

Comments
 (0)