Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

[metricbeat] Support secrets #778

Merged
merged 2 commits into from
Sep 10, 2020
Merged

[metricbeat] Support secrets #778

merged 2 commits into from
Sep 10, 2020

Conversation

erihanse
Copy link
Contributor

@erihanse erihanse commented Aug 13, 2020

Here's an initial attempt to adding secrets to the metricbeat chart, I hope the PR is welcome. I looked at what was done in #712, and copied and adjusted the template for metricbeat accordingly. Was unsure whether or not to add tests, since similar tests are covered in the logstash chart.

@elasticmachine
Copy link
Collaborator

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

@erihanse
Copy link
Contributor Author

@fatmcgav sorry to bother you directly. Will this PR be reviewed any time soon?

@fatmcgav
Copy link
Contributor

Jenkins test this please

@erihanse
Copy link
Contributor Author

Is there anything missing here?

@blurpy
Copy link

blurpy commented Sep 7, 2020

I would really like to see this PR merged so we can start using this chart. How do we get hold of someone who can verify?

@fatmcgav
Copy link
Contributor

fatmcgav commented Sep 7, 2020

Sorry for the radio silence here.

@erihanse This is looking good. Would you be able to add a new test to exercise creating a secret?
Something like https://github.com/erihanse/helm-charts/blob/b6f54a621a0797e58ab047f4f6014d3d7c4162fa/metricbeat/tests/metricbeat_test.py#L1152-L1173 should do the job...

@erihanse
Copy link
Contributor Author

erihanse commented Sep 8, 2020

@fatmcgav would it make sense to copy the secret-related tests from the logstash chart (#712) and make necessary adjustments? The template is the same.

@fatmcgav
Copy link
Contributor

fatmcgav commented Sep 8, 2020

@erihanse sounds like an awesome idea!

@erihanse
Copy link
Contributor Author

@fatmcgav it's ready for review again. I rebased on master, therefore the force-push. I copied the tests, the only change I made was to remove the assert of secretschecksum in the test method test_adding_a_secret.

@fatmcgav
Copy link
Contributor

Cool, thanks for that @erihanse

Jenkins test this please

Copy link
Contributor

@fatmcgav fatmcgav left a comment

Choose a reason for hiding this comment

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

LGTM

@fatmcgav fatmcgav merged commit 8506844 into elastic:master Sep 10, 2020
fatmcgav pushed a commit that referenced this pull request Sep 10, 2020
fatmcgav pushed a commit that referenced this pull request Sep 10, 2020
fatmcgav pushed a commit that referenced this pull request Sep 10, 2020
@fatmcgav
Copy link
Contributor

This has been back-ported to the relevant branches, and will be included in the next 7.9 minor release.

Thanks again for the contribution @erihanse

@erihanse erihanse deleted the metricbeat_secret branch September 10, 2020 12:22
@nkammah nkammah mentioned this pull request Sep 24, 2020
@nkammah nkammah mentioned this pull request Oct 19, 2020
@jmlrt jmlrt mentioned this pull request Oct 28, 2020
This was referenced Nov 17, 2020
@jmlrt jmlrt mentioned this pull request Nov 23, 2020
@jmlrt jmlrt mentioned this pull request Feb 8, 2021
This was referenced Mar 15, 2021
@jmlrt jmlrt mentioned this pull request May 25, 2021
@jmlrt jmlrt mentioned this pull request Mar 8, 2022
@jmlrt jmlrt mentioned this pull request Apr 21, 2022
This was referenced Sep 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support creating k8s helm secrets for metricbeat helm chart
5 participants