diff --git a/cli/cmd/deploy_components.go b/cli/cmd/deploy_components.go index 2460f3b9..ec8d3c84 100644 --- a/cli/cmd/deploy_components.go +++ b/cli/cmd/deploy_components.go @@ -1010,11 +1010,12 @@ spec: } } - // Bust Kubernetes Discovery Cache so Helm knows about the newly created CRDs + // Bust Kubernetes Discovery Cache so Helm knows about the newly created CRDs. + // Not ~/.cache/helm: on Linux that is Helm's repository cache, and the + // kyverno/kyverno upgrade that wires Kyverno into Prometheus reads it. dl.Println(" - Refreshing API server schema cache...") if home, err := os.UserHomeDir(); err == nil { os.RemoveAll(fmt.Sprintf("%s/.kube/cache/discovery", home)) - os.RemoveAll(fmt.Sprintf("%s/.cache/helm", home)) } return nil