-
Notifications
You must be signed in to change notification settings - Fork 140
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
provider-aws-ecs: taskDefinition is not updated #1061
Comments
Hi @denzhel, thank you for raising this issue. The issue can be reproduced with the information provided, I also get the same error when I add a second definition block. Additionally, when I try with provider version 0.43, I get the following error:
|
We've discussed this issue, and we don't feel we should allow the Terraform layer to replace (destroy & recreate the external resource with the updated cpu (core) count) due to the immutable fields policy of the XRM. It is suggested that you delete the corresponding MR and recreate a new MR with the updated parameters as a path forward to configure an existing TaskDefinition.ecs with an updated cpu count, if needed. Going forward we should be properly treating this field as an immutable field, as captured by the following two issues:
We can also:
|
Hi @jeanduplessis , Thank you for the reply ! This behavior happens not only with cpu field but with all fields. You can check the same with the image field where we wanted to bump the version when updating the micro service version. I"m not sure how to implement your suggestion as we use CRD, Compositions and Claims. The claim is templated using Helm and ArgoCD. Help will be appreciated. |
This makes sense, as an ECS task definition is supposed to be immutable once created. One trick you could try is to make the |
Hi @mbbush, So I have this claim:
This composition:
Added this to the XRD:
But I cannot get the hashed value to appear inside the composition.
|
HI @mbbush , I was able to get it working but now I have another issue.
|
Hi @jeanduplessis and @turkenf , Help would be much appreciated <3 |
Wanted to share that I was able to solve the above using this in the claim file:
and addition to the CRD |
What happened?
I've created a task definition and then updated one the
container-definition
values and expected crossplane to create a new revision, instead it tries to modify the existing revision and fails with this error:How can we reproduce it?
kubectl apply -f task.yaml
:cpu
to20
kubectl apply -f task.yaml
kubectl describe taskdefinition.ecs.aws.upbound.io/dennis
What environment did it happen in?
The text was updated successfully, but these errors were encountered: