-
-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(helm): Add an ability to set addition env via helm (#399)
* feat: Add local bin dir to helmignore In case somebody wants to test the chart locally, after generating docs, tests will fail, because helm will consider bin as a part of the chart, and the size of the binary is too big to be installed to k8s * feat: Add an ability to set addition env via helm Now it should be possible to set addition environment variables that are going to be used by sql_exporter deployment. User can either set a value of the variable, so it's taken directly from Values, or use a value from an already existing Secret or ConfigMap.
- Loading branch information
Nikolai Rodionov
authored
Nov 21, 2023
1 parent
885c365
commit bf66c18
Showing
5 changed files
with
41 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,3 +21,5 @@ | |
.idea/ | ||
*.tmproj | ||
.vscode/ | ||
# Dir with local binaries | ||
bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,13 +23,15 @@ service: | |
# -- Service labels | ||
labels: {} | ||
# -- Service annotations | ||
annotations: {} | ||
annotations: | ||
{} | ||
# example of prometheus usage | ||
# prometheus.io/scrape: "true" | ||
# prometheus.io/path: "/metrics" | ||
|
||
# -- Resource limits and requests for the application controller pods | ||
resources: {} | ||
resources: | ||
{} | ||
# limits: | ||
# cpu: 100m | ||
# memory: 128Mi | ||
|
@@ -43,7 +45,8 @@ podLabels: {} | |
podAnnotations: {} | ||
|
||
# -- Pod security context | ||
podSecurityContext: {} | ||
podSecurityContext: | ||
{} | ||
# capabilities: | ||
# drop: | ||
# - ALL | ||
|
@@ -64,6 +67,16 @@ serviceMonitor: | |
# -- ServiceMonitor scrape timeout | ||
# scrapeTimeout: 10s | ||
|
||
# Additional env variables | ||
# - kind should be either Secret or ConfigMap | ||
# - name is the name of the Secret or ConfigMap that should be used | ||
# - key is the key of the object inside of a Secret or ConfigMap | ||
# env: | ||
# SQLEXPORTER_TARGET_DSN: | ||
# from: | ||
# kind: Secret | ||
# name: sql_exporter_secret | ||
# key: CONNECTION_STRING | ||
config: | ||
global: | ||
# -- Scrape timeout | ||
|
@@ -76,7 +89,6 @@ config: | |
max_connections: 3 | ||
# -- Number of idle connections. | ||
max_idle_connections: 3 | ||
|
||
# Target and collectors are not set so the chart is more flexible. Please configure it yourself. | ||
# target: | ||
# data_source_name: 'sqlserver://prom_user:[email protected]:1433' | ||
|