From 33623cce64e10b27b1bd2db0cdca4a9003260835 Mon Sep 17 00:00:00 2001 From: Tamal Saha Date: Wed, 21 Feb 2024 22:46:16 -0800 Subject: [PATCH] Update crd helpers Signed-off-by: Tamal Saha --- apis/apps/v1/crds.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apis/apps/v1/crds.go b/apis/apps/v1/crds.go index 9772d051..1cd13f20 100644 --- a/apis/apps/v1/crds.go +++ b/apis/apps/v1/crds.go @@ -22,10 +22,10 @@ import ( "kmodules.xyz/client-go/apiextensions" ) -func (d *PetSet) CustomResourceDefinition() *apiextensions.CustomResourceDefinition { +func (_ PetSet) CustomResourceDefinition() *apiextensions.CustomResourceDefinition { return crds.MustCustomResourceDefinition(SchemeGroupVersion.WithResource(ResourcePetSets)) } -func (d *PlacementPolicy) CustomResourceDefinition() *apiextensions.CustomResourceDefinition { +func (_ PlacementPolicy) CustomResourceDefinition() *apiextensions.CustomResourceDefinition { return crds.MustCustomResourceDefinition(SchemeGroupVersion.WithResource(ResourcePlacementPolicies)) }