Added example for secret expansion, updated to go 1.20

This commit is contained in:
Mustafa Akın
2023-07-21 11:31:05 +03:00
parent 0ded9ab7ab
commit fe1fd7cccc
5 changed files with 10 additions and 5 deletions

View File

@@ -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

1
.gitignore vendored
View File

@@ -1,3 +1,2 @@
.idea/
.DS_Store
fork.sh

View File

@@ -1,4 +1,4 @@
FROM golang:1.19 AS builder
FROM golang:1.20 AS builder
ADD . /app
WORKDIR /app

View File

@@ -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:

View File

@@ -36,6 +36,7 @@ receivers:
hosts:
- "http://localhost:9200"
indexFormat: "kube-events-{2006-01-02}"
apiKey: ${ELASTIC_API_KEY}
- name: "opensearch-dump"
opensearch:
hosts: