You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(lmlogs): user defined secret support for lmlogs (#541)
* feat(lmlogs): userDefinedSecret support for lmlogs
* feat(lmlogs): incrementing the chart version for logs
* feat(lmlogs): minor changes for adding chart validations
* feat(lmlogs): fixing linting error
* feat(lmlogs): lint validation fixes
* feat(lmlogs): adding default value for authMode and reerting image tag
You can create a kubernetes secret with your LM credentials and pass the secret name to the chart.
82
+
The secret must contain the following keys:
83
+
- account
84
+
- accessID
85
+
- accessKey
86
+
- bearerToken (if accessKey/accessID is not present in the secret)
87
+
Also, the authMode needs to be set accordingly. If the secret contains accessID/accessKey, authMode should be set to lmv1, otherwise bearer (similarly it should be set for the configurable parameters).
64
88
#### New deviceless logs k8s integration (beta)
65
89
Note: This feature may not be available to all customers.
66
90
To enable this feature set `fluent.device_less_logs=true`
{{- fail "LM v1 auth selected (authMode=lmv1) but no lmv1 found. Provide either: Secret with 'accessID'+'accessKey', or global.accessID+global.accessKey, or lm_access_id+lm_access_key." -}}
117
+
{{- end -}}
118
+
119
+
{{- elseifeq$mode"bearer" -}}
120
+
{{- $hasBearerFromSecret := and (ne$uds"") ($secHas.bearerToken | defaultfalse) -}}
121
+
{{- $hasBearerFromValues := ne (default"" .Values.lm_bearer_token) "" -}}
company_name {{ if .context.Values.lm_company_name }}{{ .context.Values.lm_company_name }}{{ else}}{{ required "A valid .Values.lm_company_name or .Values.global.account entry is required!" .context.Values.global.account }}{{ end }}
{{ required "Either specify valid lm_access_id and lm_access_key both or lm_bearer_token for authentication with LogicMonitor." .context.Values.lm_bearer_token }}
Copy file name to clipboardExpand all lines: charts/lm-logs/values.schema.json
+67-4Lines changed: 67 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -165,6 +165,15 @@
165
165
""
166
166
],
167
167
"$comment": "ui:clusterName-ignore tf:"
168
+
},
169
+
"userDefinedSecret": {
170
+
"type": "string",
171
+
"title": "Existing Kubernetes Secret name",
172
+
"description": "Name of a Secret that contains credentials for lm-logs. Expected keys: 'account' and either ('accessID' + 'accessKey') or 'bearerToken'.",
173
+
"default": "",
174
+
"examples": [
175
+
"lm-logs-credentials"
176
+
]
168
177
}
169
178
}
170
179
},
@@ -427,13 +436,67 @@
427
436
"type": "boolean",
428
437
"default": true,
429
438
"description": "If true and no custom systemd.conf is provided, a default configuration for systemd will be injected. If false, systemd will be disabled regardless of conf."
439
+
},
440
+
"authMode": {
441
+
"description": "If bearer then will use bearerToken if set, if lmv1 will use accessID/accessKey if set.",
0 commit comments