Skip to content

Commit

Permalink
Add name labels and don't use fullName for runtime cfg.
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanGuedes committed Mar 21, 2024
1 parent 723e729 commit 0a82135
Show file tree
Hide file tree
Showing 40 changed files with 33,187 additions and 6 deletions.
1,336 changes: 1,336 additions & 0 deletions production/helm/loki/src/dashboards/distributed/loki-chunks.json

Large diffs are not rendered by default.

974 changes: 974 additions & 0 deletions production/helm/loki/src/dashboards/distributed/loki-deletion.json

Large diffs are not rendered by default.

1,072 changes: 1,072 additions & 0 deletions production/helm/loki/src/dashboards/distributed/loki-logs.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

6,674 changes: 6,674 additions & 0 deletions production/helm/loki/src/dashboards/distributed/loki-operational.json

Large diffs are not rendered by default.

2,407 changes: 2,407 additions & 0 deletions production/helm/loki/src/dashboards/distributed/loki-reads-resources.json

Large diffs are not rendered by default.

1,718 changes: 1,718 additions & 0 deletions production/helm/loki/src/dashboards/distributed/loki-reads.json

Large diffs are not rendered by default.

1,923 changes: 1,923 additions & 0 deletions production/helm/loki/src/dashboards/distributed/loki-retention.json

Large diffs are not rendered by default.

1,014 changes: 1,014 additions & 0 deletions production/helm/loki/src/dashboards/distributed/loki-writes-resources.json

Large diffs are not rendered by default.

1,232 changes: 1,232 additions & 0 deletions production/helm/loki/src/dashboards/distributed/loki-writes.json

Large diffs are not rendered by default.

1,336 changes: 1,336 additions & 0 deletions production/helm/loki/src/dashboards/ssd/loki-chunks.json

Large diffs are not rendered by default.

632 changes: 632 additions & 0 deletions production/helm/loki/src/dashboards/ssd/loki-deletion.json

Large diffs are not rendered by default.

1,073 changes: 1,073 additions & 0 deletions production/helm/loki/src/dashboards/ssd/loki-logs.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

6,173 changes: 6,173 additions & 0 deletions production/helm/loki/src/dashboards/ssd/loki-operational.json

Large diffs are not rendered by default.

964 changes: 964 additions & 0 deletions production/helm/loki/src/dashboards/ssd/loki-reads-resources.json

Large diffs are not rendered by default.

504 changes: 504 additions & 0 deletions production/helm/loki/src/dashboards/ssd/loki-reads.json

Large diffs are not rendered by default.

1,537 changes: 1,537 additions & 0 deletions production/helm/loki/src/dashboards/ssd/loki-retention.json

Large diffs are not rendered by default.

700 changes: 700 additions & 0 deletions production/helm/loki/src/dashboards/ssd/loki-writes-resources.json

Large diffs are not rendered by default.

504 changes: 504 additions & 0 deletions production/helm/loki/src/dashboards/ssd/loki-writes.json

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions production/helm/loki/templates/admin-api/_helpers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ adminApi common labels
{{ include "loki.labels" . }}
app.kubernetes.io/component: admin-api
target: admin-api
name: admin-api
{{- end }}

{{/*
Expand All @@ -21,4 +22,5 @@ adminApi selector labels
{{ include "loki.selectorLabels" . }}
app.kubernetes.io/component: admin-api
target: admin-api
name: admin-api
{{- end }}
2 changes: 2 additions & 0 deletions production/helm/loki/templates/backend/_helpers-backend.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ backend common labels
{{- define "loki.backendLabels" -}}
{{ include "loki.labels" . }}
app.kubernetes.io/component: backend
name: backend
{{- end }}

{{/*
Expand All @@ -19,6 +20,7 @@ backend selector labels
{{- define "loki.backendSelectorLabels" -}}
{{ include "loki.selectorLabels" . }}
app.kubernetes.io/component: backend
name: backend
{{- end }}

{{/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ compactor common labels
{{- define "loki.compactorLabels" -}}
{{ include "loki.labels" . }}
app.kubernetes.io/component: compactor
name: compactor
{{- end }}

{{/*
Expand All @@ -19,6 +20,7 @@ compactor selector labels
{{- define "loki.compactorSelectorLabels" -}}
{{ include "loki.selectorLabels" . }}
app.kubernetes.io/component: compactor
name: compactor
{{- end }}

{{/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ distributor common labels
{{- define "loki.distributorLabels" -}}
{{ include "loki.labels" . }}
app.kubernetes.io/component: distributor
name: distributor
{{- end }}

{{/*
Expand All @@ -19,6 +20,7 @@ distributor selector labels
{{- define "loki.distributorSelectorLabels" -}}
{{ include "loki.selectorLabels" . }}
app.kubernetes.io/component: distributor
name: distributor
{{- end }}

{{/*
Expand Down
2 changes: 2 additions & 0 deletions production/helm/loki/templates/gateway/_helpers-gateway.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ gateway common labels
{{- define "loki.gatewayLabels" -}}
{{ include "loki.labels" . }}
app.kubernetes.io/component: gateway
name: gateway
{{- end }}

{{/*
Expand All @@ -19,6 +20,7 @@ gateway selector labels
{{- define "loki.gatewaySelectorLabels" -}}
{{ include "loki.selectorLabels" . }}
app.kubernetes.io/component: gateway
name: gateway
{{- end }}

{{/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ index-gateway common labels
{{- define "loki.indexGatewayLabels" -}}
{{ include "loki.labels" . }}
app.kubernetes.io/component: index-gateway
name: index-gateway
{{- end }}

{{/*
Expand All @@ -19,6 +20,7 @@ index-gateway selector labels
{{- define "loki.indexGatewaySelectorLabels" -}}
{{ include "loki.selectorLabels" . }}
app.kubernetes.io/component: index-gateway
name: index-gateway
{{- end }}

{{/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ spec:
{{- include "loki.configVolume" . | nindent 10 }}
- name: runtime-config
configMap:
name: {{ template "loki.fullname" . }}-runtime
name: {{ template "loki.name" . }}-runtime
{{- if .Values.enterprise.enabled }}
- name: license
secret:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ spec:
{{- include "loki.configVolume" . | nindent 10 }}
- name: runtime-config
configMap:
name: {{ template "loki.fullname" . }}-runtime
name: {{ template "loki.name" . }}-runtime
{{- if .Values.enterprise.enabled }}
- name: license
secret:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ spec:
{{- include "loki.configVolume" . | nindent 10 }}
- name: runtime-config
configMap:
name: {{ template "loki.fullname" . }}-runtime
name: {{ template "loki.name" . }}-runtime
{{- if .Values.enterprise.enabled }}
- name: license
secret:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ spec:
{{- include "loki.configVolume" . | nindent 10 }}
- name: runtime-config
configMap:
name: {{ template "loki.fullname" . }}-runtime
name: {{ template "loki.name" . }}-runtime
{{- if .Values.enterprise.enabled }}
- name: license
secret:
Expand Down
2 changes: 2 additions & 0 deletions production/helm/loki/templates/loki-canary/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ canary common labels
{{- define "loki-canary.labels" -}}
{{ include "loki.labels" . }}
app.kubernetes.io/component: canary
name: canary
{{- end }}

{{/*
Expand All @@ -19,6 +20,7 @@ canary selector labels
{{- define "loki-canary.selectorLabels" -}}
{{ include "loki.selectorLabels" . }}
app.kubernetes.io/component: canary
name: canary
{{- end }}

{{/*
Expand Down
2 changes: 2 additions & 0 deletions production/helm/loki/templates/querier/_helpers-querier.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ querier common labels
{{- define "loki.querierLabels" -}}
{{ include "loki.labels" . }}
app.kubernetes.io/component: querier
name: querier
{{- end }}

{{/*
Expand All @@ -19,6 +20,7 @@ querier selector labels
{{- define "loki.querierSelectorLabels" -}}
{{ include "loki.selectorLabels" . }}
app.kubernetes.io/component: querier
name: querier
{{- end }}

{{/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ query-frontend common labels
{{- define "loki.queryFrontendLabels" -}}
{{ include "loki.labels" . }}
app.kubernetes.io/component: query-frontend
name: query-frontend
{{- end }}

{{/*
Expand All @@ -19,6 +20,7 @@ query-frontend selector labels
{{- define "loki.queryFrontendSelectorLabels" -}}
{{ include "loki.selectorLabels" . }}
app.kubernetes.io/component: query-frontend
name: query-frontend
{{- end }}

{{/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ spec:
{{- include "loki.configVolume" . | nindent 10 }}
- name: runtime-config
configMap:
name: {{ template "loki.fullname" . }}-runtime
name: {{ template "loki.name" . }}-runtime
{{- if .Values.enterprise.enabled }}
- name: license
secret:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ query-scheduler common labels
{{- define "loki.querySchedulerLabels" -}}
{{ include "loki.labels" . }}
app.kubernetes.io/component: query-scheduler
name: query-scheduler
{{- end }}

{{/*
Expand All @@ -19,6 +20,7 @@ query-scheduler selector labels
{{- define "loki.querySchedulerSelectorLabels" -}}
{{ include "loki.selectorLabels" . }}
app.kubernetes.io/component: query-scheduler
name: query-scheduler
{{- end }}

{{/*
Expand Down
2 changes: 2 additions & 0 deletions production/helm/loki/templates/read/_helpers-read.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ read common labels
{{- define "loki.readLabels" -}}
{{ include "loki.labels" . }}
app.kubernetes.io/component: read
name: read
{{- end }}

{{/*
Expand All @@ -19,6 +20,7 @@ read selector labels
{{- define "loki.readSelectorLabels" -}}
{{ include "loki.selectorLabels" . }}
app.kubernetes.io/component: read
name: read
{{- end }}

{{/*
Expand Down
2 changes: 2 additions & 0 deletions production/helm/loki/templates/ruler/_helpers-ruler.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ ruler common labels
{{- define "loki.rulerLabels" -}}
{{ include "loki.labels" . }}
app.kubernetes.io/component: ruler
name: ruler
{{- end }}

{{/*
Expand All @@ -19,6 +20,7 @@ ruler selector labels
{{- define "loki.rulerSelectorLabels" -}}
{{ include "loki.selectorLabels" . }}
app.kubernetes.io/component: ruler
name: ruler
{{- end }}

{{/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ spec:
{{- include "loki.configVolume" . | nindent 10 }}
- name: runtime-config
configMap:
name: {{ template "loki.fullname" . }}-runtime
name: {{ template "loki.name" . }}-runtime
{{- if .Values.enterprise.enabled }}
- name: license
secret:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ singleBinary common labels
{{- define "loki.singleBinaryLabels" -}}
{{ include "loki.labels" . }}
app.kubernetes.io/component: single-binary
name: single-binary
{{- end }}


{{/* singleBinary selector labels */}}
{{- define "loki.singleBinarySelectorLabels" -}}
{{ include "loki.selectorLabels" . }}
app.kubernetes.io/component: single-binary
name: single-binary
{{- end }}

{{/*
Expand Down
2 changes: 2 additions & 0 deletions production/helm/loki/templates/write/_helpers-write.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ write common labels
{{- define "loki.writeLabels" -}}
{{ include "loki.labels" . }}
app.kubernetes.io/component: write
name: write
{{- end }}

{{/*
Expand All @@ -19,6 +20,7 @@ write selector labels
{{- define "loki.writeSelectorLabels" -}}
{{ include "loki.selectorLabels" . }}
app.kubernetes.io/component: write
name: write
{{- end }}

{{/*
Expand Down

0 comments on commit 0a82135

Please sign in to comment.