From 3f63dc586be3855ad2e4e18aa6751ce8ebf0d489 Mon Sep 17 00:00:00 2001 From: Tim Date: Wed, 29 Dec 2021 11:25:33 +0500 Subject: [PATCH] fixed validation --- pkg/config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/config/config.go b/pkg/config/config.go index 9ade6a0..b1d5898 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -10,7 +10,7 @@ import ( ) type Config struct { - APIVersion string `yaml:"apiVersion" validate:"v1alpha1"` + APIVersion string `yaml:"apiVersion" validate:"required,eq=v1alpha1"` Spec Spec `yaml:"spec" validate:"required"` }