Skip to content

Commit e7182b8

Browse files
authored
remove getImmutableFieldChanges references (#31)
fix aws-controllers-k8s/code-generator#565 Description of changes: Remove getImmutableFieldChanges from hooks to support cel immutability By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 36d92fb commit e7182b8

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

pkg/resource/access_point/hooks.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@ import (
1717
"context"
1818
"fmt"
1919
"reflect"
20-
"strings"
2120
"time"
2221

2322
ackcompare "github.com/aws-controllers-k8s/runtime/pkg/compare"
24-
"github.com/aws-controllers-k8s/runtime/pkg/errors"
2523
ackrequeue "github.com/aws-controllers-k8s/runtime/pkg/requeue"
2624
ackrtlog "github.com/aws-controllers-k8s/runtime/pkg/runtime/log"
2725
"github.com/aws/aws-sdk-go-v2/aws"
@@ -77,10 +75,6 @@ func (rm *resourceManager) customUpdateAccessPoint(
7775
exit := rlog.Trace("rm.sdkUpdate")
7876
defer func() { exit(err) }()
7977

80-
if immutableFieldChanges := rm.getImmutableFieldChanges(delta); len(immutableFieldChanges) > 0 {
81-
msg := fmt.Sprintf("Immutable Spec fields have been modified: %s", strings.Join(immutableFieldChanges, ","))
82-
return nil, errors.NewTerminalError(fmt.Errorf(msg))
83-
}
8478
if delta.DifferentAt("Spec.Tags") {
8579
err := syncTags(
8680
ctx, rm.sdkapi, rm.metrics,

0 commit comments

Comments
 (0)