Skip to content

Commit

Permalink
Add a versioned configmap to the e2e sample stackset (#605)
Browse files Browse the repository at this point in the history
This uses a versioned ConfigMap in the sample deployment so we have this covered.
  • Loading branch information
linki committed Mar 1, 2024
1 parent 52e904f commit bc0f9ec
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
22 changes: 22 additions & 0 deletions e2e/apply/sample-segment.yaml
Expand Up @@ -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
Expand Down Expand Up @@ -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
22 changes: 22 additions & 0 deletions e2e/apply/sample.yaml
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit bc0f9ec

Please sign in to comment.