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

chore: update loki #734

Merged
merged 4 commits into from
Sep 9, 2024
Merged

Conversation

rjferguson21
Copy link
Contributor

Description

...

Related Issue

Fixes #

Relates to #

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Other (security config, docs update, etc)

Checklist before merging

@rjferguson21 rjferguson21 changed the title Rob loki helm renovate chore: update loki Sep 9, 2024
Comment on lines 6 to 15
data:
# v13schemadate defaults to two days in the future
{{- $configmap := (lookup "v1" "ConfigMap" "loki" "loki-schema") }}
{{- if .Values.v13schemadate }}
v13schemadate: {{ .Values.v13schemadate }}
{{- else if $configmap }}
v13schemadate: {{ $configmap.data.v13schemadate }}
{{- else }}
v13schemadate: {{ (now | dateModify "+48h" | date "2006-01-02") | quote }}
{{- end }}
Copy link
Contributor

Choose a reason for hiding this comment

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

(realize that I suggested some of this, but a few thoughts)

  • Not really sure we need v13schemadate value - if someone wants to override they could directly modify the loki schema values, although they'd have to override the full block
  • If this is a fresh install we can actually put the date in the past - we don't have to, but it's one less thing for new installs to have to include. Probably could do with .Release.IsInstall + dateModify minus 48h?
  • Controlling this schema config with helm templating makes me a bit scared, but it may be the right place? Can see both sides to this...

Copy link
Contributor

@mjnagel mjnagel left a comment

Choose a reason for hiding this comment

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

approving since this is just a PR into another branch/PR

@rjferguson21 rjferguson21 marked this pull request as ready for review September 9, 2024 21:36
@rjferguson21 rjferguson21 requested a review from a team as a code owner September 9, 2024 21:36
@rjferguson21 rjferguson21 merged commit da4231f into renovate-loki-update Sep 9, 2024
22 checks passed
@rjferguson21 rjferguson21 deleted the rob-loki-helm-renovate branch September 9, 2024 21:37
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