From c0ac4734a823895ee6d7621efd002e9eddb8c6bc Mon Sep 17 00:00:00 2001 From: Brad Davidson Date: Fri, 2 Aug 2024 04:24:41 +0000 Subject: [PATCH] Add status subresource to HelmChart CRD Silences `handler helm-controller-chart-registration: helmcharts.helm.cattle.io "foo" not found, requeuing` errors when the controller attempts to patch the status subresource Signed-off-by: Brad Davidson --- pkg/crd/crds.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/crd/crds.go b/pkg/crd/crds.go index 50ff677b..1328eac7 100644 --- a/pkg/crd/crds.go +++ b/pkg/crd/crds.go @@ -14,7 +14,8 @@ func List() []crd.CRD { WithColumn("Version", ".spec.version"). WithColumn("Repo", ".spec.repo"). WithColumn("HelmVersion", ".spec.helmVersion"). - WithColumn("Bootstrap", ".spec.bootstrap") + WithColumn("Bootstrap", ".spec.bootstrap"). + WithStatus() config := crd.NamespacedType("HelmChartConfig.helm.cattle.io/v1"). WithSchemaFromStruct(v1.HelmChartConfig{})