Skip to content

kubernetes_endpoint_slice_v1 data sourceย #2840

@mss

Description

@mss

Description

In #2086 the kubernetes_endpoint_slice_v1 resource was introduced. But no corresponding data source.

Potential Terraform Configuration

data "kubernetes_endpoint_slice_v1" "kubernetes" {
  metadata {
    namespace = "default"
    name      = "kubernetes"
  }
}

output "kubernetes_endpoint_ips" {
  value = flatten([ for e in data.kubernetes_endpoint_slice_v1.kubernetes.endpoint : e.addresses if e.condition.ready ])
}

References

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

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions