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

support extraLabels for vault-agent-injector #428

Merged
merged 5 commits into from
Dec 7, 2020

Conversation

logileifs
Copy link
Contributor

fixes issue #427

@hashicorp-cla
Copy link

hashicorp-cla commented Dec 7, 2020

CLA assistant check
All committers have signed the CLA.

@jasonodonnell jasonodonnell self-requested a review December 7, 2020 15:20
Copy link
Contributor

@jasonodonnell jasonodonnell left a comment

Choose a reason for hiding this comment

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

Hi @logileifs, thanks for the contribution!

This looks good but will require unit tests to make sure the configurable works and has coverage. Would you mind adding some? You can find the bats injector unit tests here: https://github.com/hashicorp/vault-helm/blob/master/test/unit/injector-deployment.bats.

Here's a test that's equivalent: https://github.com/hashicorp/vault-helm/blob/master/test/unit/server-statefulset.bats#L891-L901.

@jasonodonnell
Copy link
Contributor

@logileifs Also the CLA will need to be signed 😄

@logileifs
Copy link
Contributor Author

Hey @jasonodonnell thanks for the tips, I added a test for the extraLabels on the injector and I have already signed the CLA, I don't know why it's not updating 😕

@logileifs
Copy link
Contributor Author

logileifs commented Dec 7, 2020

I figured out what the problem was, everything should be in order now :)

@jasonodonnell jasonodonnell self-requested a review December 7, 2020 16:07
Copy link
Contributor

@jasonodonnell jasonodonnell left a comment

Choose a reason for hiding this comment

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

One last change, this needs to be added to the values.yaml file. You can set it to blank just we like we do for server:

injector:
  ...
  extraLabels: {}

@jasonodonnell jasonodonnell self-requested a review December 7, 2020 16:27
Copy link
Contributor

@jasonodonnell jasonodonnell left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the contribution!

@logileifs
Copy link
Contributor Author

Thanks for the quick response @jasonodonnell and just out of curiosity, when can I expect to see this change in a release?

@jasonodonnell
Copy link
Contributor

We release monthly (if there's things to be released) on the third Tuesday, so good chance you'll see it then.

@tvoran tvoran mentioned this pull request Jan 5, 2021
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.

3 participants