Skip to content

Commit

Permalink
[Feature] support passing the log level in api fetcher chart
Browse files Browse the repository at this point in the history
  • Loading branch information
8naama authored Nov 17, 2024
2 parents 279df00 + 4dffd24 commit fdb2821
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 12 deletions.
2 changes: 1 addition & 1 deletion charts/logzio-api-fetcher/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: logzio-api-fetcher
description: Helm chart for deploying the Logz.io API Fetcher
type: application
version: 1.0.2
version: 1.1.0
appVersion: "0.2.2"
maintainers:
- name: yotamloe
Expand Down
5 changes: 4 additions & 1 deletion charts/logzio-api-fetcher/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ By default `cloudflare` API type:

</details>

> To change the logging level, update `values.image.loglevel` (default is `INFO`).
### Example

#### Auth api config:
Expand Down Expand Up @@ -368,7 +370,8 @@ oauth_apis:
```

## Changelog:

- **1.1.0**:
- Add option to control logging level
- **1.0.2**:
- Update api fetcher version to 0.2.2
- **1.0.1**:
Expand Down
11 changes: 1 addition & 10 deletions charts/logzio-api-fetcher/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,15 @@ spec:
labels:
app: {{ .Release.Name }}
spec:
initContainers:
- name: init-last-start-dates
image: busybox
command: ['sh', '-c', 'touch /app/src/shared/last_start_dates.txt']
volumeMounts:
- name: data-volume
mountPath: /app/src/shared
containers:
- name: logzio-api-fetcher
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
args: ["--level", "{{ .Values.image.loglevel | default "INFO" }}"]
volumeMounts:
- name: config-volume
mountPath: /app/src/shared/config.yaml
subPath: config.yaml
- name: data-volume
mountPath: /app/src/shared/last_start_dates.txt
subPath: last_start_dates.txt
volumes:
- name: config-volume
configMap:
Expand Down
1 change: 1 addition & 0 deletions charts/logzio-api-fetcher/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ image:
repository: logzio/logzio-api-fetcher
tag: 0.2.2
pullPolicy: IfNotPresent
loglevel: INFO # One of INFO, WARN, ERROR, DEBUG

# Custom configuration section for logzio-api-fetcher
config: |
Expand Down

0 comments on commit fdb2821

Please sign in to comment.