Skip to content

Commit

Permalink
no-op on keyhandle update operation
Browse files Browse the repository at this point in the history
  • Loading branch information
nb-goog committed Jan 12, 2025
1 parent f2eff69 commit 3bc62a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/controller/direct/kms/keyhandle/keyhandle_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,9 @@ func (a *Adapter) Create(ctx context.Context, createOp *directbase.CreateOperati

// Update operation not supported for KeyHandle.
func (a *Adapter) Update(ctx context.Context, updateOp *directbase.UpdateOperation) error {
return fmt.Errorf("update operation not supported for KeyHandle resource")
log := klog.FromContext(ctx).WithName(ctrlName)
log.V(2).Info("update operation not supported for KeyHandle resource")
return nil
}

func (a *Adapter) Export(ctx context.Context) (*unstructured.Unstructured, error) {
Expand Down

0 comments on commit 3bc62a7

Please sign in to comment.