@@ -60,13 +60,13 @@ type RestConfigMapper func(context.Context, client.Object, *rest.Config) (*rest.
60
60
61
61
type NewForConfigFunc func (* rest.Config ) (authorizationv1client.AuthorizationV1Interface , error )
62
62
63
- type AuthClientMapper struct {
63
+ type AuthorizationClientMapper struct {
64
64
rcm RestConfigMapper
65
65
baseCfg * rest.Config
66
66
NewForConfig NewForConfigFunc
67
67
}
68
68
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 ) {
70
70
authcfg , err := acm .rcm (ctx , ext , acm .baseCfg )
71
71
if err != nil {
72
72
return nil , err
@@ -76,13 +76,13 @@ func (acm *AuthClientMapper) GetAuthenticationClient(ctx context.Context, ext *o
76
76
}
77
77
78
78
type Helm struct {
79
- ActionClientGetter helmclient.ActionClientGetter
80
- Preflights []Preflight
81
- AuthClientMapper AuthClientMapper
79
+ ActionClientGetter helmclient.ActionClientGetter
80
+ Preflights []Preflight
81
+ AuthorizationClientMapper AuthorizationClientMapper
82
82
}
83
83
84
- func NewAuthClientMapper (rcm RestConfigMapper , baseCfg * rest.Config ) AuthClientMapper {
85
- return AuthClientMapper {
84
+ func NewAuthorizationClientMapper (rcm RestConfigMapper , baseCfg * rest.Config ) AuthorizationClientMapper {
85
+ return AuthorizationClientMapper {
86
86
rcm : rcm ,
87
87
baseCfg : baseCfg ,
88
88
}
@@ -110,7 +110,7 @@ func shouldSkipPreflight(ctx context.Context, preflight Preflight, ext *ocv1.Clu
110
110
111
111
func (h * Helm ) Apply (ctx context.Context , contentFS fs.FS , ext * ocv1.ClusterExtension , objectLabels map [string ]string , storageLabels map [string ]string ) ([]client.Object , string , error ) {
112
112
if features .OperatorControllerFeatureGate .Enabled (features .PreflightPermissions ) {
113
- authclient , err := h .AuthClientMapper . GetAuthenticationClient (ctx , ext )
113
+ authclient , err := h .AuthorizationClientMapper . GetAuthorizationClient (ctx , ext )
114
114
if err != nil {
115
115
return nil , "" , err
116
116
}
0 commit comments