Skip to content

Commit

Permalink
pkg/oauth/apiserver: rename resources to lowercase
Browse files Browse the repository at this point in the history
We need to rename the resources to lower case due to
https://github.com/kubernetes/kubernetes/pull/108263/files

Signed-off-by: Krzysztof Ostrowski <kostrows@redhat.com>
  • Loading branch information
ibihim committed Sep 12, 2022
1 parent 37bf4fc commit c691110
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions pkg/oauth/apiserver/apiserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,12 +233,12 @@ func (c *completedConfig) newV1RESTStorage(
}

v1Storage := map[string]rest.Storage{
"oAuthAuthorizeTokens": authorizeTokenStorage,
"oAuthAccessTokens": accessTokenStorage,
"oAuthClients": clientStorage,
"oAuthClientAuthorizations": clientAuthorizationStorage,
"userOAuthAccessTokens": userOAuthAccessTokensDelegate,
"tokenReviews": tokenReviewStorage,
"oauthauthorizetokens": authorizeTokenStorage,
"oauthaccesstokens": accessTokenStorage,
"oauthclients": clientStorage,
"oauthclientauthorizations": clientAuthorizationStorage,
"useroauthaccesstokens": userOAuthAccessTokensDelegate,
"tokenreviews": tokenReviewStorage,
}
return v1Storage, tokenReviewPostStartHooks, nil
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/user/apiserver/apiserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,6 @@ func (c *completedConfig) newV1RESTStorage() (map[string]rest.Storage, error) {
v1Storage["users"] = userStorage
v1Storage["groups"] = groupStorage
v1Storage["identities"] = identityStorage
v1Storage["userIdentityMappings"] = userIdentityMappingStorage
v1Storage["useridentitymappings"] = userIdentityMappingStorage
return v1Storage, nil
}

0 comments on commit c691110

Please sign in to comment.