mirror of https://github.com/kubernetes/kops.git
fix cniAsset from env var
This commit is contained in:
parent
750d9b0c31
commit
b54724a3ea
|
|
@ -238,7 +238,12 @@ func (c *ApplyClusterCmd) Run() error {
|
|||
return err
|
||||
}
|
||||
|
||||
c.Assets = append(c.Assets, cniAssetHashString+"@"+cniAsset)
|
||||
if cniAssetHashString == "" {
|
||||
glog.Warningf("cniAssetHashString is empty, using cniAsset directly: %s", cniAsset)
|
||||
c.Assets = append(c.Assets, cniAsset)
|
||||
} else {
|
||||
c.Assets = append(c.Assets, cniAssetHashString+"@"+cniAsset)
|
||||
}
|
||||
}
|
||||
|
||||
if needsStaticUtils(cluster, c.InstanceGroups) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue