mirror of
https://github.com/kubernetes/client-go.git
synced 2025-06-28 07:57:20 +00:00
Add servedVersions info in StorageVersion API
Kubernetes-commit: 1c48b7ec144785b4b2493a01d82e40d6d34ce578
This commit is contained in:
parent
0cde78477a
commit
61c0de83db
@ -24,6 +24,7 @@ type ServerStorageVersionApplyConfiguration struct {
|
|||||||
APIServerID *string `json:"apiServerID,omitempty"`
|
APIServerID *string `json:"apiServerID,omitempty"`
|
||||||
EncodingVersion *string `json:"encodingVersion,omitempty"`
|
EncodingVersion *string `json:"encodingVersion,omitempty"`
|
||||||
DecodableVersions []string `json:"decodableVersions,omitempty"`
|
DecodableVersions []string `json:"decodableVersions,omitempty"`
|
||||||
|
ServedVersions []string `json:"servedVersions,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ServerStorageVersionApplyConfiguration constructs an declarative configuration of the ServerStorageVersion type for use with
|
// ServerStorageVersionApplyConfiguration constructs an declarative configuration of the ServerStorageVersion type for use with
|
||||||
@ -57,3 +58,13 @@ func (b *ServerStorageVersionApplyConfiguration) WithDecodableVersions(values ..
|
|||||||
}
|
}
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// WithServedVersions adds the given value to the ServedVersions field in the declarative configuration
|
||||||
|
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
||||||
|
// If called multiple times, values provided by each call will be appended to the ServedVersions field.
|
||||||
|
func (b *ServerStorageVersionApplyConfiguration) WithServedVersions(values ...string) *ServerStorageVersionApplyConfiguration {
|
||||||
|
for i := range values {
|
||||||
|
b.ServedVersions = append(b.ServedVersions, values[i])
|
||||||
|
}
|
||||||
|
return b
|
||||||
|
}
|
||||||
|
@ -695,6 +695,12 @@ var schemaYAML = typed.YAMLObject(`types:
|
|||||||
- name: encodingVersion
|
- name: encodingVersion
|
||||||
type:
|
type:
|
||||||
scalar: string
|
scalar: string
|
||||||
|
- name: servedVersions
|
||||||
|
type:
|
||||||
|
list:
|
||||||
|
elementType:
|
||||||
|
scalar: string
|
||||||
|
elementRelationship: associative
|
||||||
- name: io.k8s.api.apiserverinternal.v1alpha1.StorageVersion
|
- name: io.k8s.api.apiserverinternal.v1alpha1.StorageVersion
|
||||||
map:
|
map:
|
||||||
fields:
|
fields:
|
||||||
|
Loading…
Reference in New Issue
Block a user