diff --git a/cli/cmd/install.go b/cli/cmd/install.go index 4f968015e..83ef63c13 100644 --- a/cli/cmd/install.go +++ b/cli/cmd/install.go @@ -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 { diff --git a/cli/cmd/install_helm_test.go b/cli/cmd/install_helm_test.go index c13dc08f3..a15e6e9f0 100644 --- a/cli/cmd/install_helm_test.go +++ b/cli/cmd/install_helm_test.go @@ -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, })