Skip to content

Commit 728d2b1

Browse files
committed
Add dry run test for multi-doc yaml files
Signed-off-by: Steven Crespo <[email protected]>
1 parent 55bd53d commit 728d2b1

File tree

2 files changed

+23
-5
lines changed

2 files changed

+23
-5
lines changed

tests/dryrun/assets/kotskinds-chart.yaml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ spec:
1818
port: 80
1919
replicaCount: 1
2020
imagePullSecrets:
21-
- name: '{{repl ImagePullSecretName }}'
21+
- name: "{{repl ImagePullSecretName }}"
2222
env:
2323
- name: PRIVATE_CA_CONFIGMAP
24-
value: 'repl{{ PrivateCACert }}'
24+
value: "repl{{ PrivateCACert }}"
2525
- name: SSL_CERT_DIR
2626
value: "/etc/ssl/certs"
2727
client:
@@ -31,14 +31,14 @@ spec:
3131
replicaCount: 1
3232
intervalSeconds: 60
3333
imagePullSecrets:
34-
- name: '{{repl ImagePullSecretName }}'
34+
- name: "{{repl ImagePullSecretName }}"
3535
replicated:
3636
enabled: true
3737
image:
3838
registry: repl{{ HasLocalRegistry | ternary LocalRegistryHost "ec-e2e-proxy.testcluster.net" }}
3939
repository: repl{{ HasLocalRegistry | ternary LocalRegistryNamespace "anonymous/registry.replicated.com/library" }}/replicated-sdk-image
4040
imagePullSecrets:
41-
- name: '{{repl ImagePullSecretName }}'
41+
- name: "{{repl ImagePullSecretName }}"
4242
configItemsConfigMapData:
4343
text_required: repl{{ ConfigOption "text_required" }}
4444

@@ -54,8 +54,23 @@ spec:
5454
volumes:
5555
- name: ca-certs
5656
configMap:
57-
name: 'repl{{ PrivateCACert }}'
57+
name: "repl{{ PrivateCACert }}"
5858

5959
builder:
6060
replicated:
6161
enabled: true
62+
# Do not remove the HelmChart document below. This file is intentionally a multi-document YAML file
63+
# for regression testing of SC-131165 bug fix.
64+
---
65+
apiVersion: kots.io/v1beta2
66+
kind: HelmChart
67+
metadata:
68+
name: nginx-app-secondary
69+
spec:
70+
chart:
71+
name: nginx-app
72+
chartVersion: 0.1.0
73+
namespace: nginx-app-secondary
74+
values:
75+
server:
76+
replicaCount: 1

tests/dryrun/assets/kotskinds-config.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Do not remove the leading "---" separator below. It is intentional and required for
2+
# regression testing of SC-131165 bug fix.
3+
---
14
apiVersion: kots.io/v1beta1
25
kind: Config
36
spec:

0 commit comments

Comments
 (0)