mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-15 14:14:39 +00:00
kubectl debug: warning message about legacy profile (#127230)
* Add warning message for legacy profile * fix1 * fix2
This commit is contained in:
@@ -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
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user