Skip to content

support extraLabels for vault-agent-injector#428

Merged
jasonodonnell merged 5 commits into
hashicorp:masterfrom
logileifs:master
Dec 7, 2020
Merged

support extraLabels for vault-agent-injector#428
jasonodonnell merged 5 commits into
hashicorp:masterfrom
logileifs:master

Conversation

@logileifs
Copy link
Copy Markdown
Contributor

fixes issue #427

@hashicorp-cla
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
Contributor

@logileifs Also the CLA will need to be signed 😄

@logileifs
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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