1
0
mirror of synced 2026-02-06 19:05:55 +00:00

Use the group version for HR APIVersion

This commit is contained in:
stefanprodan
2020-09-16 13:59:46 +03:00
parent 2096532f5d
commit 0b14328024

View File

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