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

Makes standalone init env requirements injection specific #920

Merged
merged 5 commits into from
Jul 5, 2022

Conversation

0sewa0
Copy link
Contributor

@0sewa0 0sewa0 commented Jul 1, 2022

Description

The standalone init wants to read/setup envvars that are not necessary for data-ingest only injection, which the webhook will not provide ==> standalone init fails the pod

Now it only sets env fields to be required according to what injection is needed.

How can this be tested?

Inject into a:

  • pod that has data-ingest disabled
  • pod that has oneagent disabled
  • pod that has both disabled
    all of these should work as expected

Checklist

  • [ ] Unit tests have been updated/added
  • PR is labeled accordingly
  • I have read and understood the contribution guidelines

@0sewa0 0sewa0 added the bug Something isn't working label Jul 1, 2022
@0sewa0 0sewa0 requested a review from a team as a code owner July 1, 2022 07:24
@0sewa0 0sewa0 changed the title Makes standalone init smarter about the envs Makes standalone init env requirements injection specific Jul 4, 2022
src/standalone/env.go Show resolved Hide resolved
src/standalone/env.go Show resolved Hide resolved
@0sewa0 0sewa0 requested a review from chrismuellner July 5, 2022 08:41
@0sewa0 0sewa0 enabled auto-merge (squash) July 5, 2022 12:47
@0sewa0 0sewa0 merged commit f1ee562 into release-0.7 Jul 5, 2022
@0sewa0 0sewa0 deleted the fix/separate-injection branch July 5, 2022 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants