Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: list secrets with etag support #21

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

DanielHougaard
Copy link
Contributor

Added ETag comparisons support to the Go SDK. This is useful for applications depending on secret updates to perform certain actions, such as our K8 operator.

@DanielHougaard DanielHougaard self-assigned this Nov 2, 2024
@DanielHougaard DanielHougaard deleted the daniel/build-tests branch November 2, 2024 00:25
@DanielHougaard DanielHougaard restored the daniel/build-tests branch November 2, 2024 00:26
@DanielHougaard DanielHougaard reopened this Nov 2, 2024
Copy link
Contributor

@maidul98 maidul98 left a comment

Choose a reason for hiding this comment

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

This pr feels overly complex. Instead of doing comparisons, it might be better to only allow users pass in a etag -> the function will attach it to the header -> the function returns details along with a etag. The client can do what it wants with it.

Also in the context of the k8s operator, how will this change help the abrupt fetch by the k8s we once had? I thought the k8s already has logic in place to check if there are changes or not

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants