From e6a3098964db13139b135b35e2af2cefda83e1fa Mon Sep 17 00:00:00 2001 From: Marek Date: Tue, 3 May 2022 13:16:50 +0200 Subject: [PATCH] #10 helm charts --- .../eck-custom-resources-operator/Chart.yaml | 2 +- .../templates/configmap.yaml | 20 +++++++++---------- .../eck-custom-resources-operator/values.yaml | 20 +++++++++++++++++++ 3 files changed, 31 insertions(+), 11 deletions(-) diff --git a/charts/eck-custom-resources-operator/Chart.yaml b/charts/eck-custom-resources-operator/Chart.yaml index 5b525aa..e34b4fe 100644 --- a/charts/eck-custom-resources-operator/Chart.yaml +++ b/charts/eck-custom-resources-operator/Chart.yaml @@ -3,4 +3,4 @@ name: eck-custom-resources-operator description: A Helm chart for Kubernetes type: application version: 0.7.0 -appVersion: 0.0.1-alpha3 +appVersion: 0.0.1-alpha6 diff --git a/charts/eck-custom-resources-operator/templates/configmap.yaml b/charts/eck-custom-resources-operator/templates/configmap.yaml index 49cb146..19f44b7 100644 --- a/charts/eck-custom-resources-operator/templates/configmap.yaml +++ b/charts/eck-custom-resources-operator/templates/configmap.yaml @@ -15,21 +15,21 @@ data: kind: ControllerManagerConfig manager: health: - healthProbeBindAddress: ":8081" + healthProbeBindAddress: {{ .Values.manager.health.healthProbeBindAddress }} metrics: - bindAddress: 127.0.0.1:8080 + bindAddress: {{ .Values.manager.metrics.bindAddress }} webhook: - port: 9443 + port: {{ .Values.manager.webhook.port }} leaderElection: - leaderElect: true - resourceName: github.com/xco-sk/eck-custom-resources + leaderElect: {{ .Values.manager.leaderElection.leaderElect }} + resourceName: eck-custom-resources.xco-sk.github.com elasticsearch: - url: https://quickstart-es-http:9200 + url: {{ .Values.elasticsearch.url }} certificate: - secretName: quickstart-es-http-certs-public - certificateKey: ca.crt + secretName: {{ .Values.elasticsearch.certificate.secretName }} + certificateKey: {{ .Values.elasticsearch.certificate.certificateKey }} authentication: usernamePasswordSecret: - secretName: quickstart-es-elastic-user - userName: elastic + secretName: {{ .Values.elasticsearch.authentication.usernamePasswordSecret.secretName }} + userName: {{ .Values.elasticsearch.authentication.usernamePasswordSecret.userName }} diff --git a/charts/eck-custom-resources-operator/values.yaml b/charts/eck-custom-resources-operator/values.yaml index 407117d..acf245a 100644 --- a/charts/eck-custom-resources-operator/values.yaml +++ b/charts/eck-custom-resources-operator/values.yaml @@ -73,3 +73,23 @@ nodeSelector: {} tolerations: [] affinity: {} + +manager: + health: + healthProbeBindAddress: ":8081" + metrics: + bindAddress: 127.0.0.1:8080 + webhook: + port: 9443 + leaderElection: + leaderElect: true + +elasticsearch: + url: https://quickstart-es-http:9200 + certificate: + secretName: quickstart-es-http-certs-public + certificateKey: ca.crt + authentication: + usernamePasswordSecret: + secretName: quickstart-es-elastic-user + userName: elastic