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

Global secrets normalization #5946

Closed
EvertonSA opened this issue Dec 9, 2023 · 2 comments
Closed

Global secrets normalization #5946

EvertonSA opened this issue Dec 9, 2023 · 2 comments
Labels
frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed.

Comments

@EvertonSA
Copy link

Hi colleagues,

I have experienced with other charts the following behaviors:

  • if global is set, and "local" is not, use global
  • if global is set, and local is set, use local

but for grafana-agent pull secrets, we are, if I understood correctly, adding up globals and locals. I would like to know if this is the intended or if I'm misunderstanding globals and locals.

{{- if .Values.global.image.pullSecrets }}

I have tried to install grafana-agent together with tempo-distributed and bumped into the following issue. Tempo-distributed is using the global pullSecret as a list of strings, and grafana-agent expect pullSecrets as a list of dict. Tempo is clearly not following convention, but due to the behavior above, i'm not able to override the global with a local pullSecret definition.

Error: UPGRADE FAILED: failed to create resource: DaemonSet in version "v1" cannot be handled as a DaemonSet: json: cannot unmarshal string into Go struct field PodSpec.spec.template.spec.imagePullSecrets of type v1.LocalObjectReference

see grafana/helm-charts#2832

@EvertonSA
Copy link
Author

thinking out on this problem again, I think grafana-agent should follow grafana behavior https://github.com/grafana/helm-charts/pull/2035/files where it adds up locals and globals, but use the well know .Values.global.imagePullSecrets instead of pullSecrets

@EvertonSA EvertonSA changed the title Global should not be enforced if local is set Global secrets normalization Dec 14, 2023
@EvertonSA
Copy link
Author

i have forked for now

@github-actions github-actions bot added the frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed. label Feb 21, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant