Don't stage kops as file assets

This commit is contained in:
John Gardiner Myers 2021-05-28 00:11:07 -07:00
parent 26309f0016
commit 4bae3ee5b7
2 changed files with 0 additions and 21 deletions

View File

@ -363,13 +363,6 @@ func (c *ApplyClusterCmd) Run(ctx context.Context) error {
return err
}
// Only setup transfer of kops assets if using a FileRepository
if c.Cluster.Spec.Assets != nil && c.Cluster.Spec.Assets.FileRepository != nil {
if err := SetKopsAssetsLocations(assetBuilder); err != nil {
return err
}
}
checkExisting := true
project := ""

View File

@ -83,20 +83,6 @@ func copyBaseURL(base *url.URL) (*url.URL, error) {
return u, nil
}
// SetKopsAssetsLocations sets the kops assets locations
// This func adds kops binary to the list of file assets, and stages the binary in the assets file repository
func SetKopsAssetsLocations(assetsBuilder *assets.AssetBuilder) error {
for _, s := range []string{
"linux/amd64/kops", "darwin/amd64/kops",
} {
_, _, err := KopsFileURL(s, assetsBuilder)
if err != nil {
return err
}
}
return nil
}
// NodeUpAsset returns the asset for where nodeup should be downloaded
func NodeUpAsset(assetsBuilder *assets.AssetBuilder, arch architectures.Architecture) (*mirrors.MirroredAsset, error) {
if nodeUpAsset == nil {