Skip to content

Commit

Permalink
CRDs can never be validated, skip them (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
djeebus authored Oct 27, 2023
1 parent b94b320 commit 2209e2a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pkg/validate/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,11 @@ func ArgoCdAppValidate(ctx context.Context, appName, targetKubernetesVersion, te

cwd, _ := os.Getwd()
vOpts := validator.Opts{
Cache: filepath.Join(cwd, "schemas/"),
SkipTLS: false,
SkipKinds: nil,
Cache: filepath.Join(cwd, "schemas/"),
SkipTLS: false,
SkipKinds: map[string]struct{}{
"apiextensions.k8s.io/v1/CustomResourceDefinition": {},
},
RejectKinds: nil,
KubernetesVersion: targetKubernetesVersion,
Strict: true,
Expand Down

0 comments on commit 2209e2a

Please sign in to comment.