Merge pull request #126207 from thockin/ingress-backend-port-atomic

Make ServiceBackendPort an atomic struct
This commit is contained in:
Kubernetes Prow Robot 2024-07-18 19:24:26 -07:00 committed by GitHub
commit 77e12aeca9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 12 additions and 2 deletions

View File

@ -14112,7 +14112,8 @@
"type": "integer"
}
},
"type": "object"
"type": "object",
"x-kubernetes-map-type": "atomic"
},
"io.k8s.api.networking.v1beta1.IPAddress": {
"description": "IPAddress represents a single IP of a single IP Family. The object is designed to be used by APIs that operate on IP addresses. The object is used by the Service core API for allocation of IP addresses. An IP address can be represented in different formats, to guarantee the uniqueness of the IP, the name of the object is the IP address in canonical format, four decimal digits separated by dots suppressing leading zeros for IPv4 and the representation defined by RFC 5952 for IPv6. Valid: 192.168.1.5 or 2001:db8::1 or 2001:db8:aaaa:bbbb:cccc:dddd:eeee:1 Invalid: 10.01.2.3 or 2001:db8:0:0:0::1",

View File

@ -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.",

View File

@ -40889,6 +40889,11 @@ func schema_k8sio_api_networking_v1_ServiceBackendPort(ref common.ReferenceCallb
},
},
},
VendorExtensible: spec.VendorExtensible{
Extensions: spec.Extensions{
"x-kubernetes-map-type": "atomic",
},
},
},
}
}

View File

@ -541,6 +541,7 @@ message NetworkPolicySpec {
}
// ServiceBackendPort is the service port being referenced.
// +structType=atomic
message ServiceBackendPort {
// name is the name of the port on the Service.
// This is a mutually exclusive setting with "Number".

View File

@ -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".

View File

@ -11003,6 +11003,7 @@ var schemaYAML = typed.YAMLObject(`types:
- name: number
type:
scalar: numeric
elementRelationship: atomic
- name: io.k8s.api.networking.v1alpha1.IPAddress
map:
fields: