Skip to content

Commit

Permalink
Add validation for datadot api key
Browse files Browse the repository at this point in the history
  • Loading branch information
pablovilas committed Oct 12, 2024
1 parent 62b6d0f commit 0df9180
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions charts/base/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: nullplatform-chart
description: A Helm chart for deploying the nullplatform applications using Kubernetes
type: application
version: 0.0.1
appVersion: "0.0.1"
version: 0.0.2
appVersion: "0.0.2"
dependencies:
- name: metrics-server
version: ^3.12.0 # Use the appropriate version you need
Expand Down
3 changes: 2 additions & 1 deletion charts/base/templates/datadog-secret.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{{- if .Values.logging.datadog.enabled }}
{{ $apiKey := required "The 'logging.datadog.apiKey' field is required when logging.datadog.enabled is true" .Values.logging.datadog.apiKey }}
apiVersion: v1
kind: Secret
metadata:
name: datadog-secret
namespace: nullplatform-tools
type: Opaque
data:
DATADOG_API_KEY: {{ .Values.logging.datadog.apiKey | b64enc | quote }}
DATADOG_API_KEY: {{ $apiKey | b64enc | quote }}
{{- end }}

0 comments on commit 0df9180

Please sign in to comment.