diff --git a/cmd/kops/util/factory.go b/cmd/kops/util/factory.go index 32ffe5c22f..94c054bbdf 100644 --- a/cmd/kops/util/factory.go +++ b/cmd/kops/util/factory.go @@ -43,7 +43,7 @@ func (f *Factory) Clientset() (simple.Clientset, error) { if f.clientset == nil { registryPath := f.options.RegistryPath if registryPath == "" { - return nil, field.Required(field.NewPath("RegistryPath"), "") + return nil, field.Required(field.NewPath("RegistryPath"), "Please set the --state flag, or `export KOPS_STATE_STORE=s3://`") } basePath, err := vfs.Context.BuildVfsPath(registryPath) if err != nil { @@ -51,7 +51,7 @@ func (f *Factory) Clientset() (simple.Clientset, error) { } if !vfs.IsClusterReadable(basePath) { - return nil, field.Invalid(field.NewPath("RegistryPath"), registryPath, "Not cloud-reachable - please use an S3 bucket") + return nil, field.Invalid(field.NewPath("RegistryPath"), registryPath, "Not cloud-reachable - please use an S3 bucket when setting --state or KOPS_STATE_STORE") } f.clientset = vfsclientset.NewVFSClientset(basePath)