Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

Recreate resource if manifest.metadata.name changed #262

Open
ivanzolotuhin opened this issue Aug 9, 2021 · 0 comments
Open

Recreate resource if manifest.metadata.name changed #262

ivanzolotuhin opened this issue Aug 9, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@ivanzolotuhin
Copy link

Description

I believe resource should be recreated if manifest.metadata.name changed or at least I should be able to set this behaviour somehow. There are some custom CRDs which should be recreated. I am trying to provision AWS ALB TargetGroupBinding CRD. The problem that this resource can only be deleted first and then recreated if I change associated target group. My idea was to give new manifest.metadata.name by adding hash value from AWS ALB TargetGroup ARN. Expected behaviour that Terraform will offer RECREATE of resource instead of modification, because it is impossible to modify this in K8S.
Object names are immutable in Kubernetes.

@ivanzolotuhin ivanzolotuhin added the enhancement New feature or request label Aug 9, 2021
@ivanzolotuhin ivanzolotuhin changed the title Allow recreate resource if manifest.metadata.name changes Recreate resource if manifest.metadata.name changes Aug 9, 2021
@ivanzolotuhin ivanzolotuhin changed the title Recreate resource if manifest.metadata.name changes Recreate resource if manifest.metadata.name changed Aug 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant