@@ -38,7 +38,7 @@ import (
38
38
39
39
osspec "github.com/kubernetes-sigs/container-object-storage-interface-spec"
40
40
41
- "k8s.io/klog"
41
+ "k8s.io/klog/v2 "
42
42
43
43
"golang.org/x/time/rate"
44
44
)
@@ -100,7 +100,7 @@ func (bal *bucketAccessListener) InitializeBucketClient(bc bucketclientset.Inter
100
100
101
101
// Add will call the provisioner to grant permissions
102
102
func (bal * bucketAccessListener ) Add (ctx context.Context , obj * v1alpha1.BucketAccess ) error {
103
- klog .V ( 1 ). Infof ("bucketAccessListener: add called for bucket access %s" , obj .Name )
103
+ klog .Infof ("bucketAccessListener: add called for bucket access %s" , obj .Name )
104
104
105
105
// Verify this bucket access is for this provisioner
106
106
if ! strings .EqualFold (obj .Spec .Provisioner , bal .provisionerName ) {
@@ -144,7 +144,7 @@ func (bal *bucketAccessListener) Add(ctx context.Context, obj *v1alpha1.BucketAc
144
144
klog .Errorf ("error calling ProvisionerGrantBucketAccess: %v" , err )
145
145
return err
146
146
}
147
- klog .V ( 1 ). Infof ("provisioner returned grant bucket access response %v" , rsp )
147
+ klog .Infof ("provisioner returned grant bucket access response %v" , rsp )
148
148
149
149
// Only update the principal in the BucketAccess if it wasn't set because
150
150
// that means that the provisioner created one
@@ -185,13 +185,13 @@ func (bal *bucketAccessListener) Add(ctx context.Context, obj *v1alpha1.BucketAc
185
185
186
186
// Update does nothing
187
187
func (bal * bucketAccessListener ) Update (ctx context.Context , old , new * v1alpha1.BucketAccess ) error {
188
- klog .V ( 1 ). Infof ("bucketAccessListener: update called for bucket %s" , old .Name )
188
+ klog .Infof ("bucketAccessListener: update called for bucket %s" , old .Name )
189
189
return nil
190
190
}
191
191
192
192
// Delete will call the provisioner to revoke permissions
193
193
func (bal * bucketAccessListener ) Delete (ctx context.Context , obj * v1alpha1.BucketAccess ) error {
194
- klog .V ( 1 ). Infof ("bucketAccessListener: delete called for bucket access %s" , obj .Name )
194
+ klog .Infof ("bucketAccessListener: delete called for bucket access %s" , obj .Name )
195
195
196
196
// Verify this bucket access is for this provisioner
197
197
if ! strings .EqualFold (obj .Spec .Provisioner , bal .provisionerName ) {
@@ -234,7 +234,7 @@ func (bal *bucketAccessListener) Delete(ctx context.Context, obj *v1alpha1.Bucke
234
234
klog .Errorf ("error calling ProvisionerRevokeBucketAccess: %v" , err )
235
235
return err
236
236
}
237
- klog .V ( 1 ). Infof ("provisioner returned revoke bucket access response %v" , rsp )
237
+ klog .Infof ("provisioner returned revoke bucket access response %v" , rsp )
238
238
239
239
// Delete the secret
240
240
if obj .Spec .ServiceAccount == nil {
0 commit comments