Skip to content

feat: add endpoint slice data source#2847

Merged
BBBmau merged 1 commit intohashicorp:mainfrom
tavasyag:tavasyag/endpoint-slice-data-source
Feb 27, 2026
Merged

feat: add endpoint slice data source#2847
BBBmau merged 1 commit intohashicorp:mainfrom
tavasyag:tavasyag/endpoint-slice-data-source

Conversation

@tavasyag
Copy link
Contributor

Rollback Plan

If a change needs to be reverted, we will publish an updated version of the library.

Changes to Security Controls

Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.

No changes to security controls. This PR only adds a new read-only data source.

Description

This PR adds a new data source kubernetes_endpoint_slice_v1 for reading EndpointSlice v1 resources from Kubernetes clusters.

Changes:

  • Added kubernetes_endpoint_slice_v1 data source implementation
  • Added comprehensive acceptance tests (basic and not_found scenarios)
  • Added documentation with usage examples
  • Registered data source in provider

Acceptance tests

  • Have you added an acceptance test for the functionality being added?
  • Have you run the acceptance tests on this branch?

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccKubernetesDataSourceEndpointSliceV1'

=== RUN   TestAccKubernetesDataSourceEndpointSliceV1_basic
--- PASS: TestAccKubernetesDataSourceEndpointSliceV1_basic (X.XXs)
=== RUN   TestAccKubernetesDataSourceEndpointSliceV1_not_found
--- PASS: TestAccKubernetesDataSourceEndpointSliceV1_not_found (X.XXs)
PASS

...

Release Note

Release note for CHANGELOG:

kubernetes: Add `kubernetes_endpoint_slice_v1` data source

References

Fixes #2840

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

@tavasyag tavasyag requested a review from a team as a code owner February 26, 2026 23:46
@hashicorp-cla-app
Copy link

hashicorp-cla-app bot commented Feb 26, 2026

CLA assistant check
All committers have signed the CLA.

@hashicorp-cla-app
Copy link

CLA assistant check

Thank you for your submission! We require that all contributors sign our Contributor License Agreement ("CLA") before we can accept the contribution. Read and sign the agreement

Learn more about why HashiCorp requires a CLA and what the CLA includes


Tavasya Ganpati seems not to be a GitHub user.
You need a GitHub account to be able to sign the CLA.
If you have already a GitHub account, please add the email address used for this commit to your account.

Have you signed the CLA already but the status is still pending? Recheck it.

@tavasyag tavasyag changed the title Tavasyag/endpoint slice data source feat: add endpoint slice data source Feb 27, 2026
@tavasyag tavasyag force-pushed the tavasyag/endpoint-slice-data-source branch 2 times, most recently from 4809217 to b074c7c Compare February 27, 2026 21:16
Register endpoint slice in provider

Add test file

Add documentaiton and modified test file

add changelog entry

fix changelog entry

fix changelog

fix changelog 2

changed copright

Add headers
@tavasyag tavasyag force-pushed the tavasyag/endpoint-slice-data-source branch from b074c7c to c2113f2 Compare February 27, 2026 21:29
Copy link
Collaborator

@BBBmau BBBmau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! THe following GHA can be resolved in a follow-up PR

@BBBmau BBBmau merged commit 24ebea8 into hashicorp:main Feb 27, 2026
22 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

kubernetes_endpoint_slice_v1 data source

2 participants