Skip to content

[Helm] Support extraSecrets in vector and datadog daemonsets#131

Open
nyergler wants to merge 5 commits into
masterfrom
daemon-extra-secrets
Open

[Helm] Support extraSecrets in vector and datadog daemonsets#131
nyergler wants to merge 5 commits into
masterfrom
daemon-extra-secrets

Conversation

@nyergler

Copy link
Copy Markdown
Member

The vector and datadog daemonsets used individual secretKeyRef entries for DEPLOYMENT and DEPLOYMENT_KEY, so they couldn't access values stored in extraSecrets. Switch to envFrom (matching the pattern used by all other deployments) so these daemonsets pick up secrets from both the main config secret and any user-provided extraSecrets.

The vector and datadog daemonsets used individual secretKeyRef entries
for DEPLOYMENT and DEPLOYMENT_KEY, so they couldn't access values stored
in extraSecrets. Switch to envFrom (matching the pattern used by all
other deployments) so these daemonsets pick up secrets from both the
main config secret and any user-provided extraSecrets.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@nyergler nyergler requested a review from erictg March 23, 2026 22:27
@nyergler

Copy link
Copy Markdown
Member Author

@erictg I'm not sure this is correct, would appreciate you giving it a once over. A deployment using a secret for their deployment key isn't sending logs, and I think this is the issue.

@erictg erictg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good to me, sorry I missed that. I didn't think about those values needing to be passed into these daemonsets when I initially added extra secrets.

Before you merge (if you haven't already) just run helm lint to double check that it's valid.

@nyergler nyergler requested a review from erictg March 26, 2026 14:48
@nyergler

Copy link
Copy Markdown
Member Author

Could you take another look at this, @erictg ? Checks seemed to think that DEPLOYMENT could be missing in some cases.

@erictg erictg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

One question about the use of $(DEPLOYMENT).

To see what the rendered resource would look like, you can run helm template <release-name> <chart> -f values.yaml.

Comment thread helm/charts/polytomic/templates/datadog-daemonset.yaml Outdated
@nyergler nyergler requested a review from erictg March 26, 2026 15:41
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