Skip to content

Commit

Permalink
Make ServiceBackendPort an atomic struct
Browse files Browse the repository at this point in the history
This allows different actors to force ownership of it without having to
explicitly unset the other field.
  • Loading branch information
thockin committed Jul 18, 2024
1 parent e6bb041 commit 7313990
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 2 deletions.
3 changes: 2 additions & 1 deletion api/openapi-spec/swagger.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion api/openapi-spec/v3/apis__networking.k8s.io__v1_openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,8 @@
"type": "integer"
}
},
"type": "object"
"type": "object",
"x-kubernetes-map-type": "atomic"
},
"io.k8s.apimachinery.pkg.apis.meta.v1.APIResource": {
"description": "APIResource specifies the name of a resource and whether it is namespaced.",
Expand Down
5 changes: 5 additions & 0 deletions pkg/generated/openapi/zz_generated.openapi.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions staging/src/k8s.io/api/networking/v1/generated.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions staging/src/k8s.io/api/networking/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,7 @@ type IngressServiceBackend struct {
}

// ServiceBackendPort is the service port being referenced.
// +structType=atomic
type ServiceBackendPort struct {
// name is the name of the port on the Service.
// This is a mutually exclusive setting with "Number".
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7313990

Please sign in to comment.