Skip to content

Commit

Permalink
chore: add DeepCopy() funcs to UpstreamClientCertificate
Browse files Browse the repository at this point in the history
  • Loading branch information
pmalek committed Sep 11, 2024
1 parent 0ba735c commit e3ef6b5
Show file tree
Hide file tree
Showing 5 changed files with 32 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.8
configChecksum: 7b07ca7b4e6e790123dd9b509754bd02
releaseVersion: 0.0.9
configChecksum: 9d6fb61b7d3c99286a9a6a4f986edf75
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.8
version: 0.0.9
additionalDependencies: {}
allowUnknownFieldsInWeakUnions: false
clientServerStatusCodesAsErrors: true
Expand Down
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ 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 @@ -70,13 +71,18 @@ generate.sdk:
models/components/routewithoutparents.go
$(SED) -i 's#\(type RouteInput struct\)#// $(KUBEBUILDER_GENERATE_CODE_MARKER)\n\1#g' \
models/components/route.go
$(SED) -i 's#\(type UpstreamClientCertificate struct\)#// $(KUBEBUILDER_GENERATE_CODE_MARKER)\n\1#g' \
models/components/upstream.go

go mod tidy
$(MAKE) generate.deepcopy
git checkout -- $(OPENAPI_FILE) \
$(shell git ls-files models/components/route*.go) \
$(shell git ls-files docs/models/components/route*.md) \
$(shell git ls-files models/components/create*.go) \
$(shell git ls-files docs/models/components/create*.md)
$(shell git ls-files docs/models/components/create*.md) \
$(shell git ls-files models/components/upstream*.go) \
$(shell git ls-files docs/models/components/upstream*.md) \
$(shell git ls-files docs/models/components/healthchecks*.md)
speakeasy generate sdk --lang go --out . --schema ./$(OPENAPI_FILE)
go mod tidy
20 changes: 20 additions & 0 deletions models/components/zz_generated.deepcopy.go
Original file line number Diff line number Diff line change
Expand Up @@ -515,3 +515,23 @@ func (in *Sources) DeepCopy() *Sources {
in.DeepCopyInto(out)
return out
}

// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *UpstreamClientCertificate) DeepCopyInto(out *UpstreamClientCertificate) {
*out = *in
if in.ID != nil {
in, out := &in.ID, &out.ID
*out = new(string)
**out = **in
}
}

// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UpstreamClientCertificate.
func (in *UpstreamClientCertificate) DeepCopy() *UpstreamClientCertificate {
if in == nil {
return nil
}
out := new(UpstreamClientCertificate)
in.DeepCopyInto(out)
return out
}
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.8",
SDKVersion: "0.0.9",
GenVersion: "2.415.0",
UserAgent: "speakeasy-sdk/go 0.0.8 2.415.0 0.0.1 github.com/Kong/sdk-konnect-go",
UserAgent: "speakeasy-sdk/go 0.0.9 2.415.0 0.0.1 github.com/Kong/sdk-konnect-go",
Hooks: hooks.New(),
},
}
Expand Down

0 comments on commit e3ef6b5

Please sign in to comment.