fix(clustertool): Dont install kyverno policies by default without flux

This commit is contained in:
Kjeld Schouten
2024-10-25 13:17:31 +02:00
parent 0ab38628d8
commit 3b6266b40c
-9
View File
@@ -179,15 +179,6 @@ func RunBootstrap(args []string) {
}
fluxhandler.InstallCharts(prioCharts, HelmRepos, false)
kyvernoPolicies := []string{filepath.Join(helper.ClusterPath, "/kubernetes/core/kyverno-policies/app/ensure-digest.yaml"), filepath.Join(helper.ClusterPath, "/kubernetes/core/kyverno-policies/app/schematic-to-pod.yaml")}
for _, filePath := range kyvernoPolicies {
log.Info().Msgf("Bootstrap: Loading KyvernoPolicies: %v", filePath)
if err := kubectlcmds.KubectlApply(ctx, filePath); err != nil {
log.Info().Msgf("Error applying manifest for %s: %v\n", filepath.Base(filePath), err)
}
}
intermediateCharts := []fluxhandler.HelmChart{
{filepath.Join(helper.ClusterPath, "/kubernetes/system/metallb/app"), false, false},
{filepath.Join(helper.ClusterPath, "/kubernetes/system/cloudnative-pg/app"), false, false},