@@ -20,7 +20,6 @@ import (
2020
2121 "istio.io/api/operator/v1alpha1"
2222 iop "istio.io/istio/operator/pkg/apis/istio/v1alpha1"
23- "istio.io/istio/operator/pkg/helm"
2423 "istio.io/istio/operator/pkg/tpath"
2524)
2625
@@ -85,6 +84,11 @@ const (
8584 InstalledSpecCRPrefix = "installed-state"
8685)
8786
87+ const (
88+ // YAMLSeparator is a separator for multi-document YAML files.
89+ YAMLSeparator = "\n ---\n "
90+ )
91+
8892// ComponentName is a component name string, typed to constrain allowed values.
8993type ComponentName string
9094
@@ -173,7 +177,7 @@ func (mm ManifestMap) Consolidated() map[string]string {
173177 for cname , ms := range mm {
174178 allM := ""
175179 for _ , m := range ms {
176- allM += m + helm . YAMLSeparator
180+ allM += m + YAMLSeparator
177181 }
178182 out [string (cname )] = allM
179183 }
@@ -182,15 +186,15 @@ func (mm ManifestMap) Consolidated() map[string]string {
182186
183187// MergeManifestSlices merges a slice of manifests into a single manifest string.
184188func MergeManifestSlices (manifests []string ) string {
185- return strings .Join (manifests , helm . YAMLSeparator )
189+ return strings .Join (manifests , YAMLSeparator )
186190}
187191
188192// String implements the Stringer interface.
189193func (mm ManifestMap ) String () string {
190194 out := ""
191195 for _ , ms := range mm {
192196 for _ , m := range ms {
193- out += m + helm . YAMLSeparator
197+ out += m + YAMLSeparator
194198 }
195199 }
196200 return out
0 commit comments