From 3af5596bfd641858f8f728746000fcab12e6be0f Mon Sep 17 00:00:00 2001 From: danielsinai Date: Thu, 16 May 2024 10:33:56 +0300 Subject: [PATCH] typo Compatibility --- pkg/crd/crd.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/crd/crd.go b/pkg/crd/crd.go index 7c68403..96c87d0 100644 --- a/pkg/crd/crd.go +++ b/pkg/crd/crd.go @@ -155,7 +155,7 @@ func buildDeleteAction(crd v1.CustomResourceDefinition, invocation port.Invocati return dltAct } -func adjustSchemaToPortSchemaCompabtabilityLevel(spec *v1.JSONSchemaProps) { +func adjustSchemaToPortSchemaCompatibilityLevel(spec *v1.JSONSchemaProps) { for i, v := range spec.Properties { if v.Type == "integer" { v.Type = "number" @@ -185,7 +185,7 @@ func adjustSchemaToPortSchemaCompabtabilityLevel(spec *v1.JSONSchemaProps) { for i, v := range spec.Properties { if v.Type == "object" { - adjustSchemaToPortSchemaCompabtabilityLevel(&v) + adjustSchemaToPortSchemaCompatibilityLevel(&v) spec.Properties[i] = v } } @@ -207,7 +207,7 @@ func convertToPortSchemas(crd v1.CustomResourceDefinition) ([]port.Action, *port spec = *latestCRDVersion.Schema.OpenAPIV3Schema } - adjustSchemaToPortSchemaCompabtabilityLevel(&spec) + adjustSchemaToPortSchemaCompatibilityLevel(&spec) bytes, err := json.Marshal(&spec) if err != nil {