@@ -60,13 +60,13 @@ type RestConfigMapper func(context.Context, client.Object, *rest.Config) (*rest.
6060
6161type NewForConfigFunc func (* rest.Config ) (authorizationv1client.AuthorizationV1Interface , error )
6262
63- type AuthClientMapper struct {
63+ type AuthorizationClientMapper struct {
6464 rcm RestConfigMapper
6565 baseCfg * rest.Config
6666 NewForConfig NewForConfigFunc
6767}
6868
69- func (acm * AuthClientMapper ) GetAuthenticationClient (ctx context.Context , ext * ocv1.ClusterExtension ) (authorizationv1client.AuthorizationV1Interface , error ) {
69+ func (acm * AuthorizationClientMapper ) GetAuthorizationClient (ctx context.Context , ext * ocv1.ClusterExtension ) (authorizationv1client.AuthorizationV1Interface , error ) {
7070 authcfg , err := acm .rcm (ctx , ext , acm .baseCfg )
7171 if err != nil {
7272 return nil , err
@@ -76,13 +76,13 @@ func (acm *AuthClientMapper) GetAuthenticationClient(ctx context.Context, ext *o
7676}
7777
7878type Helm struct {
79- ActionClientGetter helmclient.ActionClientGetter
80- Preflights []Preflight
81- AuthClientMapper AuthClientMapper
79+ ActionClientGetter helmclient.ActionClientGetter
80+ Preflights []Preflight
81+ AuthorizationClientMapper AuthorizationClientMapper
8282}
8383
84- func NewAuthClientMapper (rcm RestConfigMapper , baseCfg * rest.Config ) AuthClientMapper {
85- return AuthClientMapper {
84+ func NewAuthorizationClientMapper (rcm RestConfigMapper , baseCfg * rest.Config ) AuthorizationClientMapper {
85+ return AuthorizationClientMapper {
8686 rcm : rcm ,
8787 baseCfg : baseCfg ,
8888 }
@@ -110,7 +110,7 @@ func shouldSkipPreflight(ctx context.Context, preflight Preflight, ext *ocv1.Clu
110110
111111func (h * Helm ) Apply (ctx context.Context , contentFS fs.FS , ext * ocv1.ClusterExtension , objectLabels map [string ]string , storageLabels map [string ]string ) ([]client.Object , string , error ) {
112112 if features .OperatorControllerFeatureGate .Enabled (features .PreflightPermissions ) {
113- authclient , err := h .AuthClientMapper . GetAuthenticationClient (ctx , ext )
113+ authclient , err := h .AuthorizationClientMapper . GetAuthorizationClient (ctx , ext )
114114 if err != nil {
115115 return nil , "" , err
116116 }
0 commit comments