@@ -644,6 +644,60 @@ hull:
644644 - custom-installation-files-setup
645645 - _HULL_OBJECT_TYPE_DEFAULT_
646646 data :
647+ installation.yaml :
648+ inline : |-
649+ {{- with (index $.Values "hull").config.general.data.installation }}
650+ {{- $configScope := . -}}
651+ {{- $configScopeEndpoints := dict -}}
652+ {{- if hasKey . "endpoints" -}}
653+ {{- $configScopeEndpoints = .endpoints -}}
654+ {{- end -}}
655+ {{- range $path, $_ := $.Files.Glob "files/hull-vidispine-addon/installation/endpoints/*.yaml" -}}
656+ {{- $configScopeEndpoints = mergeOverwrite $configScopeEndpoints (dict (base $path | trimSuffix ".yaml") (fromYaml ($.Files.Get $path))) -}}
657+ {{- end -}}
658+ {{- range $endpoint, $endpointval := $configScopeEndpoints -}}
659+ {{- $endpointScope := $endpointval -}}
660+ {{- if $endpointval.endpoint -}}
661+ {{- $subresources := dict -}}
662+ {{- if hasKey $endpointval "subresources" -}}
663+ {{- $subresources = $endpointval.subresources -}}
664+ {{- end -}}
665+ {{- range $path, $_ := $.Files.Glob (printf "%s/%s/%s" "files/hull-vidispine-addon/installation/endpoints" $endpoint "*.yaml") -}}
666+ {{- $subresources = mergeOverwrite $subresources (dict (base $path | trimSuffix ".yaml") (fromYaml ($.Files.Get $path))) -}}
667+ {{- end -}}
668+ {{- range $subresource, $subresourceval := $subresources }}
669+ {{- $subresourceScope := $subresourceval -}}
670+ {{- $entities := dict -}}
671+ {{- if hasKey $subresourceval "entities" -}}
672+ {{- $entities = $subresourceval.entities -}}
673+ {{- else -}}
674+ {{- $u := set $subresourceval "entities" dict }}
675+ {{- end -}}
676+ {{- range $path, $_ := $.Files.Glob (printf "%s/%s/%s/%s" "files/hull-vidispine-addon/installation/endpoints" $endpoint $subresource "*.yaml") -}}
677+ {{- $entities = mergeOverwrite $entities (dict (base $path | trimSuffix ".yaml") (fromYaml ($.Files.Get $path))) -}}
678+ {{- end -}}
679+ {{- range $entity, $entityval := $entities }}
680+ {{- $mergedDict := dict -}}
681+ {{- if hasKey $subresourceval "_DEFAULTS_" -}}
682+ {{- $mergedDict = deepCopy $subresourceval._DEFAULTS_ -}}
683+ {{- end -}}
684+ {{- $t := mergeOverwrite $mergedDict $entityval -}}
685+ {{- $z := set (index $.Values "hull").config.general.data.installation "endpoints" $configScopeEndpoints }}
686+ {{- if typeIs "map[string]interface {}" $mergedDict -}}
687+ {{- if hasKey $mergedDict "config" -}}
688+ {{- $configDict := $mergedDict.config -}}
689+ {{- end }}
690+ {{- end }}
691+ {{- $t1 := set $subresourceval.entities $entity $mergedDict -}}
692+ {{- end }}
693+ {{- end }}
694+ {{- else -}}
695+ {{- $configScopeEndpoints = unset $configScopeEndpoints $endpoint -}}
696+ {{- end }}
697+ {{- end }}
698+ {{- $_ := include "hull.util.transformation" (dict "PARENT_CONTEXT" $ "SOURCE" $configScope "CALLER" nil "CALLER_KEY" nil "SOURCE_PATH" list) -}}
699+ {{- toYaml $configScope -}}
700+ {{ end }}
647701 Installer.ps1 :
648702 enabled : _HT*hull.config.general.data.installation.config.debug.debugInstallerScript
649703 inline : |-
0 commit comments