Merge pull request #128051 from googs1025/kubectl/fix/resourcebuilder

bug(kubectl): return resource builder error in scale cmd
This commit is contained in:
Kubernetes Prow Robot 2024-10-14 15:16:20 +01:00 committed by GitHub
commit 9a0b07d38c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -229,6 +229,9 @@ func (o *ScaleOptions) RunScale() error {
}
if len(infos) == 0 {
if infoErr != nil {
return fmt.Errorf("no objects passed to scale %w", infoErr)
}
return fmt.Errorf("no objects passed to scale")
}