Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Several sidecars (for example, external-provisioner) deprecate command line flags. When that happens, the flag must still be treated the same way as before (i.e. optional values for boolean, required values for non-boolean), but trying to use the flag needs to trigger a deprecation warning. An alternative to this code is to let the flag set a variable and then check the variable. But that only catches cases where the variable is set to a non-default value and leaves the variable in the code, which can lead to mistakes (see kubernetes-csi/external-provisioner#239).
- Loading branch information