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

Recreate resource if manifest.metadata.name changed #262

@ivanzolotuhin

Description

@ivanzolotuhin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions