From 0b14328024def8993b8306ea67fc5cac8b5cda2f Mon Sep 17 00:00:00 2001
From: stefanprodan <stefan.prodan@gmail.com>
Date: Wed, 16 Sep 2020 13:59:46 +0300
Subject: [PATCH] Use the group version for HR APIVersion

---
 cmd/gotk/create_kustomization.go | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/cmd/gotk/create_kustomization.go b/cmd/gotk/create_kustomization.go
index dc874917..95364dbe 100644
--- a/cmd/gotk/create_kustomization.go
+++ b/cmd/gotk/create_kustomization.go
@@ -179,9 +179,8 @@ func createKsCmdRun(cmd *cobra.Command, args []string) error {
 				Namespace: nameNs[1],
 			}
 
-			//TODO: (stefan) define the API version as a constant in the API package
 			if kind == helmv2.HelmReleaseKind {
-				check.APIVersion = "helm.toolkit.fluxcd.io/v2alpha1"
+				check.APIVersion = helmv2.GroupVersion.String()
 			}
 			healthChecks = append(healthChecks, check)
 		}
-- 
GitLab