From bc0f9ec8e2ac9e9c114c8a661b3a3b27bad88689 Mon Sep 17 00:00:00 2001 From: Martin Linkhorst Date: Fri, 1 Mar 2024 11:56:04 +0100 Subject: [PATCH] Add a versioned configmap to the e2e sample stackset (#605) This uses a versioned ConfigMap in the sample deployment so we have this covered. --- e2e/apply/sample-segment.yaml | 22 ++++++++++++++++++++++ e2e/apply/sample.yaml | 22 ++++++++++++++++++++++ 2 files changed, 44 insertions(+) diff --git a/e2e/apply/sample-segment.yaml b/e2e/apply/sample-segment.yaml index 93665293..5f433070 100644 --- a/e2e/apply/sample-segment.yaml +++ b/e2e/apply/sample-segment.yaml @@ -19,6 +19,9 @@ spec: spec: version: "{{{CDP_BUILD_VERSION}}}" replicas: 2 + configurationResources: + - configMapRef: + name: e2e-deploy-sample-segment-{{{CDP_BUILD_VERSION}}}-config autoscaler: minReplicas: 2 maxReplicas: 2 @@ -49,3 +52,22 @@ spec: limits: cpu: 1m memory: 100Mi + volumeMounts: + - name: my-config + mountPath: /etc/my-config + readOnly: true + volumes: + - name: my-config + configMap: + name: e2e-deploy-sample-segment-{{{CDP_BUILD_VERSION}}}-config + +--- + +apiVersion: v1 +kind: ConfigMap +metadata: + name: e2e-deploy-sample-segment-{{{CDP_BUILD_VERSION}}}-config + labels: + application: "e2e-deploy-sample-segment" +data: + something_is: configured diff --git a/e2e/apply/sample.yaml b/e2e/apply/sample.yaml index bcaa8f0d..4972536e 100644 --- a/e2e/apply/sample.yaml +++ b/e2e/apply/sample.yaml @@ -18,6 +18,9 @@ spec: spec: version: "{{{CDP_BUILD_VERSION}}}" replicas: 2 + configurationResources: + - configMapRef: + name: e2e-deploy-sample-{{{CDP_BUILD_VERSION}}}-config autoscaler: minReplicas: 2 maxReplicas: 2 @@ -48,3 +51,22 @@ spec: limits: cpu: 1m memory: 100Mi + volumeMounts: + - name: my-config + mountPath: /etc/my-config + readOnly: true + volumes: + - name: my-config + configMap: + name: e2e-deploy-sample-{{{CDP_BUILD_VERSION}}}-config + +--- + +apiVersion: v1 +kind: ConfigMap +metadata: + name: e2e-deploy-sample-{{{CDP_BUILD_VERSION}}}-config + labels: + application: "e2e-deploy-sample" +data: + something_is: configured