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

Add user-defined pre-delete hook annotation and labels for job #832

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alextricity25
Copy link

@alextricity25 alextricity25 commented Jun 24, 2024

Adds the ability for users to add annotations and labels on the pre-delete Job defined in deployment.yaml. This is particularly useful for when you are running the VSO operator in an istio sidecar enabled servicemesh, but would like to exclude the Job from getting an istio sidecar by adding istio-specific labels.

@alextricity25 alextricity25 requested a review from a team as a code owner June 24, 2024 18:43
Copy link

hashicorp-cla-app bot commented Jun 24, 2024

CLA assistant check
All committers have signed the CLA.

@@ -141,6 +141,14 @@ controller:
# This value defines additional annotations for the deployment. This should be formatted as a YAML object (map)
annotations: {}

# Controller pre-delete hook labels and annotations
Copy link
Collaborator

Choose a reason for hiding this comment

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

It would be great if we could move the hooks configuration to

.

Copy link
Collaborator

@benashz benashz left a comment

Choose a reason for hiding this comment

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

This is looking good. We will need to add some tests for it, though. It would be good to move the configuration to the hooks specific values as well.

You can take a look at https://github.com/hashicorp/vault-secrets-operator/blob/main/test/unit/hook-upgrade-crds.bats for sample of what the tests might look like.

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