Skip to content

Commit 7873d30

Browse files
author
Georg Martin Weber
committed
fix remaining installation.yaml tasks
1 parent f67c426 commit 7873d30

File tree

4 files changed

+15
-27
lines changed

4 files changed

+15
-27
lines changed

hull-vidispine-addon/files/test/HULL/specs/job.spec

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,19 @@ Test creation of objects and features.
1919
## Installation Job
2020
* Render
2121
* Set test object to "release-name-hull-test-hull-install"
22-
* Test Object has key "spec§template§spec§containers§0§volumeMounts" with array value that has "3" items
22+
* Test Object has key "spec§template§spec§containers§0§volumeMounts" with array value that has "2" items
2323
* Test Object has key "spec§template§spec§containers§0§volumeMounts§0§name" with value "custom-installation-files"
24-
* Test Object has key "spec§template§spec§containers§0§volumeMounts§1§name" with value "installation"
2524

26-
* Test Object has key "spec§template§spec§volumes" with array value that has "3" items
25+
* Test Object has key "spec§template§spec§volumes" with array value that has "2" items
2726
* Test Object has key "spec§template§spec§volumes§0§name" with value "custom-installation-files"
28-
* Test Object has key "spec§template§spec§volumes§1§name" with value "installation"
2927

3028
## Certificates
3129
* Prepare default test case for this kind including suites "pod,customcacertificates"
3230
* Render
3331

3432
* Set test object to "release-name-hull-test-hull-install"
3533

36-
* Test Object has key "spec§template§spec§containers§0§volumeMounts" with array value that has "6" items
34+
* Test Object has key "spec§template§spec§containers§0§volumeMounts" with array value that has "5" items
3735
* Test Object has key "spec§template§spec§containers§0§volumeMounts§0§name" with value "certs"
3836
* Test Object has key "spec§template§spec§containers§0§volumeMounts§0§mountPath" with value "/usr/local/share/ca-certificates/custom-ca-certificates-test_cert_1"
3937
* Test Object has key "spec§template§spec§containers§0§volumeMounts§1§name" with value "certs"
@@ -42,16 +40,12 @@ Test creation of objects and features.
4240
* Test Object has key "spec§template§spec§containers§0§volumeMounts§2§mountPath" with value "/custom-installation-files"
4341
* Test Object has key "spec§template§spec§containers§0§volumeMounts§3§name" with value "etcssl"
4442
* Test Object has key "spec§template§spec§containers§0§volumeMounts§3§mountPath" with value "/etc/ssl/certs"
45-
* Test Object has key "spec§template§spec§containers§0§volumeMounts§4§name" with value "installation"
46-
* Test Object has key "spec§template§spec§containers§0§volumeMounts§4§mountPath" with value "/script/installation.yaml"
47-
* Test Object has key "spec§template§spec§containers§0§volumeMounts§4§subPath" with value "installation.yaml"
4843

49-
* Test Object has key "spec§template§spec§volumes" with array value that has "5" items
44+
* Test Object has key "spec§template§spec§volumes" with array value that has "4" items
5045
* Test Object has key "spec§template§spec§volumes§0§name" with value "certs"
5146
* Test Object has key "spec§template§spec§volumes§1§name" with value "custom-installation-files"
5247
* Test Object has key "spec§template§spec§volumes§2§name" with value "etcssl"
53-
* Test Object has key "spec§template§spec§volumes§3§name" with value "installation"
54-
* Test Object has key "spec§template§spec§volumes§4§name" with value "oci-license"
48+
* Test Object has key "spec§template§spec§volumes§3§name" with value "oci-license"
5549

5650
* Set test object to "release-name-hull-test-custom-ca-certificates" of kind "Secret"
5751
* Test Object has key "data§test_cert_1" with Base64 encoded value of "CERT-DATA-1"
@@ -62,7 +56,7 @@ Test creation of objects and features.
6256

6357
* Set test object to "release-name-hull-test-hull-install"
6458

65-
* Test Object has key "spec§template§spec§containers§0§volumeMounts" with array value that has "7" items
59+
* Test Object has key "spec§template§spec§containers§0§volumeMounts" with array value that has "6" items
6660
* Test Object has key "spec§template§spec§containers§0§volumeMounts§0§name" with value "certs-opensearch"
6761
* Test Object has key "spec§template§spec§containers§0§volumeMounts§0§mountPath" with value "/usr/local/share/ca-certificates/custom-ca-certificates-opensearch-cert.tls"
6862
* Test Object has key "spec§template§spec§containers§0§volumeMounts§1§name" with value "certs-opensearch"
@@ -74,23 +68,22 @@ Test creation of objects and features.
7468
* Test Object has key "spec§template§spec§containers§0§volumeMounts§4§name" with value "etcssl"
7569
* Test Object has key "spec§template§spec§containers§0§volumeMounts§4§mountPath" with value "/etc/ssl/certs"
7670

77-
* Test Object has key "spec§template§spec§volumes" with array value that has "6" items
71+
* Test Object has key "spec§template§spec§volumes" with array value that has "5" items
7872
* Test Object has key "spec§template§spec§volumes§0§name" with value "certs-opensearch"
7973
* Test Object has key "spec§template§spec§volumes§0§secret§secretName" with value "opensearch-node-certs"
8074
* Test Object has key "spec§template§spec§volumes§1§name" with value "certs-storage"
8175
* Test Object has key "spec§template§spec§volumes§1§secret§secretName" with value "storage-server-secret"
8276
* Test Object has key "spec§template§spec§volumes§2§name" with value "custom-installation-files"
8377
* Test Object has key "spec§template§spec§volumes§3§name" with value "etcssl"
84-
* Test Object has key "spec§template§spec§volumes§4§name" with value "installation"
85-
* Test Object has key "spec§template§spec§volumes§5§name" with value "oci-license"
78+
* Test Object has key "spec§template§spec§volumes§4§name" with value "oci-license"
8679

8780

8881
* Prepare default test case for this kind including suites "pod,certificatesecrets,customcacertificates"
8982
* Render
9083

9184
* Set test object to "release-name-hull-test-hull-install"
9285

93-
* Test Object has key "spec§template§spec§containers§0§volumeMounts" with array value that has "9" items
86+
* Test Object has key "spec§template§spec§containers§0§volumeMounts" with array value that has "8" items
9487
* Test Object has key "spec§template§spec§containers§0§volumeMounts§0§name" with value "certs-opensearch"
9588
* Test Object has key "spec§template§spec§containers§0§volumeMounts§0§mountPath" with value "/usr/local/share/ca-certificates/custom-ca-certificates-opensearch-cert.tls"
9689
* Test Object has key "spec§template§spec§containers§0§volumeMounts§1§name" with value "certs-opensearch"
@@ -106,16 +99,15 @@ Test creation of objects and features.
10699
* Test Object has key "spec§template§spec§containers§0§volumeMounts§6§name" with value "etcssl"
107100
* Test Object has key "spec§template§spec§containers§0§volumeMounts§6§mountPath" with value "/etc/ssl/certs"
108101

109-
* Test Object has key "spec§template§spec§volumes" with array value that has "7" items
102+
* Test Object has key "spec§template§spec§volumes" with array value that has "6" items
110103
* Test Object has key "spec§template§spec§volumes§0§name" with value "certs"
111104
* Test Object has key "spec§template§spec§volumes§1§name" with value "certs-opensearch"
112105
* Test Object has key "spec§template§spec§volumes§1§secret§secretName" with value "opensearch-node-certs"
113106
* Test Object has key "spec§template§spec§volumes§2§name" with value "certs-storage"
114107
* Test Object has key "spec§template§spec§volumes§2§secret§secretName" with value "storage-server-secret"
115108
* Test Object has key "spec§template§spec§volumes§3§name" with value "custom-installation-files"
116109
* Test Object has key "spec§template§spec§volumes§4§name" with value "etcssl"
117-
* Test Object has key "spec§template§spec§volumes§5§name" with value "installation"
118-
* Test Object has key "spec§template§spec§volumes§6§name" with value "oci-license"
110+
* Test Object has key "spec§template§spec§volumes§5§name" with value "oci-license"
119111

120112
___
121113

hull-vidispine-addon/files/test/HULL/specs/secret.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Test creation of objects and features.
66

77
## Render and Validate
88
* Render
9-
* Expected number of "13" objects were rendered
9+
* Expected number of "12" objects were rendered
1010
* Validate
1111

1212
## Metadata

hull-vidispine-addon/hull-vidispine-addon.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,12 +640,12 @@ hull:
640640
helm.sh/hook-weight: "-15"
641641
helm.sh/hook-delete-policy: before-hook-creation
642642
'hull-install':
643+
enabled: _HT*hull.config.general.data.installation.config.debug.debugInstallerScript
643644
sources:
644645
- custom-installation-files-setup
645646
- _HULL_OBJECT_TYPE_DEFAULT_
646647
data:
647648
Installer.ps1:
648-
enabled: _HT*hull.config.general.data.installation.config.debug.debugInstallerScript
649649
inline: |-
650650
*** ENABLE hull.config.general.data.installation.config.debug.debugInstallerScript
651651
*** AND COPY SCRIPT CODE FROM

hull-vidispine-addon/templates/_transformations.tpl

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,12 @@ Icon: |-
108108
{{ define "hull.vidispine.addon.sources.folder.volumes" }}
109109
{{ $parent := (index . "PARENT_CONTEXT") }}
110110
{
111+
{{ if $parent.Values.hull.config.general.data.installation.config.debug.debugInstallerScript }}
111112
"installation":
112113
{
113114
"secret":{ "secretName": "hull-install" }
114115
},
116+
{{ end }}
115117
"custom-installation-files":
116118
{
117119
"secret": { "secretName": "custom-installation-files" }
@@ -163,12 +165,6 @@ Icon: |-
163165
{{ define "hull.vidispine.addon.sources.folder.volumemounts" }}
164166
{{ $parent := (index . "PARENT_CONTEXT") }}
165167
{
166-
"installation":
167-
{
168-
"name": "installation",
169-
"mountPath": "/script/installation.yaml",
170-
"subPath": "installation.yaml"
171-
},
172168
{{ if $parent.Values.hull.config.general.data.installation.config.debug.debugInstallerScript }}
173169
"installer":
174170
{

0 commit comments

Comments
 (0)