diff --git a/pkg/apply/processor/interface.go b/pkg/apply/processor/interface.go index e94cc96ba8e..ce2e3d77cf4 100644 --- a/pkg/apply/processor/interface.go +++ b/pkg/apply/processor/interface.go @@ -191,7 +191,7 @@ func MountClusterImages(bdah buildah.Interface, cluster *v2.Cluster, skipApp boo hasRootfsType = true } } - if imageType != "" && imageType != string(v2.RootfsImage) && imageType != string(v2.PatchImage) && skipApp { + if (imageType == "" || imageType == string(v2.AppImage)) && skipApp { // then it's an application type image continue } diff --git a/pkg/apply/processor/scale.go b/pkg/apply/processor/scale.go index 65130bf533a..3d2e50b1a57 100644 --- a/pkg/apply/processor/scale.go +++ b/pkg/apply/processor/scale.go @@ -162,11 +162,11 @@ func (c *ScaleProcessor) preProcess(cluster *v2.Cluster) error { if err != nil { return err } - // cluster status might be overwrite by inappropriate usage, add mounts if loss. - if err = MountClusterImages(c.Buildah, cluster, true); err != nil { - return err - } if c.IsScaleUp { + // cluster status might be overwrite by inappropriate usage, add mounts if loss. + if err = MountClusterImages(c.Buildah, cluster, true); err != nil { + return err + } if cluster.GetRootfsImage().KubeVersion() == "" { return fmt.Errorf("rootfs image not found kube version") }