From a968b18f080a523bcd1642d9841966c13764e693 Mon Sep 17 00:00:00 2001 From: Anton Troshin Date: Fri, 14 Feb 2025 19:49:29 -0600 Subject: [PATCH] Fix daprsystem configuration retrieval when renewing certificates (#1486) The issue found when similar resource were installed in k8s that use the name "configurations". In this case the knative's "configurations.serving.knative.dev/v1" was the last in the list and the command returned the error `Error from server (NotFound): configurations.serving.knative.dev "daprsystem" not found` Signed-off-by: Anton Troshin --- pkg/kubernetes/configuration.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/kubernetes/configuration.go b/pkg/kubernetes/configuration.go index 815e62eb7..9e1408b80 100644 --- a/pkg/kubernetes/configuration.go +++ b/pkg/kubernetes/configuration.go @@ -43,7 +43,7 @@ func GetDaprControlPlaneCurrentConfig() (*v1alpha1.Configuration, error) { if err != nil { return nil, err } - output, err := utils.RunCmdAndWait("kubectl", "get", "configurations/daprsystem", "-n", namespace, "-o", "json") + output, err := utils.RunCmdAndWait("kubectl", "get", "configurations.dapr.io/daprsystem", "-n", namespace, "-o", "json") if err != nil { return nil, err }