Skip to content

Commit 9cd213c

Browse files
authored
feat(lmc): add debug-info in configmap (#96)
1 parent 8eb439d commit 9cd213c

File tree

3 files changed

+39
-3
lines changed

3 files changed

+39
-3
lines changed

charts/lm-container/Chart.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: lm-container
33
description: A Helm chart for Logicmonitor's Kubernetes monitoring solutions
44
type: application
5-
version: 1.1.0-rc13
5+
version: 1.1.0-rc14
66
maintainers:
77
- name: LogicMonitor
88
@@ -11,7 +11,7 @@ kubeVersion: ">= 1.16.0-0"
1111
dependencies:
1212
- name: argus
1313
# need to explicitly quote to make it string, else json schema fails
14-
version: "2.2.0-rc09"
14+
version: "2.2.0-rc10"
1515
repository: https://logicmonitor.github.io/helm-charts-qa
1616
# uncomment to test umbrella chart in while developing
1717
# repository: file://../argus
@@ -22,7 +22,7 @@ dependencies:
2222
- monitoring
2323
- name: collectorset-controller
2424
# need to explicitly quote to make it string, else json schema fails
25-
version: "1.1.0-rc07"
25+
version: "1.1.0-rc08"
2626
repository: https://logicmonitor.github.io/helm-charts-qa
2727
# uncomment to test umbrella chart in while developing
2828
# repository: file://../collectorset-controller

charts/lm-container/templates/_helpers.tpl

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,17 @@ Create the name of the service account to use
6060
{{- default "default" .Values.serviceAccount.name }}
6161
{{- end }}
6262
{{- end }}
63+
64+
{{/*
65+
Allow the release namespace to be overridden for multi-namespace deployments in combined charts
66+
*/}}
67+
{{- define "lm-container.namespace" -}}
68+
{{- if .Values.namespaceOverride -}}
69+
{{- .Values.namespaceOverride -}}
70+
{{- else -}}
71+
{{- .Release.Namespace -}}
72+
{{- end -}}
73+
{{- end -}}
74+
75+
{{- define "lm-container.annotations" -}}
76+
{{- end }}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
apiVersion: v1
2+
kind: ConfigMap
3+
metadata:
4+
name: {{ include "lm-container.fullname" . }}
5+
namespace: {{ template "lm-container.namespace" . }}
6+
labels:
7+
logicmonitor.com/version: v3
8+
{{- include "lm-container.labels" . | nindent 4 }}
9+
annotations:
10+
helm-chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
11+
helm-revision: "{{ .Release.Revision }}"
12+
## keep value false as string, spinnaker's limitation, otherwise spinnaker fails to cast boolean to string
13+
strategy.spinnaker.io/versioned: "false"
14+
{{- include "lm-container.annotations" . | nindent 4 }}
15+
data:
16+
debug-info: |
17+
capabilities:
18+
{{- toYaml .Capabilities | nindent 6 }}
19+
release:
20+
{{- toYaml .Release | nindent 6 }}
21+
values:
22+
{{- toYaml .Values | nindent 6 }}

0 commit comments

Comments
 (0)