kubectl debug: warning message about legacy profile (#127230)

* Add warning message for legacy profile

* fix1

* fix2
This commit is contained in:
Keita Mochizuki
2024-09-20 00:28:38 +09:00
committed by GitHub
parent ae945462fb
commit dd4943c831

View File

@@ -399,6 +399,11 @@ func (o *DebugOptions) Validate() error {
}
}
// Warning for legacy profile
if o.Profile == ProfileLegacy {
fmt.Fprintln(o.ErrOut, `--profile=legacy is deprecated and will be removed in the future. It is recommended to explicitly specify a profile, for example "--profile=general".`)
}
return nil
}