Skip to content

Commit 2a903dd

Browse files
committed
Mark v1.Endpoints as deprecated in the documentation
1 parent 9a9f10b commit 2a903dd

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

staging/src/k8s.io/api/core/v1/types.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5888,6 +5888,11 @@ type ServiceAccountList struct {
58885888
// Ports: [{"name": "a", "port": 93}, {"name": "b", "port": 76}]
58895889
// },
58905890
// ]
5891+
//
5892+
// Endpoints is a legacy API and does not contain information about all Service features.
5893+
// Use discoveryv1.EndpointSlice for complete information about Service endpoints.
5894+
//
5895+
// Deprecated: This API is deprecated in v1.33+. Use discoveryv1.EndpointSlice.
58915896
type Endpoints struct {
58925897
metav1.TypeMeta `json:",inline"`
58935898
// Standard object's metadata.
@@ -5920,6 +5925,8 @@ type Endpoints struct {
59205925
//
59215926
// a: [ 10.10.1.1:8675, 10.10.2.2:8675 ],
59225927
// b: [ 10.10.1.1:309, 10.10.2.2:309 ]
5928+
//
5929+
// Deprecated: This API is deprecated in v1.33+.
59235930
type EndpointSubset struct {
59245931
// IP addresses which offer the related ports that are marked as ready. These endpoints
59255932
// should be considered safe for load balancers and clients to utilize.
@@ -5939,6 +5946,7 @@ type EndpointSubset struct {
59395946
}
59405947

59415948
// EndpointAddress is a tuple that describes single IP address.
5949+
// Deprecated: This API is deprecated in v1.33+.
59425950
// +structType=atomic
59435951
type EndpointAddress struct {
59445952
// The IP of this endpoint.
@@ -5957,6 +5965,7 @@ type EndpointAddress struct {
59575965
}
59585966

59595967
// EndpointPort is a tuple that describes a single port.
5968+
// Deprecated: This API is deprecated in v1.33+.
59605969
// +structType=atomic
59615970
type EndpointPort struct {
59625971
// The name of this port. This must match the 'name' field in the
@@ -5998,6 +6007,7 @@ type EndpointPort struct {
59986007
// +k8s:prerelease-lifecycle-gen:introduced=1.0
59996008

60006009
// EndpointsList is a list of endpoints.
6010+
// Deprecated: This API is deprecated in v1.33+.
60016011
type EndpointsList struct {
60026012
metav1.TypeMeta `json:",inline"`
60036013
// Standard list metadata.

0 commit comments

Comments
 (0)