From 9edae038129e26e756879fb75b5248fb50e16c3e Mon Sep 17 00:00:00 2001 From: Andrew Keesler Date: Tue, 14 Jul 2020 12:38:43 -0400 Subject: [PATCH] deployment.yaml: update config file format Signed-off-by: Andrew Keesler --- deploy/deployment.yaml | 9 ++++----- deploy/values.yaml | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/deploy/deployment.yaml b/deploy/deployment.yaml index 3daf7605..ea2697cc 100644 --- a/deploy/deployment.yaml +++ b/deploy/deployment.yaml @@ -18,10 +18,9 @@ metadata: data: #@yaml/text-templated-strings placeholder-config.yaml: | - apiVersion: v1alpha1 - webhookURL: (@= data.values.webhook_url @) - webhookCABundlePath: /etc/config/ca.pem - ca.pem: #@ data.values.webhook_ca_bundle + webhook: + url: (@= data.values.webhook_url @) + caBundle: (@= data.values.webhook_ca_bundle @) --- apiVersion: apps/v1 kind: Deployment @@ -58,4 +57,4 @@ spec: volumes: - name: config-volume configMap: - name: #@ data.values.app_name + "-config" \ No newline at end of file + name: #@ data.values.app_name + "-config" diff --git a/deploy/values.yaml b/deploy/values.yaml index 09b781d0..a5605efc 100644 --- a/deploy/values.yaml +++ b/deploy/values.yaml @@ -11,4 +11,4 @@ image_digest: #! e.g. sha256:f3c4fdfd3ef865d4b97a1fd295d94acc3f0c654c46b6f27ffad image_tag: #! e.g. latest webhook_url: #! e.g., https://example.com -webhook_ca_bundle: #! e.g., "-----BEGIN CERTIFICATE----- [...]" +webhook_ca_bundle: #! e.g., LS0tLS1CRUdJTiBDRVJUSUZJQ0F...