From 383f4436509b4c408b1c0f7bdcfccd41841c7566 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patryk=20Ma=C5=82ek?= Date: Wed, 11 Sep 2024 15:55:36 +0200 Subject: [PATCH] chore: add DeepCopy() funcs to Upstream's Healthchecks --- .speakeasy/gen.lock | 4 +-- .speakeasy/gen.yaml | 2 +- Makefile | 3 ++- models/components/zz_generated.deepcopy.go | 30 ++++++++++++++++++++++ sdk.go | 4 +-- 5 files changed, 37 insertions(+), 6 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index d5ad1af..03d269e 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -5,8 +5,8 @@ management: docVersion: 0.0.1 speakeasyVersion: 1.395.1 generationVersion: 2.415.0 - releaseVersion: 0.0.9 - configChecksum: 9d6fb61b7d3c99286a9a6a4f986edf75 + releaseVersion: 0.0.10 + configChecksum: 9af03c8a70d2f582b3eaf303f0b9cc73 features: go: additionalDependencies: 0.1.0 diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index c6a8ddd..debea45 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -12,7 +12,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: false go: - version: 0.0.9 + version: 0.0.10 additionalDependencies: {} allowUnknownFieldsInWeakUnions: false clientServerStatusCodesAsErrors: true diff --git a/Makefile b/Makefile index 29f3ec2..ac23a6c 100644 --- a/Makefile +++ b/Makefile @@ -54,7 +54,6 @@ generate.sdk: yq --inplace '.components.schemas.CreateControlPlaneRequest.description += "\n$(KUBEBUILDER_GENERATE_CODE_MARKER)"' $(OPENAPI_FILE) yq --inplace '.components.schemas.CreateServiceWithoutParents.description += "\n$(KUBEBUILDER_GENERATE_CODE_MARKER)"' $(OPENAPI_FILE) yq --inplace '.components.schemas.RouteWithoutParents.description += "\n$(KUBEBUILDER_GENERATE_CODE_MARKER)"' $(OPENAPI_FILE) - yq --inplace '.components.schemas.Upstream.properties.healthchecks.description += "\n$(KUBEBUILDER_GENERATE_CODE_MARKER)"' $(OPENAPI_FILE) speakeasy generate sdk --lang go --out . --schema ./$(OPENAPI_FILE) git checkout -- $(SPEAKEASY_DIR)/gen.lock $(SPEAKEASY_DIR)/gen.yaml sdk.go @@ -73,6 +72,8 @@ generate.sdk: models/components/route.go $(SED) -i 's#\(type UpstreamClientCertificate struct\)#// $(KUBEBUILDER_GENERATE_CODE_MARKER)\n\1#g' \ models/components/upstream.go + $(SED) -i 's#\(type Healthchecks struct\)#// $(KUBEBUILDER_GENERATE_CODE_MARKER)\n\1#g' \ + models/components/upstream.go go mod tidy $(MAKE) generate.deepcopy diff --git a/models/components/zz_generated.deepcopy.go b/models/components/zz_generated.deepcopy.go index 3292d1e..9a8e413 100644 --- a/models/components/zz_generated.deepcopy.go +++ b/models/components/zz_generated.deepcopy.go @@ -78,6 +78,36 @@ func (in *Destinations) DeepCopy() *Destinations { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Healthchecks) DeepCopyInto(out *Healthchecks) { + *out = *in + if in.Active != nil { + in, out := &in.Active, &out.Active + *out = new(Active) + (*in).DeepCopyInto(*out) + } + if in.Passive != nil { + in, out := &in.Passive, &out.Passive + *out = new(Passive) + (*in).DeepCopyInto(*out) + } + if in.Threshold != nil { + in, out := &in.Threshold, &out.Threshold + *out = new(float64) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Healthchecks. +func (in *Healthchecks) DeepCopy() *Healthchecks { + if in == nil { + return nil + } + out := new(Healthchecks) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Route) DeepCopyInto(out *Route) { *out = *in diff --git a/sdk.go b/sdk.go index ce8c071..fea137f 100644 --- a/sdk.go +++ b/sdk.go @@ -261,9 +261,9 @@ func New(opts ...SDKOption) *SDK { sdkConfiguration: sdkConfiguration{ Language: "go", OpenAPIDocVersion: "0.0.1", - SDKVersion: "0.0.9", + SDKVersion: "0.0.10", GenVersion: "2.415.0", - UserAgent: "speakeasy-sdk/go 0.0.9 2.415.0 0.0.1 github.com/Kong/sdk-konnect-go", + UserAgent: "speakeasy-sdk/go 0.0.10 2.415.0 0.0.1 github.com/Kong/sdk-konnect-go", Hooks: hooks.New(), }, }