Skip to content

helm: replace existingForSecret property and fix an issue where we could not provide loki configuration with an external ConfigMap #10583

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

romainDavaze
Copy link

@romainDavaze romainDavaze commented Sep 14, 2023

What this PR does / why we need it:

This PR fixes an issue where we are currently not able to provide an existing ConfigMap containing loki configuration.

...
loki:
  useExternalConfig: true # We do not want the loki-config ConfigMap to be created
  configStorageType: Secret
  externalConfigSecretName: loki-config
...

Templates rendered with this values do not contain theloki-config ConfigMap (like we expect it to be) but we still have the following section in some of the manifests which gives errors when deploying the chart

volumes:
- name: config
  secret:
    secretName: loki-config

To fix this, I took example on the mimir-distributed helm chart as the use case is pretty much the same. As a result, I renamed the loki.existingSecretForConfig property which was confusing to loki.useExternalConfig

Which issue(s) this PR fixes:
N/A

Special notes for your reviewer:

Checklist

  • Reviewed the CONTRIBUTING.md guide (required)
  • Documentation added
  • Tests updated
  • CHANGELOG.md updated
    • If the change is worth mentioning in the release notes, add add-to-release-notes label
  • Changes that require user attention or interaction to upgrade are documented in docs/sources/setup/upgrade/_index.md
  • For Helm chart changes bump the Helm chart version in production/helm/loki/Chart.yaml and update production/helm/loki/CHANGELOG.md and production/helm/loki/README.md. Example PR
@romainDavaze romainDavaze requested a review from a team as a code owner September 14, 2023 13:12
@github-actions github-actions bot added area/helm type/docs Issues related to technical documentation; the Docs Squad uses this label across many repositories labels Sep 14, 2023
@romainDavaze romainDavaze force-pushed the helm-fix-external-config branch from 5b3bd26 to 6e9392e Compare September 14, 2023 13:15
…t provide loki configuration with an external ConfigMap
@romainDavaze romainDavaze force-pushed the helm-fix-external-config branch from 6e9392e to f827023 Compare September 14, 2023 13:32
@CLAassistant
Copy link

CLAassistant commented Sep 14, 2023

CLA assistant check
All committers have signed the CLA.

@romainDavaze romainDavaze force-pushed the helm-fix-external-config branch from 5b0bc38 to f382307 Compare September 18, 2023 15:00
@romainDavaze romainDavaze force-pushed the helm-fix-external-config branch from b6f708f to 0d69eb4 Compare September 18, 2023 15:16
@Jayclifford345
Copy link
Contributor

Hi @romainDavaze, I know its been a few years is this still a feature you would like to get into Loki. I can see the value in it and apolgies its taken us this long to get to this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/helm size/M type/docs Issues related to technical documentation; the Docs Squad uses this label across many repositories
4 participants