37 Star 411 Fork 76

GVPrancher/rancher

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
stage.go 448 Bytes
Copy Edit Raw Blame History
Darren Shepherd authored 2018-03-31 03:57 . Refactor RKE provisioning
package rkecerts
import (
"os"
"github.com/rancher/types/apis/management.cattle.io/v3"
)
func Stage(rkeConfig *v3.RancherKubernetesEngineConfig) (*Bundle, error) {
bundle, err := LoadLocal()
if os.IsNotExist(err) {
bundle, err = Generate(rkeConfig)
if err != nil {
return nil, err
}
if err := bundle.SaveLocal(); err != nil {
return nil, err
}
} else if err != nil {
return nil, err
}
return bundle, bundle.Explode()
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/rancher/rancher.git
git@gitee.com:rancher/rancher.git
rancher
rancher
rancher
v2.1.12-rc2

Search

0d507c66 1850385 C8b1a773 1850385