Skip to content

Allow certain .kubernetes.io annotations to be managed #2666

Open
@joey-squid

Description

@joey-squid

Description

Feature #746 added an ignore_annotations configuration. Unfortunately, the annotations in this list are added to the immutable set of annotations in isInternalKey. This means that there is no way to tell the provider that e.g. the alb.ingress.kubernetes.io/* annotations should be managed. (There's an ALB-specific exception in isInternalKey but it seems to be outdated.)

Potential Terraform Configuration

I use CDKTF so don't have tested HCL handy, but here's some JSON: (I deleted the very long ingress spec)

"kubernetes_ingress_v1": {
  "ingress": {
    "metadata": {
      "annotations": {
        "alb.ingress.kubernetes.io/certificate-arn": "<redacted>",
        "alb.ingress.kubernetes.io/healthcheck-interval-seconds": "15",
        "alb.ingress.kubernetes.io/healthcheck-path": "/heartbeat",
        "alb.ingress.kubernetes.io/healthcheck-timeout-seconds": "10",
        "alb.ingress.kubernetes.io/load-balancer-attributes": "idle_timeout.timeout_seconds=300",
        "alb.ingress.kubernetes.io/load-balancer-name": "core-wildcard-alb",
        "alb.ingress.kubernetes.io/scheme": "internet-facing",
        "alb.ingress.kubernetes.io/target-type": "ip",
        "alb.ingress.kubernetes.io/wafv2-acl-arn": "<redacted>"
      },
      "name": "core-wildcard-alb",
      "namespace": "default"
    }
  }
}

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions