mirror of https://github.com/linkerd/linkerd2.git
Export CRD templates (#12166)
For consistency, we should export our CRD templates in the same way we export normal control plane templates and extensions. Signed-off-by: Matei David <matei@buoyant.io>
This commit is contained in:
parent
a26b42093f
commit
1f74128d8b
|
|
@ -47,7 +47,7 @@ You can use the --ignore-cluster flag if you just want to generate the installat
|
|||
)
|
||||
|
||||
var (
|
||||
templatesCrdFiles = []string{
|
||||
TemplatesCrdFiles = []string{
|
||||
"templates/policy/authorization-policy.yaml",
|
||||
"templates/policy/httproute.yaml",
|
||||
"templates/policy/meshtls-authentication.yaml",
|
||||
|
|
@ -323,7 +323,7 @@ func renderCRDs(w io.Writer, options valuespkg.Options) error {
|
|||
files := []*loader.BufferedFile{
|
||||
{Name: chartutil.ChartfileName},
|
||||
}
|
||||
for _, template := range templatesCrdFiles {
|
||||
for _, template := range TemplatesCrdFiles {
|
||||
files = append(files, &loader.BufferedFile{Name: template})
|
||||
}
|
||||
if err := charts.FilesReader(static.Templates, l5dcharts.HelmChartDirCrds+"/", files); err != nil {
|
||||
|
|
|
|||
|
|
@ -220,7 +220,7 @@ func chartCrds(t *testing.T) *chart.Chart {
|
|||
|
||||
linkerd2Chart.AddDependency(chartPartials)
|
||||
|
||||
for _, filepath := range templatesCrdFiles {
|
||||
for _, filepath := range TemplatesCrdFiles {
|
||||
linkerd2Chart.Templates = append(linkerd2Chart.Templates, &chart.File{
|
||||
Name: filepath,
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue