Skip to content

Commit 10e3581

Browse files
authored
fix: Improper formatting of openshift templates for crds (#775)
1 parent 27867d5 commit 10e3581

File tree

3 files changed

+52368
-52202
lines changed

3 files changed

+52368
-52202
lines changed

magefiles/operator.go

+8-2
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,15 @@ func crds(gen *mimic.Generator, ref string) error {
8383
resp.Body.Close()
8484
}
8585

86-
encoder := encoding.GhodssYAML(objs[0], objs[1], objs[2], objs[3], objs[4])
87-
gen.Add("thanos-operator-crds.yaml", encoder)
86+
gen.Add("thanos-operator-crds.yaml", encoding.GhodssYAML(
87+
openshift.WrapInTemplate(
88+
objs,
89+
metav1.ObjectMeta{Name: "thanos-operator-crds"},
90+
[]templatev1.Parameter{},
91+
),
92+
))
8893
gen.Generate()
94+
8995
return nil
9096
}
9197

0 commit comments

Comments
 (0)