Open daniduhnev1 opened 1 week ago
@a-hilaly, I was able to reproduce this with the latest sns controller 1.0.14
version.
@daniduhnev1 @candonov this is fixed in the latest version of sns-controller. Now the controller treats spec.name as an immutable field, and will set a Terminal condition if a user modifies the field
Describe the bug
We have observed that changing the spec.name of a resource such as an SNS topic has no effect on the resource. The topic name in AWS is not changed - this is expected as the topic name is immutable. But the k8s topic resource remains in a healthy state. For example, if the description of a “faulty” topic resource is edited, then the change is also seen on AWS. Is this behaviour expected? I believe a better behaviour here is for the resource to fail with a message saying that the
spec.name
is an immutable field so ACK cannot implement the change of name of the topic on AWS.Steps to reproduce
Run
kubectl apply
to create an example topic:Run
kubectl edit
and changespec.name
to something different such asmy-ack-topic-edited
. Resource remains asmy-ack-topic
on AWS as the name of a topic is immutable. However, the ACK Kubernetes resource remains healthy. If for example,spec.displayName
is then changed to something different such as"Test topic edited"
, the description on AWS will be updated.Expected outcome
The expected behaviour will be for the Kubernetes resource to error with a message saying that "the topic name cannot be updated because it is an immutable field".
Environment