mirror of https://github.com/kubernetes/kops.git
Merge pull request #2897 from qqshfox/cni_assets_from_env_var
fix cniAsset from env var
This commit is contained in:
commit
87ad3eeaeb
|
|
@ -238,7 +238,12 @@ func (c *ApplyClusterCmd) Run() error {
|
||||||
return err
|
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) {
|
if needsStaticUtils(cluster, c.InstanceGroups) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue