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) }