Skip to content

Commit fe1fd7c

Browse files
committed
Added example for secret expansion, updated to go 1.20
1 parent 0ded9ab commit fe1fd7c

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

.github/workflows/test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ jobs:
66
runs-on: ubuntu-latest
77
steps:
88

9-
- name: Set up Go 1.19
9+
- name: Set up Go 1.20
1010
uses: actions/setup-go@v3
1111
with:
12-
go-version: 1.19
12+
go-version: 1.20
1313
id: go
1414

1515
- name: Check out code into the Go module directory

.gitignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
.idea/
2-
.DS_Store
3-
fork.sh
2+
.DS_Store

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.19 AS builder
1+
FROM golang:1.20 AS builder
22

33
ADD . /app
44
WORKDIR /app

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ receivers:
6868
* A route can have many sub-routes, forming a tree.
6969
* Routing starts from the root route.
7070

71+
## Using Secrets
72+
73+
In your config file, you can refer to environment variables as `${API_KEY}` therefore you can use ConfigMap or Secrets
74+
to keep the config file clean of secrets.
75+
7176
## Troubleshoot "Events Discarded" warning:
7277

7378
- If there are `client-side throttling` warnings in the event-exporter log:

config.example.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ receivers:
3636
hosts:
3737
- "http://localhost:9200"
3838
indexFormat: "kube-events-{2006-01-02}"
39+
apiKey: ${ELASTIC_API_KEY}
3940
- name: "opensearch-dump"
4041
opensearch:
4142
hosts:

0 commit comments

Comments
 (0)