Skip to content

Commit

Permalink
fix(add-on): change deploy add-on manifests to autok3s folder
Browse files Browse the repository at this point in the history
  • Loading branch information
JacieChao committed Aug 23, 2023
1 parent dd94f34 commit 6c4914f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions pkg/cluster/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,10 @@ func (p *ProviderBase) InitCluster(options interface{}, deployPlugins func() []s
}
}

if _, err := p.execute(&c.MasterNodes[0], []string{fmt.Sprintf("mkdir -p %s", common.K3sManifestsDir)}...); err != nil {
return err
}

if deployPlugins != nil {
// install additional manifests to the current cluster.
extraManifests := deployPlugins()
Expand Down
2 changes: 1 addition & 1 deletion pkg/common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const (
// KubeCfgTempName default temp kube config file name prefix.
KubeCfgTempName = "autok3s-temp-*"
// K3sManifestsDir k3s manifests dir.
K3sManifestsDir = "/var/lib/rancher/k3s/server/manifests"
K3sManifestsDir = "/var/lib/rancher/k3s/server/manifests/autok3s"
// MasterInstanceName master instance name.
MasterInstanceName = "autok3s.%s.master"
// WorkerInstanceName worker instance name.
Expand Down

0 comments on commit 6c4914f

Please # to comment.