Skip to content

remove getImmutableFieldChanges references #61

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions pkg/resource/health_check/hooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"errors"
"fmt"
"math"
"strings"
"time"

svcapitypes "github.com/aws-controllers-k8s/route53-controller/apis/v1alpha1"
Expand Down Expand Up @@ -35,12 +34,6 @@ func (rm *resourceManager) customUpdateHealthCheck(
exit(err)
}()

// Do not proceed with update if an immutable field was updated
if immutableFieldChanges := rm.getImmutableFieldChanges(delta); len(immutableFieldChanges) > 0 {
msg := fmt.Sprintf("Immutable Spec fields have been modified: %s", strings.Join(immutableFieldChanges, ","))
return nil, ackerr.NewTerminalError(fmt.Errorf(msg))
}

// Merge in the information we read from the API call above to the copy of
// the original Kubernetes object we passed to the function
ko := desired.ko.DeepCopy()
Expand Down
7 changes: 0 additions & 7 deletions pkg/resource/record_set/hooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package record_set
import (
"context"
"errors"
"fmt"
"strings"

svcapitypes "github.com/aws-controllers-k8s/route53-controller/apis/v1alpha1"
Expand Down Expand Up @@ -188,12 +187,6 @@ func (rm *resourceManager) customUpdateRecordSet(
exit(err)
}()

// Do not proceed with update if an immutable field was updated
if immutableFieldChanges := rm.getImmutableFieldChanges(delta); len(immutableFieldChanges) > 0 {
msg := fmt.Sprintf("Immutable Spec fields have been modified: %s", strings.Join(immutableFieldChanges, ","))
return nil, ackerr.NewTerminalError(fmt.Errorf(msg))
}

// Merge in the information we read from the API call above to the copy of
// the original Kubernetes object we passed to the function
ko := desired.ko.DeepCopy()
Expand Down