mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 02:33:34 +00:00
build: move e2e dependencies into e2e/go.mod
Several packages are only used while running the e2e suite. These packages are less important to update, as the they can not influence the final executable that is part of the Ceph-CSI container-image. By moving these dependencies out of the main Ceph-CSI go.mod, it is easier to identify if a reported CVE affects Ceph-CSI, or only the testing (like most of the Kubernetes CVEs). Signed-off-by: Niels de Vos <ndevos@ibm.com>
This commit is contained in:
committed by
mergify[bot]
parent
15da101b1b
commit
bec6090996
24
e2e/vendor/k8s.io/api/resource/v1beta1/doc.go
generated
vendored
Normal file
24
e2e/vendor/k8s.io/api/resource/v1beta1/doc.go
generated
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
/*
|
||||
Copyright 2022 The Kubernetes Authors.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
// +k8s:openapi-gen=true
|
||||
// +k8s:deepcopy-gen=package
|
||||
// +k8s:protobuf-gen=package
|
||||
// +k8s:prerelease-lifecycle-gen=true
|
||||
// +groupName=resource.k8s.io
|
||||
|
||||
// Package v1beta1 is the v1beta1 version of the resource API.
|
||||
package v1beta1 // import "k8s.io/api/resource/v1beta1"
|
8655
e2e/vendor/k8s.io/api/resource/v1beta1/generated.pb.go
generated
vendored
Normal file
8655
e2e/vendor/k8s.io/api/resource/v1beta1/generated.pb.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
892
e2e/vendor/k8s.io/api/resource/v1beta1/generated.proto
generated
vendored
Normal file
892
e2e/vendor/k8s.io/api/resource/v1beta1/generated.proto
generated
vendored
Normal file
@ -0,0 +1,892 @@
|
||||
/*
|
||||
Copyright The Kubernetes Authors.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
// This file was autogenerated by go-to-protobuf. Do not edit it manually!
|
||||
|
||||
syntax = "proto2";
|
||||
|
||||
package k8s.io.api.resource.v1beta1;
|
||||
|
||||
import "k8s.io/api/core/v1/generated.proto";
|
||||
import "k8s.io/apimachinery/pkg/api/resource/generated.proto";
|
||||
import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto";
|
||||
import "k8s.io/apimachinery/pkg/runtime/generated.proto";
|
||||
import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
|
||||
|
||||
// Package-wide variables from generator "generated".
|
||||
option go_package = "k8s.io/api/resource/v1beta1";
|
||||
|
||||
// AllocatedDeviceStatus contains the status of an allocated device, if the
|
||||
// driver chooses to report it. This may include driver-specific information.
|
||||
message AllocatedDeviceStatus {
|
||||
// Driver specifies the name of the DRA driver whose kubelet
|
||||
// plugin should be invoked to process the allocation once the claim is
|
||||
// needed on a node.
|
||||
//
|
||||
// Must be a DNS subdomain and should end with a DNS domain owned by the
|
||||
// vendor of the driver.
|
||||
//
|
||||
// +required
|
||||
optional string driver = 1;
|
||||
|
||||
// This name together with the driver name and the device name field
|
||||
// identify which device was allocated (`<driver name>/<pool name>/<device name>`).
|
||||
//
|
||||
// Must not be longer than 253 characters and may contain one or more
|
||||
// DNS sub-domains separated by slashes.
|
||||
//
|
||||
// +required
|
||||
optional string pool = 2;
|
||||
|
||||
// Device references one device instance via its name in the driver's
|
||||
// resource pool. It must be a DNS label.
|
||||
//
|
||||
// +required
|
||||
optional string device = 3;
|
||||
|
||||
// Conditions contains the latest observation of the device's state.
|
||||
// If the device has been configured according to the class and claim
|
||||
// config references, the `Ready` condition should be True.
|
||||
//
|
||||
// +optional
|
||||
// +listType=map
|
||||
// +listMapKey=type
|
||||
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 4;
|
||||
|
||||
// Data contains arbitrary driver-specific data.
|
||||
//
|
||||
// The length of the raw data must be smaller or equal to 10 Ki.
|
||||
//
|
||||
// +optional
|
||||
optional .k8s.io.apimachinery.pkg.runtime.RawExtension data = 5;
|
||||
|
||||
// NetworkData contains network-related information specific to the device.
|
||||
//
|
||||
// +optional
|
||||
optional NetworkDeviceData networkData = 6;
|
||||
}
|
||||
|
||||
// AllocationResult contains attributes of an allocated resource.
|
||||
message AllocationResult {
|
||||
// Devices is the result of allocating devices.
|
||||
//
|
||||
// +optional
|
||||
optional DeviceAllocationResult devices = 1;
|
||||
|
||||
// NodeSelector defines where the allocated resources are available. If
|
||||
// unset, they are available everywhere.
|
||||
//
|
||||
// +optional
|
||||
optional .k8s.io.api.core.v1.NodeSelector nodeSelector = 3;
|
||||
}
|
||||
|
||||
// BasicDevice defines one device instance.
|
||||
message BasicDevice {
|
||||
// Attributes defines the set of attributes for this device.
|
||||
// The name of each attribute must be unique in that set.
|
||||
//
|
||||
// The maximum number of attributes and capacities combined is 32.
|
||||
//
|
||||
// +optional
|
||||
map<string, DeviceAttribute> attributes = 1;
|
||||
|
||||
// Capacity defines the set of capacities for this device.
|
||||
// The name of each capacity must be unique in that set.
|
||||
//
|
||||
// The maximum number of attributes and capacities combined is 32.
|
||||
//
|
||||
// +optional
|
||||
map<string, DeviceCapacity> capacity = 2;
|
||||
}
|
||||
|
||||
// CELDeviceSelector contains a CEL expression for selecting a device.
|
||||
message CELDeviceSelector {
|
||||
// Expression is a CEL expression which evaluates a single device. It
|
||||
// must evaluate to true when the device under consideration satisfies
|
||||
// the desired criteria, and false when it does not. Any other result
|
||||
// is an error and causes allocation of devices to abort.
|
||||
//
|
||||
// The expression's input is an object named "device", which carries
|
||||
// the following properties:
|
||||
// - driver (string): the name of the driver which defines this device.
|
||||
// - attributes (map[string]object): the device's attributes, grouped by prefix
|
||||
// (e.g. device.attributes["dra.example.com"] evaluates to an object with all
|
||||
// of the attributes which were prefixed by "dra.example.com".
|
||||
// - capacity (map[string]object): the device's capacities, grouped by prefix.
|
||||
//
|
||||
// Example: Consider a device with driver="dra.example.com", which exposes
|
||||
// two attributes named "model" and "ext.example.com/family" and which
|
||||
// exposes one capacity named "modules". This input to this expression
|
||||
// would have the following fields:
|
||||
//
|
||||
// device.driver
|
||||
// device.attributes["dra.example.com"].model
|
||||
// device.attributes["ext.example.com"].family
|
||||
// device.capacity["dra.example.com"].modules
|
||||
//
|
||||
// The device.driver field can be used to check for a specific driver,
|
||||
// either as a high-level precondition (i.e. you only want to consider
|
||||
// devices from this driver) or as part of a multi-clause expression
|
||||
// that is meant to consider devices from different drivers.
|
||||
//
|
||||
// The value type of each attribute is defined by the device
|
||||
// definition, and users who write these expressions must consult the
|
||||
// documentation for their specific drivers. The value type of each
|
||||
// capacity is Quantity.
|
||||
//
|
||||
// If an unknown prefix is used as a lookup in either device.attributes
|
||||
// or device.capacity, an empty map will be returned. Any reference to
|
||||
// an unknown field will cause an evaluation error and allocation to
|
||||
// abort.
|
||||
//
|
||||
// A robust expression should check for the existence of attributes
|
||||
// before referencing them.
|
||||
//
|
||||
// For ease of use, the cel.bind() function is enabled, and can be used
|
||||
// to simplify expressions that access multiple attributes with the
|
||||
// same domain. For example:
|
||||
//
|
||||
// cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool)
|
||||
//
|
||||
// The length of the expression must be smaller or equal to 10 Ki. The
|
||||
// cost of evaluating it is also limited based on the estimated number
|
||||
// of logical steps.
|
||||
//
|
||||
// +required
|
||||
optional string expression = 1;
|
||||
}
|
||||
|
||||
// Device represents one individual hardware instance that can be selected based
|
||||
// on its attributes. Besides the name, exactly one field must be set.
|
||||
message Device {
|
||||
// Name is unique identifier among all devices managed by
|
||||
// the driver in the pool. It must be a DNS label.
|
||||
//
|
||||
// +required
|
||||
optional string name = 1;
|
||||
|
||||
// Basic defines one device instance.
|
||||
//
|
||||
// +optional
|
||||
// +oneOf=deviceType
|
||||
optional BasicDevice basic = 2;
|
||||
}
|
||||
|
||||
// DeviceAllocationConfiguration gets embedded in an AllocationResult.
|
||||
message DeviceAllocationConfiguration {
|
||||
// Source records whether the configuration comes from a class and thus
|
||||
// is not something that a normal user would have been able to set
|
||||
// or from a claim.
|
||||
//
|
||||
// +required
|
||||
optional string source = 1;
|
||||
|
||||
// Requests lists the names of requests where the configuration applies.
|
||||
// If empty, its applies to all requests.
|
||||
//
|
||||
// +optional
|
||||
// +listType=atomic
|
||||
repeated string requests = 2;
|
||||
|
||||
optional DeviceConfiguration deviceConfiguration = 3;
|
||||
}
|
||||
|
||||
// DeviceAllocationResult is the result of allocating devices.
|
||||
message DeviceAllocationResult {
|
||||
// Results lists all allocated devices.
|
||||
//
|
||||
// +optional
|
||||
// +listType=atomic
|
||||
repeated DeviceRequestAllocationResult results = 1;
|
||||
|
||||
// This field is a combination of all the claim and class configuration parameters.
|
||||
// Drivers can distinguish between those based on a flag.
|
||||
//
|
||||
// This includes configuration parameters for drivers which have no allocated
|
||||
// devices in the result because it is up to the drivers which configuration
|
||||
// parameters they support. They can silently ignore unknown configuration
|
||||
// parameters.
|
||||
//
|
||||
// +optional
|
||||
// +listType=atomic
|
||||
repeated DeviceAllocationConfiguration config = 2;
|
||||
}
|
||||
|
||||
// DeviceAttribute must have exactly one field set.
|
||||
message DeviceAttribute {
|
||||
// IntValue is a number.
|
||||
//
|
||||
// +optional
|
||||
// +oneOf=ValueType
|
||||
optional int64 int = 2;
|
||||
|
||||
// BoolValue is a true/false value.
|
||||
//
|
||||
// +optional
|
||||
// +oneOf=ValueType
|
||||
optional bool bool = 3;
|
||||
|
||||
// StringValue is a string. Must not be longer than 64 characters.
|
||||
//
|
||||
// +optional
|
||||
// +oneOf=ValueType
|
||||
optional string string = 4;
|
||||
|
||||
// VersionValue is a semantic version according to semver.org spec 2.0.0.
|
||||
// Must not be longer than 64 characters.
|
||||
//
|
||||
// +optional
|
||||
// +oneOf=ValueType
|
||||
optional string version = 5;
|
||||
}
|
||||
|
||||
// DeviceCapacity describes a quantity associated with a device.
|
||||
message DeviceCapacity {
|
||||
// Value defines how much of a certain device capacity is available.
|
||||
//
|
||||
// +required
|
||||
optional .k8s.io.apimachinery.pkg.api.resource.Quantity value = 1;
|
||||
}
|
||||
|
||||
// DeviceClaim defines how to request devices with a ResourceClaim.
|
||||
message DeviceClaim {
|
||||
// Requests represent individual requests for distinct devices which
|
||||
// must all be satisfied. If empty, nothing needs to be allocated.
|
||||
//
|
||||
// +optional
|
||||
// +listType=atomic
|
||||
repeated DeviceRequest requests = 1;
|
||||
|
||||
// These constraints must be satisfied by the set of devices that get
|
||||
// allocated for the claim.
|
||||
//
|
||||
// +optional
|
||||
// +listType=atomic
|
||||
repeated DeviceConstraint constraints = 2;
|
||||
|
||||
// This field holds configuration for multiple potential drivers which
|
||||
// could satisfy requests in this claim. It is ignored while allocating
|
||||
// the claim.
|
||||
//
|
||||
// +optional
|
||||
// +listType=atomic
|
||||
repeated DeviceClaimConfiguration config = 3;
|
||||
}
|
||||
|
||||
// DeviceClaimConfiguration is used for configuration parameters in DeviceClaim.
|
||||
message DeviceClaimConfiguration {
|
||||
// Requests lists the names of requests where the configuration applies.
|
||||
// If empty, it applies to all requests.
|
||||
//
|
||||
// +optional
|
||||
// +listType=atomic
|
||||
repeated string requests = 1;
|
||||
|
||||
optional DeviceConfiguration deviceConfiguration = 2;
|
||||
}
|
||||
|
||||
// DeviceClass is a vendor- or admin-provided resource that contains
|
||||
// device configuration and selectors. It can be referenced in
|
||||
// the device requests of a claim to apply these presets.
|
||||
// Cluster scoped.
|
||||
//
|
||||
// This is an alpha type and requires enabling the DynamicResourceAllocation
|
||||
// feature gate.
|
||||
message DeviceClass {
|
||||
// Standard object metadata
|
||||
// +optional
|
||||
optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
|
||||
|
||||
// Spec defines what can be allocated and how to configure it.
|
||||
//
|
||||
// This is mutable. Consumers have to be prepared for classes changing
|
||||
// at any time, either because they get updated or replaced. Claim
|
||||
// allocations are done once based on whatever was set in classes at
|
||||
// the time of allocation.
|
||||
//
|
||||
// Changing the spec automatically increments the metadata.generation number.
|
||||
optional DeviceClassSpec spec = 2;
|
||||
}
|
||||
|
||||
// DeviceClassConfiguration is used in DeviceClass.
|
||||
message DeviceClassConfiguration {
|
||||
optional DeviceConfiguration deviceConfiguration = 1;
|
||||
}
|
||||
|
||||
// DeviceClassList is a collection of classes.
|
||||
message DeviceClassList {
|
||||
// Standard list metadata
|
||||
// +optional
|
||||
optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
|
||||
|
||||
// Items is the list of resource classes.
|
||||
repeated DeviceClass items = 2;
|
||||
}
|
||||
|
||||
// DeviceClassSpec is used in a [DeviceClass] to define what can be allocated
|
||||
// and how to configure it.
|
||||
message DeviceClassSpec {
|
||||
// Each selector must be satisfied by a device which is claimed via this class.
|
||||
//
|
||||
// +optional
|
||||
// +listType=atomic
|
||||
repeated DeviceSelector selectors = 1;
|
||||
|
||||
// Config defines configuration parameters that apply to each device that is claimed via this class.
|
||||
// Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor
|
||||
// configuration applies to exactly one driver.
|
||||
//
|
||||
// They are passed to the driver, but are not considered while allocating the claim.
|
||||
//
|
||||
// +optional
|
||||
// +listType=atomic
|
||||
repeated DeviceClassConfiguration config = 2;
|
||||
}
|
||||
|
||||
// DeviceConfiguration must have exactly one field set. It gets embedded
|
||||
// inline in some other structs which have other fields, so field names must
|
||||
// not conflict with those.
|
||||
message DeviceConfiguration {
|
||||
// Opaque provides driver-specific configuration parameters.
|
||||
//
|
||||
// +optional
|
||||
// +oneOf=ConfigurationType
|
||||
optional OpaqueDeviceConfiguration opaque = 1;
|
||||
}
|
||||
|
||||
// DeviceConstraint must have exactly one field set besides Requests.
|
||||
message DeviceConstraint {
|
||||
// Requests is a list of the one or more requests in this claim which
|
||||
// must co-satisfy this constraint. If a request is fulfilled by
|
||||
// multiple devices, then all of the devices must satisfy the
|
||||
// constraint. If this is not specified, this constraint applies to all
|
||||
// requests in this claim.
|
||||
//
|
||||
// +optional
|
||||
// +listType=atomic
|
||||
repeated string requests = 1;
|
||||
|
||||
// MatchAttribute requires that all devices in question have this
|
||||
// attribute and that its type and value are the same across those
|
||||
// devices.
|
||||
//
|
||||
// For example, if you specified "dra.example.com/numa" (a hypothetical example!),
|
||||
// then only devices in the same NUMA node will be chosen. A device which
|
||||
// does not have that attribute will not be chosen. All devices should
|
||||
// use a value of the same type for this attribute because that is part of
|
||||
// its specification, but if one device doesn't, then it also will not be
|
||||
// chosen.
|
||||
//
|
||||
// Must include the domain qualifier.
|
||||
//
|
||||
// +optional
|
||||
// +oneOf=ConstraintType
|
||||
optional string matchAttribute = 2;
|
||||
}
|
||||
|
||||
// DeviceRequest is a request for devices required for a claim.
|
||||
// This is typically a request for a single resource like a device, but can
|
||||
// also ask for several identical devices.
|
||||
//
|
||||
// A DeviceClassName is currently required. Clients must check that it is
|
||||
// indeed set. It's absence indicates that something changed in a way that
|
||||
// is not supported by the client yet, in which case it must refuse to
|
||||
// handle the request.
|
||||
message DeviceRequest {
|
||||
// Name can be used to reference this request in a pod.spec.containers[].resources.claims
|
||||
// entry and in a constraint of the claim.
|
||||
//
|
||||
// Must be a DNS label.
|
||||
//
|
||||
// +required
|
||||
optional string name = 1;
|
||||
|
||||
// DeviceClassName references a specific DeviceClass, which can define
|
||||
// additional configuration and selectors to be inherited by this
|
||||
// request.
|
||||
//
|
||||
// A class is required. Which classes are available depends on the cluster.
|
||||
//
|
||||
// Administrators may use this to restrict which devices may get
|
||||
// requested by only installing classes with selectors for permitted
|
||||
// devices. If users are free to request anything without restrictions,
|
||||
// then administrators can create an empty DeviceClass for users
|
||||
// to reference.
|
||||
//
|
||||
// +required
|
||||
optional string deviceClassName = 2;
|
||||
|
||||
// Selectors define criteria which must be satisfied by a specific
|
||||
// device in order for that device to be considered for this
|
||||
// request. All selectors must be satisfied for a device to be
|
||||
// considered.
|
||||
//
|
||||
// +optional
|
||||
// +listType=atomic
|
||||
repeated DeviceSelector selectors = 3;
|
||||
|
||||
// AllocationMode and its related fields define how devices are allocated
|
||||
// to satisfy this request. Supported values are:
|
||||
//
|
||||
// - ExactCount: This request is for a specific number of devices.
|
||||
// This is the default. The exact number is provided in the
|
||||
// count field.
|
||||
//
|
||||
// - All: This request is for all of the matching devices in a pool.
|
||||
// Allocation will fail if some devices are already allocated,
|
||||
// unless adminAccess is requested.
|
||||
//
|
||||
// If AlloctionMode is not specified, the default mode is ExactCount. If
|
||||
// the mode is ExactCount and count is not specified, the default count is
|
||||
// one. Any other requests must specify this field.
|
||||
//
|
||||
// More modes may get added in the future. Clients must refuse to handle
|
||||
// requests with unknown modes.
|
||||
//
|
||||
// +optional
|
||||
optional string allocationMode = 4;
|
||||
|
||||
// Count is used only when the count mode is "ExactCount". Must be greater than zero.
|
||||
// If AllocationMode is ExactCount and this field is not specified, the default is one.
|
||||
//
|
||||
// +optional
|
||||
// +oneOf=AllocationMode
|
||||
optional int64 count = 5;
|
||||
|
||||
// AdminAccess indicates that this is a claim for administrative access
|
||||
// to the device(s). Claims with AdminAccess are expected to be used for
|
||||
// monitoring or other management services for a device. They ignore
|
||||
// all ordinary claims to the device with respect to access modes and
|
||||
// any resource allocations.
|
||||
//
|
||||
// This is an alpha field and requires enabling the DRAAdminAccess
|
||||
// feature gate. Admin access is disabled if this field is unset or
|
||||
// set to false, otherwise it is enabled.
|
||||
//
|
||||
// +optional
|
||||
// +featureGate=DRAAdminAccess
|
||||
optional bool adminAccess = 6;
|
||||
}
|
||||
|
||||
// DeviceRequestAllocationResult contains the allocation result for one request.
|
||||
message DeviceRequestAllocationResult {
|
||||
// Request is the name of the request in the claim which caused this
|
||||
// device to be allocated. Multiple devices may have been allocated
|
||||
// per request.
|
||||
//
|
||||
// +required
|
||||
optional string request = 1;
|
||||
|
||||
// Driver specifies the name of the DRA driver whose kubelet
|
||||
// plugin should be invoked to process the allocation once the claim is
|
||||
// needed on a node.
|
||||
//
|
||||
// Must be a DNS subdomain and should end with a DNS domain owned by the
|
||||
// vendor of the driver.
|
||||
//
|
||||
// +required
|
||||
optional string driver = 2;
|
||||
|
||||
// This name together with the driver name and the device name field
|
||||
// identify which device was allocated (`<driver name>/<pool name>/<device name>`).
|
||||
//
|
||||
// Must not be longer than 253 characters and may contain one or more
|
||||
// DNS sub-domains separated by slashes.
|
||||
//
|
||||
// +required
|
||||
optional string pool = 3;
|
||||
|
||||
// Device references one device instance via its name in the driver's
|
||||
// resource pool. It must be a DNS label.
|
||||
//
|
||||
// +required
|
||||
optional string device = 4;
|
||||
|
||||
// AdminAccess indicates that this device was allocated for
|
||||
// administrative access. See the corresponding request field
|
||||
// for a definition of mode.
|
||||
//
|
||||
// This is an alpha field and requires enabling the DRAAdminAccess
|
||||
// feature gate. Admin access is disabled if this field is unset or
|
||||
// set to false, otherwise it is enabled.
|
||||
//
|
||||
// +optional
|
||||
// +featureGate=DRAAdminAccess
|
||||
optional bool adminAccess = 5;
|
||||
}
|
||||
|
||||
// DeviceSelector must have exactly one field set.
|
||||
message DeviceSelector {
|
||||
// CEL contains a CEL expression for selecting a device.
|
||||
//
|
||||
// +optional
|
||||
// +oneOf=SelectorType
|
||||
optional CELDeviceSelector cel = 1;
|
||||
}
|
||||
|
||||
// NetworkDeviceData provides network-related details for the allocated device.
|
||||
// This information may be filled by drivers or other components to configure
|
||||
// or identify the device within a network context.
|
||||
message NetworkDeviceData {
|
||||
// InterfaceName specifies the name of the network interface associated with
|
||||
// the allocated device. This might be the name of a physical or virtual
|
||||
// network interface being configured in the pod.
|
||||
//
|
||||
// Must not be longer than 256 characters.
|
||||
//
|
||||
// +optional
|
||||
optional string interfaceName = 1;
|
||||
|
||||
// IPs lists the network addresses assigned to the device's network interface.
|
||||
// This can include both IPv4 and IPv6 addresses.
|
||||
// The IPs are in the CIDR notation, which includes both the address and the
|
||||
// associated subnet mask.
|
||||
// e.g.: "192.0.2.5/24" for IPv4 and "2001:db8::5/64" for IPv6.
|
||||
//
|
||||
// +optional
|
||||
// +listType=atomic
|
||||
repeated string ips = 2;
|
||||
|
||||
// HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface.
|
||||
//
|
||||
// Must not be longer than 128 characters.
|
||||
//
|
||||
// +optional
|
||||
optional string hardwareAddress = 3;
|
||||
}
|
||||
|
||||
// OpaqueDeviceConfiguration contains configuration parameters for a driver
|
||||
// in a format defined by the driver vendor.
|
||||
message OpaqueDeviceConfiguration {
|
||||
// Driver is used to determine which kubelet plugin needs
|
||||
// to be passed these configuration parameters.
|
||||
//
|
||||
// An admission policy provided by the driver developer could use this
|
||||
// to decide whether it needs to validate them.
|
||||
//
|
||||
// Must be a DNS subdomain and should end with a DNS domain owned by the
|
||||
// vendor of the driver.
|
||||
//
|
||||
// +required
|
||||
optional string driver = 1;
|
||||
|
||||
// Parameters can contain arbitrary data. It is the responsibility of
|
||||
// the driver developer to handle validation and versioning. Typically this
|
||||
// includes self-identification and a version ("kind" + "apiVersion" for
|
||||
// Kubernetes types), with conversion between different versions.
|
||||
//
|
||||
// The length of the raw data must be smaller or equal to 10 Ki.
|
||||
//
|
||||
// +required
|
||||
optional .k8s.io.apimachinery.pkg.runtime.RawExtension parameters = 2;
|
||||
}
|
||||
|
||||
// ResourceClaim describes a request for access to resources in the cluster,
|
||||
// for use by workloads. For example, if a workload needs an accelerator device
|
||||
// with specific properties, this is how that request is expressed. The status
|
||||
// stanza tracks whether this claim has been satisfied and what specific
|
||||
// resources have been allocated.
|
||||
//
|
||||
// This is an alpha type and requires enabling the DynamicResourceAllocation
|
||||
// feature gate.
|
||||
message ResourceClaim {
|
||||
// Standard object metadata
|
||||
// +optional
|
||||
optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
|
||||
|
||||
// Spec describes what is being requested and how to configure it.
|
||||
// The spec is immutable.
|
||||
optional ResourceClaimSpec spec = 2;
|
||||
|
||||
// Status describes whether the claim is ready to use and what has been allocated.
|
||||
// +optional
|
||||
optional ResourceClaimStatus status = 3;
|
||||
}
|
||||
|
||||
// ResourceClaimConsumerReference contains enough information to let you
|
||||
// locate the consumer of a ResourceClaim. The user must be a resource in the same
|
||||
// namespace as the ResourceClaim.
|
||||
message ResourceClaimConsumerReference {
|
||||
// APIGroup is the group for the resource being referenced. It is
|
||||
// empty for the core API. This matches the group in the APIVersion
|
||||
// that is used when creating the resources.
|
||||
// +optional
|
||||
optional string apiGroup = 1;
|
||||
|
||||
// Resource is the type of resource being referenced, for example "pods".
|
||||
// +required
|
||||
optional string resource = 3;
|
||||
|
||||
// Name is the name of resource being referenced.
|
||||
// +required
|
||||
optional string name = 4;
|
||||
|
||||
// UID identifies exactly one incarnation of the resource.
|
||||
// +required
|
||||
optional string uid = 5;
|
||||
}
|
||||
|
||||
// ResourceClaimList is a collection of claims.
|
||||
message ResourceClaimList {
|
||||
// Standard list metadata
|
||||
// +optional
|
||||
optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
|
||||
|
||||
// Items is the list of resource claims.
|
||||
repeated ResourceClaim items = 2;
|
||||
}
|
||||
|
||||
// ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it.
|
||||
message ResourceClaimSpec {
|
||||
// Devices defines how to request devices.
|
||||
//
|
||||
// +optional
|
||||
optional DeviceClaim devices = 1;
|
||||
}
|
||||
|
||||
// ResourceClaimStatus tracks whether the resource has been allocated and what
|
||||
// the result of that was.
|
||||
message ResourceClaimStatus {
|
||||
// Allocation is set once the claim has been allocated successfully.
|
||||
//
|
||||
// +optional
|
||||
optional AllocationResult allocation = 1;
|
||||
|
||||
// ReservedFor indicates which entities are currently allowed to use
|
||||
// the claim. A Pod which references a ResourceClaim which is not
|
||||
// reserved for that Pod will not be started. A claim that is in
|
||||
// use or might be in use because it has been reserved must not get
|
||||
// deallocated.
|
||||
//
|
||||
// In a cluster with multiple scheduler instances, two pods might get
|
||||
// scheduled concurrently by different schedulers. When they reference
|
||||
// the same ResourceClaim which already has reached its maximum number
|
||||
// of consumers, only one pod can be scheduled.
|
||||
//
|
||||
// Both schedulers try to add their pod to the claim.status.reservedFor
|
||||
// field, but only the update that reaches the API server first gets
|
||||
// stored. The other one fails with an error and the scheduler
|
||||
// which issued it knows that it must put the pod back into the queue,
|
||||
// waiting for the ResourceClaim to become usable again.
|
||||
//
|
||||
// There can be at most 256 such reservations. This may get increased in
|
||||
// the future, but not reduced.
|
||||
//
|
||||
// +optional
|
||||
// +listType=map
|
||||
// +listMapKey=uid
|
||||
// +patchStrategy=merge
|
||||
// +patchMergeKey=uid
|
||||
repeated ResourceClaimConsumerReference reservedFor = 2;
|
||||
|
||||
// Devices contains the status of each device allocated for this
|
||||
// claim, as reported by the driver. This can include driver-specific
|
||||
// information. Entries are owned by their respective drivers.
|
||||
//
|
||||
// +optional
|
||||
// +listType=map
|
||||
// +listMapKey=driver
|
||||
// +listMapKey=device
|
||||
// +listMapKey=pool
|
||||
// +featureGate=DRAResourceClaimDeviceStatus
|
||||
repeated AllocatedDeviceStatus devices = 4;
|
||||
}
|
||||
|
||||
// ResourceClaimTemplate is used to produce ResourceClaim objects.
|
||||
//
|
||||
// This is an alpha type and requires enabling the DynamicResourceAllocation
|
||||
// feature gate.
|
||||
message ResourceClaimTemplate {
|
||||
// Standard object metadata
|
||||
// +optional
|
||||
optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
|
||||
|
||||
// Describes the ResourceClaim that is to be generated.
|
||||
//
|
||||
// This field is immutable. A ResourceClaim will get created by the
|
||||
// control plane for a Pod when needed and then not get updated
|
||||
// anymore.
|
||||
optional ResourceClaimTemplateSpec spec = 2;
|
||||
}
|
||||
|
||||
// ResourceClaimTemplateList is a collection of claim templates.
|
||||
message ResourceClaimTemplateList {
|
||||
// Standard list metadata
|
||||
// +optional
|
||||
optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
|
||||
|
||||
// Items is the list of resource claim templates.
|
||||
repeated ResourceClaimTemplate items = 2;
|
||||
}
|
||||
|
||||
// ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.
|
||||
message ResourceClaimTemplateSpec {
|
||||
// ObjectMeta may contain labels and annotations that will be copied into the ResourceClaim
|
||||
// when creating it. No other fields are allowed and will be rejected during
|
||||
// validation.
|
||||
// +optional
|
||||
optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
|
||||
|
||||
// Spec for the ResourceClaim. The entire content is copied unchanged
|
||||
// into the ResourceClaim that gets created from this template. The
|
||||
// same fields as in a ResourceClaim are also valid here.
|
||||
optional ResourceClaimSpec spec = 2;
|
||||
}
|
||||
|
||||
// ResourcePool describes the pool that ResourceSlices belong to.
|
||||
message ResourcePool {
|
||||
// Name is used to identify the pool. For node-local devices, this
|
||||
// is often the node name, but this is not required.
|
||||
//
|
||||
// It must not be longer than 253 characters and must consist of one or more DNS sub-domains
|
||||
// separated by slashes. This field is immutable.
|
||||
//
|
||||
// +required
|
||||
optional string name = 1;
|
||||
|
||||
// Generation tracks the change in a pool over time. Whenever a driver
|
||||
// changes something about one or more of the resources in a pool, it
|
||||
// must change the generation in all ResourceSlices which are part of
|
||||
// that pool. Consumers of ResourceSlices should only consider
|
||||
// resources from the pool with the highest generation number. The
|
||||
// generation may be reset by drivers, which should be fine for
|
||||
// consumers, assuming that all ResourceSlices in a pool are updated to
|
||||
// match or deleted.
|
||||
//
|
||||
// Combined with ResourceSliceCount, this mechanism enables consumers to
|
||||
// detect pools which are comprised of multiple ResourceSlices and are
|
||||
// in an incomplete state.
|
||||
//
|
||||
// +required
|
||||
optional int64 generation = 2;
|
||||
|
||||
// ResourceSliceCount is the total number of ResourceSlices in the pool at this
|
||||
// generation number. Must be greater than zero.
|
||||
//
|
||||
// Consumers can use this to check whether they have seen all ResourceSlices
|
||||
// belonging to the same pool.
|
||||
//
|
||||
// +required
|
||||
optional int64 resourceSliceCount = 3;
|
||||
}
|
||||
|
||||
// ResourceSlice represents one or more resources in a pool of similar resources,
|
||||
// managed by a common driver. A pool may span more than one ResourceSlice, and exactly how many
|
||||
// ResourceSlices comprise a pool is determined by the driver.
|
||||
//
|
||||
// At the moment, the only supported resources are devices with attributes and capacities.
|
||||
// Each device in a given pool, regardless of how many ResourceSlices, must have a unique name.
|
||||
// The ResourceSlice in which a device gets published may change over time. The unique identifier
|
||||
// for a device is the tuple <driver name>, <pool name>, <device name>.
|
||||
//
|
||||
// Whenever a driver needs to update a pool, it increments the pool.Spec.Pool.Generation number
|
||||
// and updates all ResourceSlices with that new number and new resource definitions. A consumer
|
||||
// must only use ResourceSlices with the highest generation number and ignore all others.
|
||||
//
|
||||
// When allocating all resources in a pool matching certain criteria or when
|
||||
// looking for the best solution among several different alternatives, a
|
||||
// consumer should check the number of ResourceSlices in a pool (included in
|
||||
// each ResourceSlice) to determine whether its view of a pool is complete and
|
||||
// if not, should wait until the driver has completed updating the pool.
|
||||
//
|
||||
// For resources that are not local to a node, the node name is not set. Instead,
|
||||
// the driver may use a node selector to specify where the devices are available.
|
||||
//
|
||||
// This is an alpha type and requires enabling the DynamicResourceAllocation
|
||||
// feature gate.
|
||||
message ResourceSlice {
|
||||
// Standard object metadata
|
||||
// +optional
|
||||
optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
|
||||
|
||||
// Contains the information published by the driver.
|
||||
//
|
||||
// Changing the spec automatically increments the metadata.generation number.
|
||||
optional ResourceSliceSpec spec = 2;
|
||||
}
|
||||
|
||||
// ResourceSliceList is a collection of ResourceSlices.
|
||||
message ResourceSliceList {
|
||||
// Standard list metadata
|
||||
// +optional
|
||||
optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
|
||||
|
||||
// Items is the list of resource ResourceSlices.
|
||||
repeated ResourceSlice items = 2;
|
||||
}
|
||||
|
||||
// ResourceSliceSpec contains the information published by the driver in one ResourceSlice.
|
||||
message ResourceSliceSpec {
|
||||
// Driver identifies the DRA driver providing the capacity information.
|
||||
// A field selector can be used to list only ResourceSlice
|
||||
// objects with a certain driver name.
|
||||
//
|
||||
// Must be a DNS subdomain and should end with a DNS domain owned by the
|
||||
// vendor of the driver. This field is immutable.
|
||||
//
|
||||
// +required
|
||||
optional string driver = 1;
|
||||
|
||||
// Pool describes the pool that this ResourceSlice belongs to.
|
||||
//
|
||||
// +required
|
||||
optional ResourcePool pool = 2;
|
||||
|
||||
// NodeName identifies the node which provides the resources in this pool.
|
||||
// A field selector can be used to list only ResourceSlice
|
||||
// objects belonging to a certain node.
|
||||
//
|
||||
// This field can be used to limit access from nodes to ResourceSlices with
|
||||
// the same node name. It also indicates to autoscalers that adding
|
||||
// new nodes of the same type as some old node might also make new
|
||||
// resources available.
|
||||
//
|
||||
// Exactly one of NodeName, NodeSelector and AllNodes must be set.
|
||||
// This field is immutable.
|
||||
//
|
||||
// +optional
|
||||
// +oneOf=NodeSelection
|
||||
optional string nodeName = 3;
|
||||
|
||||
// NodeSelector defines which nodes have access to the resources in the pool,
|
||||
// when that pool is not limited to a single node.
|
||||
//
|
||||
// Must use exactly one term.
|
||||
//
|
||||
// Exactly one of NodeName, NodeSelector and AllNodes must be set.
|
||||
//
|
||||
// +optional
|
||||
// +oneOf=NodeSelection
|
||||
optional .k8s.io.api.core.v1.NodeSelector nodeSelector = 4;
|
||||
|
||||
// AllNodes indicates that all nodes have access to the resources in the pool.
|
||||
//
|
||||
// Exactly one of NodeName, NodeSelector and AllNodes must be set.
|
||||
//
|
||||
// +optional
|
||||
// +oneOf=NodeSelection
|
||||
optional bool allNodes = 5;
|
||||
|
||||
// Devices lists some or all of the devices in this pool.
|
||||
//
|
||||
// Must not have more than 128 entries.
|
||||
//
|
||||
// +optional
|
||||
// +listType=atomic
|
||||
repeated Device devices = 6;
|
||||
}
|
||||
|
60
e2e/vendor/k8s.io/api/resource/v1beta1/register.go
generated
vendored
Normal file
60
e2e/vendor/k8s.io/api/resource/v1beta1/register.go
generated
vendored
Normal file
@ -0,0 +1,60 @@
|
||||
/*
|
||||
Copyright 2022 The Kubernetes Authors.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
package v1beta1
|
||||
|
||||
import (
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||
)
|
||||
|
||||
// GroupName is the group name use in this package
|
||||
const GroupName = "resource.k8s.io"
|
||||
|
||||
// SchemeGroupVersion is group version used to register these objects
|
||||
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1beta1"}
|
||||
|
||||
// Resource takes an unqualified resource and returns a Group qualified GroupResource
|
||||
func Resource(resource string) schema.GroupResource {
|
||||
return SchemeGroupVersion.WithResource(resource).GroupResource()
|
||||
}
|
||||
|
||||
var (
|
||||
// We only register manually written functions here. The registration of the
|
||||
// generated functions takes place in the generated files. The separation
|
||||
// makes the code compile even when the generated files are missing.
|
||||
SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
|
||||
AddToScheme = SchemeBuilder.AddToScheme
|
||||
)
|
||||
|
||||
// Adds the list of known types to the given scheme.
|
||||
func addKnownTypes(scheme *runtime.Scheme) error {
|
||||
scheme.AddKnownTypes(SchemeGroupVersion,
|
||||
&DeviceClass{},
|
||||
&DeviceClassList{},
|
||||
&ResourceClaim{},
|
||||
&ResourceClaimList{},
|
||||
&ResourceClaimTemplate{},
|
||||
&ResourceClaimTemplateList{},
|
||||
&ResourceSlice{},
|
||||
&ResourceSliceList{},
|
||||
)
|
||||
|
||||
// Add the watch version that applies
|
||||
metav1.AddToGroupVersion(scheme, SchemeGroupVersion)
|
||||
return nil
|
||||
}
|
1084
e2e/vendor/k8s.io/api/resource/v1beta1/types.go
generated
vendored
Normal file
1084
e2e/vendor/k8s.io/api/resource/v1beta1/types.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
386
e2e/vendor/k8s.io/api/resource/v1beta1/types_swagger_doc_generated.go
generated
vendored
Normal file
386
e2e/vendor/k8s.io/api/resource/v1beta1/types_swagger_doc_generated.go
generated
vendored
Normal file
@ -0,0 +1,386 @@
|
||||
/*
|
||||
Copyright The Kubernetes Authors.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
package v1beta1
|
||||
|
||||
// This file contains a collection of methods that can be used from go-restful to
|
||||
// generate Swagger API documentation for its models. Please read this PR for more
|
||||
// information on the implementation: https://github.com/emicklei/go-restful/pull/215
|
||||
//
|
||||
// TODOs are ignored from the parser (e.g. TODO(andronat):... || TODO:...) if and only if
|
||||
// they are on one line! For multiple line or blocks that you want to ignore use ---.
|
||||
// Any context after a --- is ignored.
|
||||
//
|
||||
// Those methods can be generated by using hack/update-codegen.sh
|
||||
|
||||
// AUTO-GENERATED FUNCTIONS START HERE. DO NOT EDIT.
|
||||
var map_AllocatedDeviceStatus = map[string]string{
|
||||
"": "AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information.",
|
||||
"driver": "Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node.\n\nMust be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.",
|
||||
"pool": "This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`).\n\nMust not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.",
|
||||
"device": "Device references one device instance via its name in the driver's resource pool. It must be a DNS label.",
|
||||
"conditions": "Conditions contains the latest observation of the device's state. If the device has been configured according to the class and claim config references, the `Ready` condition should be True.",
|
||||
"data": "Data contains arbitrary driver-specific data.\n\nThe length of the raw data must be smaller or equal to 10 Ki.",
|
||||
"networkData": "NetworkData contains network-related information specific to the device.",
|
||||
}
|
||||
|
||||
func (AllocatedDeviceStatus) SwaggerDoc() map[string]string {
|
||||
return map_AllocatedDeviceStatus
|
||||
}
|
||||
|
||||
var map_AllocationResult = map[string]string{
|
||||
"": "AllocationResult contains attributes of an allocated resource.",
|
||||
"devices": "Devices is the result of allocating devices.",
|
||||
"nodeSelector": "NodeSelector defines where the allocated resources are available. If unset, they are available everywhere.",
|
||||
}
|
||||
|
||||
func (AllocationResult) SwaggerDoc() map[string]string {
|
||||
return map_AllocationResult
|
||||
}
|
||||
|
||||
var map_BasicDevice = map[string]string{
|
||||
"": "BasicDevice defines one device instance.",
|
||||
"attributes": "Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set.\n\nThe maximum number of attributes and capacities combined is 32.",
|
||||
"capacity": "Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set.\n\nThe maximum number of attributes and capacities combined is 32.",
|
||||
}
|
||||
|
||||
func (BasicDevice) SwaggerDoc() map[string]string {
|
||||
return map_BasicDevice
|
||||
}
|
||||
|
||||
var map_CELDeviceSelector = map[string]string{
|
||||
"": "CELDeviceSelector contains a CEL expression for selecting a device.",
|
||||
"expression": "Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort.\n\nThe expression's input is an object named \"device\", which carries the following properties:\n - driver (string): the name of the driver which defines this device.\n - attributes (map[string]object): the device's attributes, grouped by prefix\n (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all\n of the attributes which were prefixed by \"dra.example.com\".\n - capacity (map[string]object): the device's capacities, grouped by prefix.\n\nExample: Consider a device with driver=\"dra.example.com\", which exposes two attributes named \"model\" and \"ext.example.com/family\" and which exposes one capacity named \"modules\". This input to this expression would have the following fields:\n\n device.driver\n device.attributes[\"dra.example.com\"].model\n device.attributes[\"ext.example.com\"].family\n device.capacity[\"dra.example.com\"].modules\n\nThe device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers.\n\nThe value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity.\n\nIf an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort.\n\nA robust expression should check for the existence of attributes before referencing them.\n\nFor ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example:\n\n cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool)\n\nThe length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps.",
|
||||
}
|
||||
|
||||
func (CELDeviceSelector) SwaggerDoc() map[string]string {
|
||||
return map_CELDeviceSelector
|
||||
}
|
||||
|
||||
var map_Device = map[string]string{
|
||||
"": "Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set.",
|
||||
"name": "Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.",
|
||||
"basic": "Basic defines one device instance.",
|
||||
}
|
||||
|
||||
func (Device) SwaggerDoc() map[string]string {
|
||||
return map_Device
|
||||
}
|
||||
|
||||
var map_DeviceAllocationConfiguration = map[string]string{
|
||||
"": "DeviceAllocationConfiguration gets embedded in an AllocationResult.",
|
||||
"source": "Source records whether the configuration comes from a class and thus is not something that a normal user would have been able to set or from a claim.",
|
||||
"requests": "Requests lists the names of requests where the configuration applies. If empty, its applies to all requests.",
|
||||
}
|
||||
|
||||
func (DeviceAllocationConfiguration) SwaggerDoc() map[string]string {
|
||||
return map_DeviceAllocationConfiguration
|
||||
}
|
||||
|
||||
var map_DeviceAllocationResult = map[string]string{
|
||||
"": "DeviceAllocationResult is the result of allocating devices.",
|
||||
"results": "Results lists all allocated devices.",
|
||||
"config": "This field is a combination of all the claim and class configuration parameters. Drivers can distinguish between those based on a flag.\n\nThis includes configuration parameters for drivers which have no allocated devices in the result because it is up to the drivers which configuration parameters they support. They can silently ignore unknown configuration parameters.",
|
||||
}
|
||||
|
||||
func (DeviceAllocationResult) SwaggerDoc() map[string]string {
|
||||
return map_DeviceAllocationResult
|
||||
}
|
||||
|
||||
var map_DeviceAttribute = map[string]string{
|
||||
"": "DeviceAttribute must have exactly one field set.",
|
||||
"int": "IntValue is a number.",
|
||||
"bool": "BoolValue is a true/false value.",
|
||||
"string": "StringValue is a string. Must not be longer than 64 characters.",
|
||||
"version": "VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters.",
|
||||
}
|
||||
|
||||
func (DeviceAttribute) SwaggerDoc() map[string]string {
|
||||
return map_DeviceAttribute
|
||||
}
|
||||
|
||||
var map_DeviceCapacity = map[string]string{
|
||||
"": "DeviceCapacity describes a quantity associated with a device.",
|
||||
"value": "Value defines how much of a certain device capacity is available.",
|
||||
}
|
||||
|
||||
func (DeviceCapacity) SwaggerDoc() map[string]string {
|
||||
return map_DeviceCapacity
|
||||
}
|
||||
|
||||
var map_DeviceClaim = map[string]string{
|
||||
"": "DeviceClaim defines how to request devices with a ResourceClaim.",
|
||||
"requests": "Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated.",
|
||||
"constraints": "These constraints must be satisfied by the set of devices that get allocated for the claim.",
|
||||
"config": "This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim.",
|
||||
}
|
||||
|
||||
func (DeviceClaim) SwaggerDoc() map[string]string {
|
||||
return map_DeviceClaim
|
||||
}
|
||||
|
||||
var map_DeviceClaimConfiguration = map[string]string{
|
||||
"": "DeviceClaimConfiguration is used for configuration parameters in DeviceClaim.",
|
||||
"requests": "Requests lists the names of requests where the configuration applies. If empty, it applies to all requests.",
|
||||
}
|
||||
|
||||
func (DeviceClaimConfiguration) SwaggerDoc() map[string]string {
|
||||
return map_DeviceClaimConfiguration
|
||||
}
|
||||
|
||||
var map_DeviceClass = map[string]string{
|
||||
"": "DeviceClass is a vendor- or admin-provided resource that contains device configuration and selectors. It can be referenced in the device requests of a claim to apply these presets. Cluster scoped.\n\nThis is an alpha type and requires enabling the DynamicResourceAllocation feature gate.",
|
||||
"metadata": "Standard object metadata",
|
||||
"spec": "Spec defines what can be allocated and how to configure it.\n\nThis is mutable. Consumers have to be prepared for classes changing at any time, either because they get updated or replaced. Claim allocations are done once based on whatever was set in classes at the time of allocation.\n\nChanging the spec automatically increments the metadata.generation number.",
|
||||
}
|
||||
|
||||
func (DeviceClass) SwaggerDoc() map[string]string {
|
||||
return map_DeviceClass
|
||||
}
|
||||
|
||||
var map_DeviceClassConfiguration = map[string]string{
|
||||
"": "DeviceClassConfiguration is used in DeviceClass.",
|
||||
}
|
||||
|
||||
func (DeviceClassConfiguration) SwaggerDoc() map[string]string {
|
||||
return map_DeviceClassConfiguration
|
||||
}
|
||||
|
||||
var map_DeviceClassList = map[string]string{
|
||||
"": "DeviceClassList is a collection of classes.",
|
||||
"metadata": "Standard list metadata",
|
||||
"items": "Items is the list of resource classes.",
|
||||
}
|
||||
|
||||
func (DeviceClassList) SwaggerDoc() map[string]string {
|
||||
return map_DeviceClassList
|
||||
}
|
||||
|
||||
var map_DeviceClassSpec = map[string]string{
|
||||
"": "DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it.",
|
||||
"selectors": "Each selector must be satisfied by a device which is claimed via this class.",
|
||||
"config": "Config defines configuration parameters that apply to each device that is claimed via this class. Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor configuration applies to exactly one driver.\n\nThey are passed to the driver, but are not considered while allocating the claim.",
|
||||
}
|
||||
|
||||
func (DeviceClassSpec) SwaggerDoc() map[string]string {
|
||||
return map_DeviceClassSpec
|
||||
}
|
||||
|
||||
var map_DeviceConfiguration = map[string]string{
|
||||
"": "DeviceConfiguration must have exactly one field set. It gets embedded inline in some other structs which have other fields, so field names must not conflict with those.",
|
||||
"opaque": "Opaque provides driver-specific configuration parameters.",
|
||||
}
|
||||
|
||||
func (DeviceConfiguration) SwaggerDoc() map[string]string {
|
||||
return map_DeviceConfiguration
|
||||
}
|
||||
|
||||
var map_DeviceConstraint = map[string]string{
|
||||
"": "DeviceConstraint must have exactly one field set besides Requests.",
|
||||
"requests": "Requests is a list of the one or more requests in this claim which must co-satisfy this constraint. If a request is fulfilled by multiple devices, then all of the devices must satisfy the constraint. If this is not specified, this constraint applies to all requests in this claim.",
|
||||
"matchAttribute": "MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices.\n\nFor example, if you specified \"dra.example.com/numa\" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen.\n\nMust include the domain qualifier.",
|
||||
}
|
||||
|
||||
func (DeviceConstraint) SwaggerDoc() map[string]string {
|
||||
return map_DeviceConstraint
|
||||
}
|
||||
|
||||
var map_DeviceRequest = map[string]string{
|
||||
"": "DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices.\n\nA DeviceClassName is currently required. Clients must check that it is indeed set. It's absence indicates that something changed in a way that is not supported by the client yet, in which case it must refuse to handle the request.",
|
||||
"name": "Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim.\n\nMust be a DNS label.",
|
||||
"deviceClassName": "DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request.\n\nA class is required. Which classes are available depends on the cluster.\n\nAdministrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference.",
|
||||
"selectors": "Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered.",
|
||||
"allocationMode": "AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are:\n\n- ExactCount: This request is for a specific number of devices.\n This is the default. The exact number is provided in the\n count field.\n\n- All: This request is for all of the matching devices in a pool.\n Allocation will fail if some devices are already allocated,\n unless adminAccess is requested.\n\nIf AlloctionMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other requests must specify this field.\n\nMore modes may get added in the future. Clients must refuse to handle requests with unknown modes.",
|
||||
"count": "Count is used only when the count mode is \"ExactCount\". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one.",
|
||||
"adminAccess": "AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations.\n\nThis is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled.",
|
||||
}
|
||||
|
||||
func (DeviceRequest) SwaggerDoc() map[string]string {
|
||||
return map_DeviceRequest
|
||||
}
|
||||
|
||||
var map_DeviceRequestAllocationResult = map[string]string{
|
||||
"": "DeviceRequestAllocationResult contains the allocation result for one request.",
|
||||
"request": "Request is the name of the request in the claim which caused this device to be allocated. Multiple devices may have been allocated per request.",
|
||||
"driver": "Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node.\n\nMust be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.",
|
||||
"pool": "This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`).\n\nMust not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.",
|
||||
"device": "Device references one device instance via its name in the driver's resource pool. It must be a DNS label.",
|
||||
"adminAccess": "AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode.\n\nThis is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled.",
|
||||
}
|
||||
|
||||
func (DeviceRequestAllocationResult) SwaggerDoc() map[string]string {
|
||||
return map_DeviceRequestAllocationResult
|
||||
}
|
||||
|
||||
var map_DeviceSelector = map[string]string{
|
||||
"": "DeviceSelector must have exactly one field set.",
|
||||
"cel": "CEL contains a CEL expression for selecting a device.",
|
||||
}
|
||||
|
||||
func (DeviceSelector) SwaggerDoc() map[string]string {
|
||||
return map_DeviceSelector
|
||||
}
|
||||
|
||||
var map_NetworkDeviceData = map[string]string{
|
||||
"": "NetworkDeviceData provides network-related details for the allocated device. This information may be filled by drivers or other components to configure or identify the device within a network context.",
|
||||
"interfaceName": "InterfaceName specifies the name of the network interface associated with the allocated device. This might be the name of a physical or virtual network interface being configured in the pod.\n\nMust not be longer than 256 characters.",
|
||||
"ips": "IPs lists the network addresses assigned to the device's network interface. This can include both IPv4 and IPv6 addresses. The IPs are in the CIDR notation, which includes both the address and the associated subnet mask. e.g.: \"192.0.2.5/24\" for IPv4 and \"2001:db8::5/64\" for IPv6.",
|
||||
"hardwareAddress": "HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface.\n\nMust not be longer than 128 characters.",
|
||||
}
|
||||
|
||||
func (NetworkDeviceData) SwaggerDoc() map[string]string {
|
||||
return map_NetworkDeviceData
|
||||
}
|
||||
|
||||
var map_OpaqueDeviceConfiguration = map[string]string{
|
||||
"": "OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor.",
|
||||
"driver": "Driver is used to determine which kubelet plugin needs to be passed these configuration parameters.\n\nAn admission policy provided by the driver developer could use this to decide whether it needs to validate them.\n\nMust be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.",
|
||||
"parameters": "Parameters can contain arbitrary data. It is the responsibility of the driver developer to handle validation and versioning. Typically this includes self-identification and a version (\"kind\" + \"apiVersion\" for Kubernetes types), with conversion between different versions.\n\nThe length of the raw data must be smaller or equal to 10 Ki.",
|
||||
}
|
||||
|
||||
func (OpaqueDeviceConfiguration) SwaggerDoc() map[string]string {
|
||||
return map_OpaqueDeviceConfiguration
|
||||
}
|
||||
|
||||
var map_ResourceClaim = map[string]string{
|
||||
"": "ResourceClaim describes a request for access to resources in the cluster, for use by workloads. For example, if a workload needs an accelerator device with specific properties, this is how that request is expressed. The status stanza tracks whether this claim has been satisfied and what specific resources have been allocated.\n\nThis is an alpha type and requires enabling the DynamicResourceAllocation feature gate.",
|
||||
"metadata": "Standard object metadata",
|
||||
"spec": "Spec describes what is being requested and how to configure it. The spec is immutable.",
|
||||
"status": "Status describes whether the claim is ready to use and what has been allocated.",
|
||||
}
|
||||
|
||||
func (ResourceClaim) SwaggerDoc() map[string]string {
|
||||
return map_ResourceClaim
|
||||
}
|
||||
|
||||
var map_ResourceClaimConsumerReference = map[string]string{
|
||||
"": "ResourceClaimConsumerReference contains enough information to let you locate the consumer of a ResourceClaim. The user must be a resource in the same namespace as the ResourceClaim.",
|
||||
"apiGroup": "APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.",
|
||||
"resource": "Resource is the type of resource being referenced, for example \"pods\".",
|
||||
"name": "Name is the name of resource being referenced.",
|
||||
"uid": "UID identifies exactly one incarnation of the resource.",
|
||||
}
|
||||
|
||||
func (ResourceClaimConsumerReference) SwaggerDoc() map[string]string {
|
||||
return map_ResourceClaimConsumerReference
|
||||
}
|
||||
|
||||
var map_ResourceClaimList = map[string]string{
|
||||
"": "ResourceClaimList is a collection of claims.",
|
||||
"metadata": "Standard list metadata",
|
||||
"items": "Items is the list of resource claims.",
|
||||
}
|
||||
|
||||
func (ResourceClaimList) SwaggerDoc() map[string]string {
|
||||
return map_ResourceClaimList
|
||||
}
|
||||
|
||||
var map_ResourceClaimSpec = map[string]string{
|
||||
"": "ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it.",
|
||||
"devices": "Devices defines how to request devices.",
|
||||
}
|
||||
|
||||
func (ResourceClaimSpec) SwaggerDoc() map[string]string {
|
||||
return map_ResourceClaimSpec
|
||||
}
|
||||
|
||||
var map_ResourceClaimStatus = map[string]string{
|
||||
"": "ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was.",
|
||||
"allocation": "Allocation is set once the claim has been allocated successfully.",
|
||||
"reservedFor": "ReservedFor indicates which entities are currently allowed to use the claim. A Pod which references a ResourceClaim which is not reserved for that Pod will not be started. A claim that is in use or might be in use because it has been reserved must not get deallocated.\n\nIn a cluster with multiple scheduler instances, two pods might get scheduled concurrently by different schedulers. When they reference the same ResourceClaim which already has reached its maximum number of consumers, only one pod can be scheduled.\n\nBoth schedulers try to add their pod to the claim.status.reservedFor field, but only the update that reaches the API server first gets stored. The other one fails with an error and the scheduler which issued it knows that it must put the pod back into the queue, waiting for the ResourceClaim to become usable again.\n\nThere can be at most 256 such reservations. This may get increased in the future, but not reduced.",
|
||||
"devices": "Devices contains the status of each device allocated for this claim, as reported by the driver. This can include driver-specific information. Entries are owned by their respective drivers.",
|
||||
}
|
||||
|
||||
func (ResourceClaimStatus) SwaggerDoc() map[string]string {
|
||||
return map_ResourceClaimStatus
|
||||
}
|
||||
|
||||
var map_ResourceClaimTemplate = map[string]string{
|
||||
"": "ResourceClaimTemplate is used to produce ResourceClaim objects.\n\nThis is an alpha type and requires enabling the DynamicResourceAllocation feature gate.",
|
||||
"metadata": "Standard object metadata",
|
||||
"spec": "Describes the ResourceClaim that is to be generated.\n\nThis field is immutable. A ResourceClaim will get created by the control plane for a Pod when needed and then not get updated anymore.",
|
||||
}
|
||||
|
||||
func (ResourceClaimTemplate) SwaggerDoc() map[string]string {
|
||||
return map_ResourceClaimTemplate
|
||||
}
|
||||
|
||||
var map_ResourceClaimTemplateList = map[string]string{
|
||||
"": "ResourceClaimTemplateList is a collection of claim templates.",
|
||||
"metadata": "Standard list metadata",
|
||||
"items": "Items is the list of resource claim templates.",
|
||||
}
|
||||
|
||||
func (ResourceClaimTemplateList) SwaggerDoc() map[string]string {
|
||||
return map_ResourceClaimTemplateList
|
||||
}
|
||||
|
||||
var map_ResourceClaimTemplateSpec = map[string]string{
|
||||
"": "ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.",
|
||||
"metadata": "ObjectMeta may contain labels and annotations that will be copied into the ResourceClaim when creating it. No other fields are allowed and will be rejected during validation.",
|
||||
"spec": "Spec for the ResourceClaim. The entire content is copied unchanged into the ResourceClaim that gets created from this template. The same fields as in a ResourceClaim are also valid here.",
|
||||
}
|
||||
|
||||
func (ResourceClaimTemplateSpec) SwaggerDoc() map[string]string {
|
||||
return map_ResourceClaimTemplateSpec
|
||||
}
|
||||
|
||||
var map_ResourcePool = map[string]string{
|
||||
"": "ResourcePool describes the pool that ResourceSlices belong to.",
|
||||
"name": "Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.\n\nIt must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.",
|
||||
"generation": "Generation tracks the change in a pool over time. Whenever a driver changes something about one or more of the resources in a pool, it must change the generation in all ResourceSlices which are part of that pool. Consumers of ResourceSlices should only consider resources from the pool with the highest generation number. The generation may be reset by drivers, which should be fine for consumers, assuming that all ResourceSlices in a pool are updated to match or deleted.\n\nCombined with ResourceSliceCount, this mechanism enables consumers to detect pools which are comprised of multiple ResourceSlices and are in an incomplete state.",
|
||||
"resourceSliceCount": "ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number. Must be greater than zero.\n\nConsumers can use this to check whether they have seen all ResourceSlices belonging to the same pool.",
|
||||
}
|
||||
|
||||
func (ResourcePool) SwaggerDoc() map[string]string {
|
||||
return map_ResourcePool
|
||||
}
|
||||
|
||||
var map_ResourceSlice = map[string]string{
|
||||
"": "ResourceSlice represents one or more resources in a pool of similar resources, managed by a common driver. A pool may span more than one ResourceSlice, and exactly how many ResourceSlices comprise a pool is determined by the driver.\n\nAt the moment, the only supported resources are devices with attributes and capacities. Each device in a given pool, regardless of how many ResourceSlices, must have a unique name. The ResourceSlice in which a device gets published may change over time. The unique identifier for a device is the tuple <driver name>, <pool name>, <device name>.\n\nWhenever a driver needs to update a pool, it increments the pool.Spec.Pool.Generation number and updates all ResourceSlices with that new number and new resource definitions. A consumer must only use ResourceSlices with the highest generation number and ignore all others.\n\nWhen allocating all resources in a pool matching certain criteria or when looking for the best solution among several different alternatives, a consumer should check the number of ResourceSlices in a pool (included in each ResourceSlice) to determine whether its view of a pool is complete and if not, should wait until the driver has completed updating the pool.\n\nFor resources that are not local to a node, the node name is not set. Instead, the driver may use a node selector to specify where the devices are available.\n\nThis is an alpha type and requires enabling the DynamicResourceAllocation feature gate.",
|
||||
"metadata": "Standard object metadata",
|
||||
"spec": "Contains the information published by the driver.\n\nChanging the spec automatically increments the metadata.generation number.",
|
||||
}
|
||||
|
||||
func (ResourceSlice) SwaggerDoc() map[string]string {
|
||||
return map_ResourceSlice
|
||||
}
|
||||
|
||||
var map_ResourceSliceList = map[string]string{
|
||||
"": "ResourceSliceList is a collection of ResourceSlices.",
|
||||
"metadata": "Standard list metadata",
|
||||
"items": "Items is the list of resource ResourceSlices.",
|
||||
}
|
||||
|
||||
func (ResourceSliceList) SwaggerDoc() map[string]string {
|
||||
return map_ResourceSliceList
|
||||
}
|
||||
|
||||
var map_ResourceSliceSpec = map[string]string{
|
||||
"": "ResourceSliceSpec contains the information published by the driver in one ResourceSlice.",
|
||||
"driver": "Driver identifies the DRA driver providing the capacity information. A field selector can be used to list only ResourceSlice objects with a certain driver name.\n\nMust be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. This field is immutable.",
|
||||
"pool": "Pool describes the pool that this ResourceSlice belongs to.",
|
||||
"nodeName": "NodeName identifies the node which provides the resources in this pool. A field selector can be used to list only ResourceSlice objects belonging to a certain node.\n\nThis field can be used to limit access from nodes to ResourceSlices with the same node name. It also indicates to autoscalers that adding new nodes of the same type as some old node might also make new resources available.\n\nExactly one of NodeName, NodeSelector and AllNodes must be set. This field is immutable.",
|
||||
"nodeSelector": "NodeSelector defines which nodes have access to the resources in the pool, when that pool is not limited to a single node.\n\nMust use exactly one term.\n\nExactly one of NodeName, NodeSelector and AllNodes must be set.",
|
||||
"allNodes": "AllNodes indicates that all nodes have access to the resources in the pool.\n\nExactly one of NodeName, NodeSelector and AllNodes must be set.",
|
||||
"devices": "Devices lists some or all of the devices in this pool.\n\nMust not have more than 128 entries.",
|
||||
}
|
||||
|
||||
func (ResourceSliceSpec) SwaggerDoc() map[string]string {
|
||||
return map_ResourceSliceSpec
|
||||
}
|
||||
|
||||
// AUTO-GENERATED FUNCTIONS END HERE
|
882
e2e/vendor/k8s.io/api/resource/v1beta1/zz_generated.deepcopy.go
generated
vendored
Normal file
882
e2e/vendor/k8s.io/api/resource/v1beta1/zz_generated.deepcopy.go
generated
vendored
Normal file
@ -0,0 +1,882 @@
|
||||
//go:build !ignore_autogenerated
|
||||
// +build !ignore_autogenerated
|
||||
|
||||
/*
|
||||
Copyright The Kubernetes Authors.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
// Code generated by deepcopy-gen. DO NOT EDIT.
|
||||
|
||||
package v1beta1
|
||||
|
||||
import (
|
||||
corev1 "k8s.io/api/core/v1"
|
||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
||||
)
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *AllocatedDeviceStatus) DeepCopyInto(out *AllocatedDeviceStatus) {
|
||||
*out = *in
|
||||
if in.Conditions != nil {
|
||||
in, out := &in.Conditions, &out.Conditions
|
||||
*out = make([]v1.Condition, len(*in))
|
||||
for i := range *in {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
in.Data.DeepCopyInto(&out.Data)
|
||||
if in.NetworkData != nil {
|
||||
in, out := &in.NetworkData, &out.NetworkData
|
||||
*out = new(NetworkDeviceData)
|
||||
(*in).DeepCopyInto(*out)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AllocatedDeviceStatus.
|
||||
func (in *AllocatedDeviceStatus) DeepCopy() *AllocatedDeviceStatus {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(AllocatedDeviceStatus)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *AllocationResult) DeepCopyInto(out *AllocationResult) {
|
||||
*out = *in
|
||||
in.Devices.DeepCopyInto(&out.Devices)
|
||||
if in.NodeSelector != nil {
|
||||
in, out := &in.NodeSelector, &out.NodeSelector
|
||||
*out = new(corev1.NodeSelector)
|
||||
(*in).DeepCopyInto(*out)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AllocationResult.
|
||||
func (in *AllocationResult) DeepCopy() *AllocationResult {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(AllocationResult)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *BasicDevice) DeepCopyInto(out *BasicDevice) {
|
||||
*out = *in
|
||||
if in.Attributes != nil {
|
||||
in, out := &in.Attributes, &out.Attributes
|
||||
*out = make(map[QualifiedName]DeviceAttribute, len(*in))
|
||||
for key, val := range *in {
|
||||
(*out)[key] = *val.DeepCopy()
|
||||
}
|
||||
}
|
||||
if in.Capacity != nil {
|
||||
in, out := &in.Capacity, &out.Capacity
|
||||
*out = make(map[QualifiedName]DeviceCapacity, len(*in))
|
||||
for key, val := range *in {
|
||||
(*out)[key] = *val.DeepCopy()
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BasicDevice.
|
||||
func (in *BasicDevice) DeepCopy() *BasicDevice {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(BasicDevice)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *CELDeviceSelector) DeepCopyInto(out *CELDeviceSelector) {
|
||||
*out = *in
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CELDeviceSelector.
|
||||
func (in *CELDeviceSelector) DeepCopy() *CELDeviceSelector {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(CELDeviceSelector)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *Device) DeepCopyInto(out *Device) {
|
||||
*out = *in
|
||||
if in.Basic != nil {
|
||||
in, out := &in.Basic, &out.Basic
|
||||
*out = new(BasicDevice)
|
||||
(*in).DeepCopyInto(*out)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Device.
|
||||
func (in *Device) DeepCopy() *Device {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(Device)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *DeviceAllocationConfiguration) DeepCopyInto(out *DeviceAllocationConfiguration) {
|
||||
*out = *in
|
||||
if in.Requests != nil {
|
||||
in, out := &in.Requests, &out.Requests
|
||||
*out = make([]string, len(*in))
|
||||
copy(*out, *in)
|
||||
}
|
||||
in.DeviceConfiguration.DeepCopyInto(&out.DeviceConfiguration)
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceAllocationConfiguration.
|
||||
func (in *DeviceAllocationConfiguration) DeepCopy() *DeviceAllocationConfiguration {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(DeviceAllocationConfiguration)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *DeviceAllocationResult) DeepCopyInto(out *DeviceAllocationResult) {
|
||||
*out = *in
|
||||
if in.Results != nil {
|
||||
in, out := &in.Results, &out.Results
|
||||
*out = make([]DeviceRequestAllocationResult, len(*in))
|
||||
for i := range *in {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
if in.Config != nil {
|
||||
in, out := &in.Config, &out.Config
|
||||
*out = make([]DeviceAllocationConfiguration, len(*in))
|
||||
for i := range *in {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceAllocationResult.
|
||||
func (in *DeviceAllocationResult) DeepCopy() *DeviceAllocationResult {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(DeviceAllocationResult)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *DeviceAttribute) DeepCopyInto(out *DeviceAttribute) {
|
||||
*out = *in
|
||||
if in.IntValue != nil {
|
||||
in, out := &in.IntValue, &out.IntValue
|
||||
*out = new(int64)
|
||||
**out = **in
|
||||
}
|
||||
if in.BoolValue != nil {
|
||||
in, out := &in.BoolValue, &out.BoolValue
|
||||
*out = new(bool)
|
||||
**out = **in
|
||||
}
|
||||
if in.StringValue != nil {
|
||||
in, out := &in.StringValue, &out.StringValue
|
||||
*out = new(string)
|
||||
**out = **in
|
||||
}
|
||||
if in.VersionValue != nil {
|
||||
in, out := &in.VersionValue, &out.VersionValue
|
||||
*out = new(string)
|
||||
**out = **in
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceAttribute.
|
||||
func (in *DeviceAttribute) DeepCopy() *DeviceAttribute {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(DeviceAttribute)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *DeviceCapacity) DeepCopyInto(out *DeviceCapacity) {
|
||||
*out = *in
|
||||
out.Value = in.Value.DeepCopy()
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceCapacity.
|
||||
func (in *DeviceCapacity) DeepCopy() *DeviceCapacity {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(DeviceCapacity)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *DeviceClaim) DeepCopyInto(out *DeviceClaim) {
|
||||
*out = *in
|
||||
if in.Requests != nil {
|
||||
in, out := &in.Requests, &out.Requests
|
||||
*out = make([]DeviceRequest, len(*in))
|
||||
for i := range *in {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
if in.Constraints != nil {
|
||||
in, out := &in.Constraints, &out.Constraints
|
||||
*out = make([]DeviceConstraint, len(*in))
|
||||
for i := range *in {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
if in.Config != nil {
|
||||
in, out := &in.Config, &out.Config
|
||||
*out = make([]DeviceClaimConfiguration, len(*in))
|
||||
for i := range *in {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceClaim.
|
||||
func (in *DeviceClaim) DeepCopy() *DeviceClaim {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(DeviceClaim)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *DeviceClaimConfiguration) DeepCopyInto(out *DeviceClaimConfiguration) {
|
||||
*out = *in
|
||||
if in.Requests != nil {
|
||||
in, out := &in.Requests, &out.Requests
|
||||
*out = make([]string, len(*in))
|
||||
copy(*out, *in)
|
||||
}
|
||||
in.DeviceConfiguration.DeepCopyInto(&out.DeviceConfiguration)
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceClaimConfiguration.
|
||||
func (in *DeviceClaimConfiguration) DeepCopy() *DeviceClaimConfiguration {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(DeviceClaimConfiguration)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *DeviceClass) DeepCopyInto(out *DeviceClass) {
|
||||
*out = *in
|
||||
out.TypeMeta = in.TypeMeta
|
||||
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
||||
in.Spec.DeepCopyInto(&out.Spec)
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceClass.
|
||||
func (in *DeviceClass) DeepCopy() *DeviceClass {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(DeviceClass)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
||||
func (in *DeviceClass) DeepCopyObject() runtime.Object {
|
||||
if c := in.DeepCopy(); c != nil {
|
||||
return c
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *DeviceClassConfiguration) DeepCopyInto(out *DeviceClassConfiguration) {
|
||||
*out = *in
|
||||
in.DeviceConfiguration.DeepCopyInto(&out.DeviceConfiguration)
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceClassConfiguration.
|
||||
func (in *DeviceClassConfiguration) DeepCopy() *DeviceClassConfiguration {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(DeviceClassConfiguration)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *DeviceClassList) DeepCopyInto(out *DeviceClassList) {
|
||||
*out = *in
|
||||
out.TypeMeta = in.TypeMeta
|
||||
in.ListMeta.DeepCopyInto(&out.ListMeta)
|
||||
if in.Items != nil {
|
||||
in, out := &in.Items, &out.Items
|
||||
*out = make([]DeviceClass, len(*in))
|
||||
for i := range *in {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceClassList.
|
||||
func (in *DeviceClassList) DeepCopy() *DeviceClassList {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(DeviceClassList)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
||||
func (in *DeviceClassList) DeepCopyObject() runtime.Object {
|
||||
if c := in.DeepCopy(); c != nil {
|
||||
return c
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *DeviceClassSpec) DeepCopyInto(out *DeviceClassSpec) {
|
||||
*out = *in
|
||||
if in.Selectors != nil {
|
||||
in, out := &in.Selectors, &out.Selectors
|
||||
*out = make([]DeviceSelector, len(*in))
|
||||
for i := range *in {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
if in.Config != nil {
|
||||
in, out := &in.Config, &out.Config
|
||||
*out = make([]DeviceClassConfiguration, len(*in))
|
||||
for i := range *in {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceClassSpec.
|
||||
func (in *DeviceClassSpec) DeepCopy() *DeviceClassSpec {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(DeviceClassSpec)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *DeviceConfiguration) DeepCopyInto(out *DeviceConfiguration) {
|
||||
*out = *in
|
||||
if in.Opaque != nil {
|
||||
in, out := &in.Opaque, &out.Opaque
|
||||
*out = new(OpaqueDeviceConfiguration)
|
||||
(*in).DeepCopyInto(*out)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceConfiguration.
|
||||
func (in *DeviceConfiguration) DeepCopy() *DeviceConfiguration {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(DeviceConfiguration)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *DeviceConstraint) DeepCopyInto(out *DeviceConstraint) {
|
||||
*out = *in
|
||||
if in.Requests != nil {
|
||||
in, out := &in.Requests, &out.Requests
|
||||
*out = make([]string, len(*in))
|
||||
copy(*out, *in)
|
||||
}
|
||||
if in.MatchAttribute != nil {
|
||||
in, out := &in.MatchAttribute, &out.MatchAttribute
|
||||
*out = new(FullyQualifiedName)
|
||||
**out = **in
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceConstraint.
|
||||
func (in *DeviceConstraint) DeepCopy() *DeviceConstraint {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(DeviceConstraint)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *DeviceRequest) DeepCopyInto(out *DeviceRequest) {
|
||||
*out = *in
|
||||
if in.Selectors != nil {
|
||||
in, out := &in.Selectors, &out.Selectors
|
||||
*out = make([]DeviceSelector, len(*in))
|
||||
for i := range *in {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
if in.AdminAccess != nil {
|
||||
in, out := &in.AdminAccess, &out.AdminAccess
|
||||
*out = new(bool)
|
||||
**out = **in
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceRequest.
|
||||
func (in *DeviceRequest) DeepCopy() *DeviceRequest {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(DeviceRequest)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *DeviceRequestAllocationResult) DeepCopyInto(out *DeviceRequestAllocationResult) {
|
||||
*out = *in
|
||||
if in.AdminAccess != nil {
|
||||
in, out := &in.AdminAccess, &out.AdminAccess
|
||||
*out = new(bool)
|
||||
**out = **in
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceRequestAllocationResult.
|
||||
func (in *DeviceRequestAllocationResult) DeepCopy() *DeviceRequestAllocationResult {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(DeviceRequestAllocationResult)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *DeviceSelector) DeepCopyInto(out *DeviceSelector) {
|
||||
*out = *in
|
||||
if in.CEL != nil {
|
||||
in, out := &in.CEL, &out.CEL
|
||||
*out = new(CELDeviceSelector)
|
||||
**out = **in
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceSelector.
|
||||
func (in *DeviceSelector) DeepCopy() *DeviceSelector {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(DeviceSelector)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *NetworkDeviceData) DeepCopyInto(out *NetworkDeviceData) {
|
||||
*out = *in
|
||||
if in.IPs != nil {
|
||||
in, out := &in.IPs, &out.IPs
|
||||
*out = make([]string, len(*in))
|
||||
copy(*out, *in)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkDeviceData.
|
||||
func (in *NetworkDeviceData) DeepCopy() *NetworkDeviceData {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(NetworkDeviceData)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *OpaqueDeviceConfiguration) DeepCopyInto(out *OpaqueDeviceConfiguration) {
|
||||
*out = *in
|
||||
in.Parameters.DeepCopyInto(&out.Parameters)
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpaqueDeviceConfiguration.
|
||||
func (in *OpaqueDeviceConfiguration) DeepCopy() *OpaqueDeviceConfiguration {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(OpaqueDeviceConfiguration)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ResourceClaim) DeepCopyInto(out *ResourceClaim) {
|
||||
*out = *in
|
||||
out.TypeMeta = in.TypeMeta
|
||||
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
||||
in.Spec.DeepCopyInto(&out.Spec)
|
||||
in.Status.DeepCopyInto(&out.Status)
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaim.
|
||||
func (in *ResourceClaim) DeepCopy() *ResourceClaim {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ResourceClaim)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
||||
func (in *ResourceClaim) DeepCopyObject() runtime.Object {
|
||||
if c := in.DeepCopy(); c != nil {
|
||||
return c
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ResourceClaimConsumerReference) DeepCopyInto(out *ResourceClaimConsumerReference) {
|
||||
*out = *in
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimConsumerReference.
|
||||
func (in *ResourceClaimConsumerReference) DeepCopy() *ResourceClaimConsumerReference {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ResourceClaimConsumerReference)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ResourceClaimList) DeepCopyInto(out *ResourceClaimList) {
|
||||
*out = *in
|
||||
out.TypeMeta = in.TypeMeta
|
||||
in.ListMeta.DeepCopyInto(&out.ListMeta)
|
||||
if in.Items != nil {
|
||||
in, out := &in.Items, &out.Items
|
||||
*out = make([]ResourceClaim, len(*in))
|
||||
for i := range *in {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimList.
|
||||
func (in *ResourceClaimList) DeepCopy() *ResourceClaimList {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ResourceClaimList)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
||||
func (in *ResourceClaimList) DeepCopyObject() runtime.Object {
|
||||
if c := in.DeepCopy(); c != nil {
|
||||
return c
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ResourceClaimSpec) DeepCopyInto(out *ResourceClaimSpec) {
|
||||
*out = *in
|
||||
in.Devices.DeepCopyInto(&out.Devices)
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimSpec.
|
||||
func (in *ResourceClaimSpec) DeepCopy() *ResourceClaimSpec {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ResourceClaimSpec)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ResourceClaimStatus) DeepCopyInto(out *ResourceClaimStatus) {
|
||||
*out = *in
|
||||
if in.Allocation != nil {
|
||||
in, out := &in.Allocation, &out.Allocation
|
||||
*out = new(AllocationResult)
|
||||
(*in).DeepCopyInto(*out)
|
||||
}
|
||||
if in.ReservedFor != nil {
|
||||
in, out := &in.ReservedFor, &out.ReservedFor
|
||||
*out = make([]ResourceClaimConsumerReference, len(*in))
|
||||
copy(*out, *in)
|
||||
}
|
||||
if in.Devices != nil {
|
||||
in, out := &in.Devices, &out.Devices
|
||||
*out = make([]AllocatedDeviceStatus, len(*in))
|
||||
for i := range *in {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimStatus.
|
||||
func (in *ResourceClaimStatus) DeepCopy() *ResourceClaimStatus {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ResourceClaimStatus)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ResourceClaimTemplate) DeepCopyInto(out *ResourceClaimTemplate) {
|
||||
*out = *in
|
||||
out.TypeMeta = in.TypeMeta
|
||||
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
||||
in.Spec.DeepCopyInto(&out.Spec)
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimTemplate.
|
||||
func (in *ResourceClaimTemplate) DeepCopy() *ResourceClaimTemplate {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ResourceClaimTemplate)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
||||
func (in *ResourceClaimTemplate) DeepCopyObject() runtime.Object {
|
||||
if c := in.DeepCopy(); c != nil {
|
||||
return c
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ResourceClaimTemplateList) DeepCopyInto(out *ResourceClaimTemplateList) {
|
||||
*out = *in
|
||||
out.TypeMeta = in.TypeMeta
|
||||
in.ListMeta.DeepCopyInto(&out.ListMeta)
|
||||
if in.Items != nil {
|
||||
in, out := &in.Items, &out.Items
|
||||
*out = make([]ResourceClaimTemplate, len(*in))
|
||||
for i := range *in {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimTemplateList.
|
||||
func (in *ResourceClaimTemplateList) DeepCopy() *ResourceClaimTemplateList {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ResourceClaimTemplateList)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
||||
func (in *ResourceClaimTemplateList) DeepCopyObject() runtime.Object {
|
||||
if c := in.DeepCopy(); c != nil {
|
||||
return c
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ResourceClaimTemplateSpec) DeepCopyInto(out *ResourceClaimTemplateSpec) {
|
||||
*out = *in
|
||||
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
||||
in.Spec.DeepCopyInto(&out.Spec)
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimTemplateSpec.
|
||||
func (in *ResourceClaimTemplateSpec) DeepCopy() *ResourceClaimTemplateSpec {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ResourceClaimTemplateSpec)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ResourcePool) DeepCopyInto(out *ResourcePool) {
|
||||
*out = *in
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourcePool.
|
||||
func (in *ResourcePool) DeepCopy() *ResourcePool {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ResourcePool)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ResourceSlice) DeepCopyInto(out *ResourceSlice) {
|
||||
*out = *in
|
||||
out.TypeMeta = in.TypeMeta
|
||||
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
||||
in.Spec.DeepCopyInto(&out.Spec)
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSlice.
|
||||
func (in *ResourceSlice) DeepCopy() *ResourceSlice {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ResourceSlice)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
||||
func (in *ResourceSlice) DeepCopyObject() runtime.Object {
|
||||
if c := in.DeepCopy(); c != nil {
|
||||
return c
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ResourceSliceList) DeepCopyInto(out *ResourceSliceList) {
|
||||
*out = *in
|
||||
out.TypeMeta = in.TypeMeta
|
||||
in.ListMeta.DeepCopyInto(&out.ListMeta)
|
||||
if in.Items != nil {
|
||||
in, out := &in.Items, &out.Items
|
||||
*out = make([]ResourceSlice, len(*in))
|
||||
for i := range *in {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSliceList.
|
||||
func (in *ResourceSliceList) DeepCopy() *ResourceSliceList {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ResourceSliceList)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
||||
func (in *ResourceSliceList) DeepCopyObject() runtime.Object {
|
||||
if c := in.DeepCopy(); c != nil {
|
||||
return c
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ResourceSliceSpec) DeepCopyInto(out *ResourceSliceSpec) {
|
||||
*out = *in
|
||||
out.Pool = in.Pool
|
||||
if in.NodeSelector != nil {
|
||||
in, out := &in.NodeSelector, &out.NodeSelector
|
||||
*out = new(corev1.NodeSelector)
|
||||
(*in).DeepCopyInto(*out)
|
||||
}
|
||||
if in.Devices != nil {
|
||||
in, out := &in.Devices, &out.Devices
|
||||
*out = make([]Device, len(*in))
|
||||
for i := range *in {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSliceSpec.
|
||||
func (in *ResourceSliceSpec) DeepCopy() *ResourceSliceSpec {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ResourceSliceSpec)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
166
e2e/vendor/k8s.io/api/resource/v1beta1/zz_generated.prerelease-lifecycle.go
generated
vendored
Normal file
166
e2e/vendor/k8s.io/api/resource/v1beta1/zz_generated.prerelease-lifecycle.go
generated
vendored
Normal file
@ -0,0 +1,166 @@
|
||||
//go:build !ignore_autogenerated
|
||||
// +build !ignore_autogenerated
|
||||
|
||||
/*
|
||||
Copyright The Kubernetes Authors.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
// Code generated by prerelease-lifecycle-gen. DO NOT EDIT.
|
||||
|
||||
package v1beta1
|
||||
|
||||
// APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison.
|
||||
// It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go.
|
||||
func (in *DeviceClass) APILifecycleIntroduced() (major, minor int) {
|
||||
return 1, 32
|
||||
}
|
||||
|
||||
// APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison.
|
||||
// It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor.
|
||||
func (in *DeviceClass) APILifecycleDeprecated() (major, minor int) {
|
||||
return 1, 35
|
||||
}
|
||||
|
||||
// APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison.
|
||||
// It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor.
|
||||
func (in *DeviceClass) APILifecycleRemoved() (major, minor int) {
|
||||
return 1, 38
|
||||
}
|
||||
|
||||
// APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison.
|
||||
// It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go.
|
||||
func (in *DeviceClassList) APILifecycleIntroduced() (major, minor int) {
|
||||
return 1, 32
|
||||
}
|
||||
|
||||
// APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison.
|
||||
// It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor.
|
||||
func (in *DeviceClassList) APILifecycleDeprecated() (major, minor int) {
|
||||
return 1, 35
|
||||
}
|
||||
|
||||
// APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison.
|
||||
// It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor.
|
||||
func (in *DeviceClassList) APILifecycleRemoved() (major, minor int) {
|
||||
return 1, 38
|
||||
}
|
||||
|
||||
// APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison.
|
||||
// It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go.
|
||||
func (in *ResourceClaim) APILifecycleIntroduced() (major, minor int) {
|
||||
return 1, 32
|
||||
}
|
||||
|
||||
// APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison.
|
||||
// It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor.
|
||||
func (in *ResourceClaim) APILifecycleDeprecated() (major, minor int) {
|
||||
return 1, 35
|
||||
}
|
||||
|
||||
// APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison.
|
||||
// It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor.
|
||||
func (in *ResourceClaim) APILifecycleRemoved() (major, minor int) {
|
||||
return 1, 38
|
||||
}
|
||||
|
||||
// APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison.
|
||||
// It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go.
|
||||
func (in *ResourceClaimList) APILifecycleIntroduced() (major, minor int) {
|
||||
return 1, 32
|
||||
}
|
||||
|
||||
// APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison.
|
||||
// It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor.
|
||||
func (in *ResourceClaimList) APILifecycleDeprecated() (major, minor int) {
|
||||
return 1, 35
|
||||
}
|
||||
|
||||
// APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison.
|
||||
// It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor.
|
||||
func (in *ResourceClaimList) APILifecycleRemoved() (major, minor int) {
|
||||
return 1, 38
|
||||
}
|
||||
|
||||
// APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison.
|
||||
// It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go.
|
||||
func (in *ResourceClaimTemplate) APILifecycleIntroduced() (major, minor int) {
|
||||
return 1, 32
|
||||
}
|
||||
|
||||
// APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison.
|
||||
// It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor.
|
||||
func (in *ResourceClaimTemplate) APILifecycleDeprecated() (major, minor int) {
|
||||
return 1, 35
|
||||
}
|
||||
|
||||
// APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison.
|
||||
// It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor.
|
||||
func (in *ResourceClaimTemplate) APILifecycleRemoved() (major, minor int) {
|
||||
return 1, 38
|
||||
}
|
||||
|
||||
// APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison.
|
||||
// It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go.
|
||||
func (in *ResourceClaimTemplateList) APILifecycleIntroduced() (major, minor int) {
|
||||
return 1, 32
|
||||
}
|
||||
|
||||
// APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison.
|
||||
// It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor.
|
||||
func (in *ResourceClaimTemplateList) APILifecycleDeprecated() (major, minor int) {
|
||||
return 1, 35
|
||||
}
|
||||
|
||||
// APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison.
|
||||
// It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor.
|
||||
func (in *ResourceClaimTemplateList) APILifecycleRemoved() (major, minor int) {
|
||||
return 1, 38
|
||||
}
|
||||
|
||||
// APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison.
|
||||
// It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go.
|
||||
func (in *ResourceSlice) APILifecycleIntroduced() (major, minor int) {
|
||||
return 1, 32
|
||||
}
|
||||
|
||||
// APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison.
|
||||
// It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor.
|
||||
func (in *ResourceSlice) APILifecycleDeprecated() (major, minor int) {
|
||||
return 1, 35
|
||||
}
|
||||
|
||||
// APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison.
|
||||
// It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor.
|
||||
func (in *ResourceSlice) APILifecycleRemoved() (major, minor int) {
|
||||
return 1, 38
|
||||
}
|
||||
|
||||
// APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison.
|
||||
// It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go.
|
||||
func (in *ResourceSliceList) APILifecycleIntroduced() (major, minor int) {
|
||||
return 1, 32
|
||||
}
|
||||
|
||||
// APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison.
|
||||
// It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor.
|
||||
func (in *ResourceSliceList) APILifecycleDeprecated() (major, minor int) {
|
||||
return 1, 35
|
||||
}
|
||||
|
||||
// APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison.
|
||||
// It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor.
|
||||
func (in *ResourceSliceList) APILifecycleRemoved() (major, minor int) {
|
||||
return 1, 38
|
||||
}
|
Reference in New Issue
Block a user