mirror of
https://github.com/kubernetes/client-go.git
synced 2026-08-09 07:56:11 +00:00
DRA: regenerate code for the compatibility-groups API
Regenerate deepcopy, conversions, declarative validations, protobuf (.pb.go and .proto), swagger docs, openapi (generated code and published api/openapi-spec files), model names, client-go apply-configurations, the k8s.io/api serialization-compatibility fixtures, and the generated declarative-validation test fixtures for the new compatibility-groups field. Kubernetes-commit: 3e8a82d18a429e593fe32e2262744a4dccd28a86
This commit is contained in:
committed by
Kubernetes Publisher
parent
32ce75a7d6
commit
253184b83f
@@ -13183,6 +13183,12 @@ var schemaYAML = typed.YAMLObject(`types:
|
||||
- name: io.k8s.api.resource.v1.DeviceCounterConsumption
|
||||
map:
|
||||
fields:
|
||||
- name: compatibilityGroups
|
||||
type:
|
||||
list:
|
||||
elementType:
|
||||
scalar: string
|
||||
elementRelationship: atomic
|
||||
- name: counterSet
|
||||
type:
|
||||
scalar: string
|
||||
@@ -14233,6 +14239,12 @@ var schemaYAML = typed.YAMLObject(`types:
|
||||
- name: io.k8s.api.resource.v1beta1.DeviceCounterConsumption
|
||||
map:
|
||||
fields:
|
||||
- name: compatibilityGroups
|
||||
type:
|
||||
list:
|
||||
elementType:
|
||||
scalar: string
|
||||
elementRelationship: atomic
|
||||
- name: counterSet
|
||||
type:
|
||||
scalar: string
|
||||
@@ -15001,6 +15013,12 @@ var schemaYAML = typed.YAMLObject(`types:
|
||||
- name: io.k8s.api.resource.v1beta2.DeviceCounterConsumption
|
||||
map:
|
||||
fields:
|
||||
- name: compatibilityGroups
|
||||
type:
|
||||
list:
|
||||
elementType:
|
||||
scalar: string
|
||||
elementRelationship: atomic
|
||||
- name: counterSet
|
||||
type:
|
||||
scalar: string
|
||||
|
||||
@@ -31,6 +31,26 @@ type DeviceCounterConsumptionApplyConfiguration struct {
|
||||
//
|
||||
// The maximum number of counters is 32.
|
||||
Counters map[string]CounterApplyConfiguration `json:"counters,omitempty"`
|
||||
// CompatibilityGroups is a list of opaque group names for
|
||||
// this counter set consumption.
|
||||
//
|
||||
// Devices that consume counters from the same counter set may only be
|
||||
// allocated at the same time ("co-allocated") if they all share at least
|
||||
// one common group: the intersection of the CompatibilityGroups of all
|
||||
// co-allocated devices on that counter set must be non-empty. Devices
|
||||
// that consume from different counter sets are never compared via this
|
||||
// field.
|
||||
//
|
||||
// An unset field, an explicit nil, and an empty list are equivalent and
|
||||
// mean "no groups": such a device is only co-allocatable with sibling
|
||||
// devices on the same counter set that also have no groups, and is never
|
||||
// co-allocatable with a device that declares one or more groups.
|
||||
//
|
||||
// Group names are opaque and meaningful only within the
|
||||
// publishing driver's pool.
|
||||
//
|
||||
// The maximum number of groups is 2, and the names must be unique.
|
||||
CompatibilityGroups []string `json:"compatibilityGroups,omitempty"`
|
||||
}
|
||||
|
||||
// DeviceCounterConsumptionApplyConfiguration constructs a declarative configuration of the DeviceCounterConsumption type for use with
|
||||
@@ -60,3 +80,13 @@ func (b *DeviceCounterConsumptionApplyConfiguration) WithCounters(entries map[st
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
||||
// WithCompatibilityGroups adds the given value to the CompatibilityGroups 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 CompatibilityGroups field.
|
||||
func (b *DeviceCounterConsumptionApplyConfiguration) WithCompatibilityGroups(values ...string) *DeviceCounterConsumptionApplyConfiguration {
|
||||
for i := range values {
|
||||
b.CompatibilityGroups = append(b.CompatibilityGroups, values[i])
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -31,6 +31,26 @@ type DeviceCounterConsumptionApplyConfiguration struct {
|
||||
//
|
||||
// The maximum number of counters is 32.
|
||||
Counters map[string]CounterApplyConfiguration `json:"counters,omitempty"`
|
||||
// CompatibilityGroups is a list of opaque group names for
|
||||
// this counter set consumption.
|
||||
//
|
||||
// Devices that consume counters from the same counter set may only be
|
||||
// allocated at the same time ("co-allocated") if they all share at least
|
||||
// one common group: the intersection of the CompatibilityGroups of all
|
||||
// co-allocated devices on that counter set must be non-empty. Devices
|
||||
// that consume from different counter sets are never compared via this
|
||||
// field.
|
||||
//
|
||||
// An unset field, an explicit nil, and an empty list are equivalent and
|
||||
// mean "no groups": such a device is only co-allocatable with sibling
|
||||
// devices on the same counter set that also have no groups, and is never
|
||||
// co-allocatable with a device that declares one or more groups.
|
||||
//
|
||||
// Group names are opaque and meaningful only within the
|
||||
// publishing driver's pool.
|
||||
//
|
||||
// The maximum number of groups is 2, and the names must be unique.
|
||||
CompatibilityGroups []string `json:"compatibilityGroups,omitempty"`
|
||||
}
|
||||
|
||||
// DeviceCounterConsumptionApplyConfiguration constructs a declarative configuration of the DeviceCounterConsumption type for use with
|
||||
@@ -60,3 +80,13 @@ func (b *DeviceCounterConsumptionApplyConfiguration) WithCounters(entries map[st
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
||||
// WithCompatibilityGroups adds the given value to the CompatibilityGroups 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 CompatibilityGroups field.
|
||||
func (b *DeviceCounterConsumptionApplyConfiguration) WithCompatibilityGroups(values ...string) *DeviceCounterConsumptionApplyConfiguration {
|
||||
for i := range values {
|
||||
b.CompatibilityGroups = append(b.CompatibilityGroups, values[i])
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -31,6 +31,26 @@ type DeviceCounterConsumptionApplyConfiguration struct {
|
||||
//
|
||||
// The maximum number of counters is 32.
|
||||
Counters map[string]CounterApplyConfiguration `json:"counters,omitempty"`
|
||||
// CompatibilityGroups is a list of opaque group names for
|
||||
// this counter set consumption.
|
||||
//
|
||||
// Devices that consume counters from the same counter set may only be
|
||||
// allocated at the same time ("co-allocated") if they all share at least
|
||||
// one common group: the intersection of the CompatibilityGroups of all
|
||||
// co-allocated devices on that counter set must be non-empty. Devices
|
||||
// that consume from different counter sets are never compared via this
|
||||
// field.
|
||||
//
|
||||
// An unset field, an explicit nil, and an empty list are equivalent and
|
||||
// mean "no groups": such a device is only co-allocatable with sibling
|
||||
// devices on the same counter set that also have no groups, and is never
|
||||
// co-allocatable with a device that declares one or more groups.
|
||||
//
|
||||
// Group names are opaque and meaningful only within the
|
||||
// publishing driver's pool.
|
||||
//
|
||||
// The maximum number of groups is 2, and the names must be unique.
|
||||
CompatibilityGroups []string `json:"compatibilityGroups,omitempty"`
|
||||
}
|
||||
|
||||
// DeviceCounterConsumptionApplyConfiguration constructs a declarative configuration of the DeviceCounterConsumption type for use with
|
||||
@@ -60,3 +80,13 @@ func (b *DeviceCounterConsumptionApplyConfiguration) WithCounters(entries map[st
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
||||
// WithCompatibilityGroups adds the given value to the CompatibilityGroups 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 CompatibilityGroups field.
|
||||
func (b *DeviceCounterConsumptionApplyConfiguration) WithCompatibilityGroups(values ...string) *DeviceCounterConsumptionApplyConfiguration {
|
||||
for i := range values {
|
||||
b.CompatibilityGroups = append(b.CompatibilityGroups, values[i])
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user