Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helm Chart: Fix default deployment env vars to allow usage of chart as dependency #61

Merged
merged 4 commits into from
Feb 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions charts/otc-prometheus-exporter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ To install the chart with the release name otc-prometheus-exporter:

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| fullnameOverride | string | `""` | |
| nameOverride | string | `""` | |
| dashboards.as.enabled | bool | `true` | |
| dashboards.bms.enabled | bool | `true` | |
| dashboards.cbr.enabled | bool | `true` | |
Expand Down Expand Up @@ -50,7 +52,6 @@ To install the chart with the release name otc-prometheus-exporter:
| deployment.env.REGION | string | `"eu-de"` | |
| deployment.env.WAITDURATION | int | `60` | |
| deployment.envFromSecret | object | `{}` | |
| deployment.fullnameOverride | string | `""` | |
| deployment.health.liveness.path | string | `"/metrics"` | |
| deployment.health.liveness.periodSeconds | int | `180` | |
| deployment.health.liveness.port | int | `39100` | |
Expand All @@ -62,7 +63,6 @@ To install the chart with the release name otc-prometheus-exporter:
| deployment.image.repository | string | `"ghcr.io/iits-consulting/otc-prometheus-exporter"` | |
| deployment.image.tag | string | `""` | |
| deployment.imagePullSecrets | list | `[]` | |
| deployment.nameOverride | string | `""` | |
| deployment.podAnnotations | object | `{}` | |
| deployment.podSecurityContext | string | `nil` | |
| deployment.ports.metrics.port | int | `39100` | |
Expand All @@ -85,4 +85,4 @@ To install the chart with the release name otc-prometheus-exporter:
*This chart is provided by [iits-consulting](https://iits-consulting.de/) - your Cloud-Native Innovation Teams as a Service!*

----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.13.0](https://github.com/norwoodj/helm-docs/releases/v1.13.0)
Autogenerated from chart metadata using [helm-docs v1.13.0](https://github.com/norwoodj/helm-docs/releases/v1.13.0)
4 changes: 2 additions & 2 deletions charts/otc-prometheus-exporter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ spec:
- name: {{ printf "%s" $key | replace "." "_" | upper | quote }}
value: {{ tpl ($value | toString) $ | quote }}
{{- end }}
{{- if .Values.deployment.envSecretName}}
{{- if .Values.deployment.envFromSecret}}
envFrom:
- secretRef:
name: {{.Values.deployment.envSecretName}}
name: {{.Values.deployment.envFromSecret}}
{{- end }}
ports:
{{- range $name,$values := .Values.deployment.ports }}
Expand Down
27 changes: 14 additions & 13 deletions charts/otc-prometheus-exporter/values.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
nameOverride: ""
fullnameOverride: ""

serviceAccount:
# Specifies whether a service account should be created
create: true
Expand Down Expand Up @@ -28,8 +31,6 @@ deployment:
tag: ""

imagePullSecrets: [ ]
nameOverride: ""
fullnameOverride: ""

podAnnotations: { }

Expand Down Expand Up @@ -74,21 +75,21 @@ deployment:
# failureThreshold: # defaults to 3
port: 39100

env:
# set the values as required
FETCH_RESOURCE_ID_TO_NAME: false
WAITDURATION: 60
REGION: "eu-de"
PORT: 39100
OS_USERNAME: "" # Comment this line out or remove if using AK/SK
OS_PASSWORD: "" # Comment this line out or remove if using AK/SK
OS_PROJECT_ID: "f0f45389d6a947d88c8658fb8e1a1053" # Example f0f45389d6a947d88c8658fb8e1aXXX
OS_DOMAIN_NAME: "OTC-EU-DE-00000000001000058635" # Example OTC-EU-DE-000000000010000.... # This will be ignored when using the AK/SK Auth
env: { }
# set the values as required as long envFromSecret is not used
# FETCH_RESOURCE_ID_TO_NAME: false
# WAITDURATION: 60
# REGION: "eu-de"
# PORT: 39100
# OS_USERNAME: "" # Comment this line out or remove if using AK/SK
# OS_PASSWORD: "" # Comment this line out or remove if using AK/SK
# OS_PROJECT_ID: "f0f45389d6a947d88c8658fb8e1a1053" # Example f0f45389d6a947d88c8658fb8e1aXXX
# OS_DOMAIN_NAME: "OTC-EU-DE-00000000001000058635" # Example OTC-EU-DE-000000000010000.... # This will be ignored when using the AK/SK Auth
# OS_SECRET_KEY: "SK"
# OS_ACCESS_KEY: "AK"
# NAMESPACES: # If not set will fetch everything

#set the secret where to take env from
# set the secret where to take env from as long as "env" is not used
envFromSecret: { }

serviceMonitor:
Expand Down