make flags of TokenRequest required

This commit is contained in:
Shihang Zhang
2020-10-26 22:23:10 -07:00
parent fe48ad8d22
commit a5021a4ddf
2 changed files with 9 additions and 7 deletions

View File

@@ -120,7 +120,7 @@ func validateTokenRequest(options *ServerRunOptions) []error {
enableSucceeded := options.ServiceAccountIssuer != nil
if !enableAttempted && utilfeature.DefaultFeatureGate.Enabled(features.BoundServiceAccountTokenVolume) {
if !enableAttempted {
errs = append(errs, errors.New("--service-account-signing-key-file and --service-account-issuer are required flags"))
}