Skip to content

Commit

Permalink
Added example for secret expansion, updated to go 1.20
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafaakin committed Jul 21, 2023
1 parent 0ded9ab commit fe1fd7c
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ jobs:
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.19
- name: Set up Go 1.20
uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: 1.20
id: go

- name: Check out code into the Go module directory
Expand Down
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
.idea/
.DS_Store
fork.sh
.DS_Store
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.19 AS builder
FROM golang:1.20 AS builder

ADD . /app
WORKDIR /app
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ receivers:
* A route can have many sub-routes, forming a tree.
* Routing starts from the root route.

## Using Secrets

In your config file, you can refer to environment variables as `${API_KEY}` therefore you can use ConfigMap or Secrets
to keep the config file clean of secrets.

## Troubleshoot "Events Discarded" warning:

- If there are `client-side throttling` warnings in the event-exporter log:
Expand Down
1 change: 1 addition & 0 deletions config.example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ receivers:
hosts:
- "http://localhost:9200"
indexFormat: "kube-events-{2006-01-02}"
apiKey: ${ELASTIC_API_KEY}
- name: "opensearch-dump"
opensearch:
hosts:
Expand Down

0 comments on commit fe1fd7c

Please sign in to comment.