Skip to content

Commit

Permalink
chore: add DeepCopy() funcs to Upstream's Healthchecks
Browse files Browse the repository at this point in the history
  • Loading branch information
pmalek committed Sep 11, 2024
1 parent e3ef6b5 commit 383f443
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: false
go:
version: 0.0.9
version: 0.0.10
additionalDependencies: {}
allowUnknownFieldsInWeakUnions: false
clientServerStatusCodesAsErrors: true
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
30 changes: 30 additions & 0 deletions models/components/zz_generated.deepcopy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
},
}
Expand Down

0 comments on commit 383f443

Please sign in to comment.