Add custom types IntOrString and Quantity

- regen with import-mappings
- add CustomTypes and CustomInstances
- update openapi-generator commit

Instead of A.Value, IntOrString becomes a sum type with constructors IntOrStringI and IntOrStringS
Instead of Text, Quantity becomes a newtype over Text. Currently no custom construction or serialization is implemeneted (i.e. the Text should be the wire format)
  See CustomTypes.hs for details on the Quantity type.
This commit is contained in:
Jon Schoning
2019-03-18 19:44:56 -05:00
parent f9468e5664
commit 7a0b709549
13 changed files with 3246 additions and 3815 deletions

View File

@@ -1,2 +1,2 @@
Requested Commit: 302b2fafffaaade6963733f5ce7fae09f75dd481
Actual Commit: 302b2fafffaaade6963733f5ce7fae09f75dd481
Requested Commit: c9737cf97d5e31936639842d389118e980ee85a9
Actual Commit: c9737cf97d5e31936639842d389118e980ee85a9

View File

@@ -1 +1 @@
6e2bf27da5e41ec9c01fd661ad415a8a919245fd292cb8340a84dc4092de6c32
f2872b27c3ca03b1c115c9539bd83e7f220dc25be05561b18a801c989410cfc6

View File

@@ -61,6 +61,7 @@ library
, vector >=0.10.9 && <0.13
other-modules:
Paths_kubernetes_client_core
Kubernetes.OpenAPI.ImportMappings
exposed-modules:
Kubernetes.OpenAPI
Kubernetes.OpenAPI.API.Admissionregistration
@@ -128,6 +129,7 @@ library
Kubernetes.OpenAPI.MimeTypes
Kubernetes.OpenAPI.Model
Kubernetes.OpenAPI.ModelLens
Kubernetes.OpenAPI.CustomTypes
default-language: Haskell2010
if flag(UseKatip)
@@ -165,4 +167,5 @@ test-suite tests
ApproxEq
Instances
PropMime
CustomInstances
default-language: Haskell2010

View File

@@ -0,0 +1,81 @@
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DeriveAnyClass #-}
module Kubernetes.OpenAPI.CustomTypes where
import Data.Aeson (FromJSON, ToJSON)
import Data.Data (Typeable)
import Data.Text (Text)
import GHC.Generics
{- | `IntOrString`
IntOrString is a type that can hold an int32 or a string. When used
in JSON or YAML marshalling and unmarshalling, it produces or consumes
the inner type. This allows you to have, for example, a JSON field
that can accept a name or number.
-}
data IntOrString
= IntOrStringS Text
| IntOrStringI Int
deriving (Show, Eq, ToJSON, FromJSON, Typeable, Generic)
{- | `Quantity` is a fixed-point representation of a number.
It provides convenient marshaling/unmarshaling in JSON and YAML, in
addition to String() and Int64() accessors.
The serialization format is:
@
\<quantity\> ::= \<signedNumber\>\<suffix\>
(Note that \<suffix\> may be empty, from the \"\" case in \<decimalSI\>.)
\<digit\> ::= 0 | 1 | ... | 9
\<digits\> ::= \<digit\> | \<digit\>\<digits\>
\<number\> ::= \<digits\> | \<digits\>.\<digits\> | \<digits\>. | .\<digits\>
\<sign\> ::= \"+\" | \"-\" \<signedNumber\> ::= \<number\> | \<sign\>\<number\>
\<suffix\> ::= \<binarySI\> | \<decimalExponent\> | \<decimalSI\>
\<binarySI\> ::= Ki | Mi | Gi | Ti | Pi | Ei
(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)
\<decimalSI\> ::= m | \"\" | k | M | G | T | P | E
(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)
\<decimalExponent\> ::= \"e\" \<signedNumber\> | \"E\" \<signedNumber\>
@
No matter which of the three exponent forms is used, no quantity may
represent a number greater than 2^63-1 in magnitude, nor may it have
more than 3 decimal places. Numbers larger or more precise will be
capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be
extended in the future if we require larger or smaller quantities.
When a Quantity is parsed from a string, it will remember the type of
suffix it had, and will use the same type again when it is serialized.
Before serializing, Quantity will be put in "canonical form". This
means that Exponent/suffix will be adjusted up or down (with a
corresponding increase or decrease in Mantissa) such that:
- No precision is lost
- No fractional digits will be emitted
- The exponent (or suffix) is as large as possible.
The sign will be omitted unless the number is negative.
Examples:
- 1.5 will be serialized as "1500m"
- 1.5Gi will be serialized as "1536Mi"
Note that the quantity will NEVER be internally represented by a
floating point number. That is the whole point of this exercise.
Non-canonical values will still parse as long as they are well formed,
but will be re-emitted in their canonical form. (So always use
canonical form, or don't diff.)
This format is intended to make it difficult to use these numbers
without writing some sort of special handling code in the hopes that
that will cause implementors to also use a fixed point implementation.
-}
newtype Quantity = Quantity { unQuantity :: Text }
deriving (Show, Eq, ToJSON, FromJSON, Typeable, Generic)

View File

@@ -0,0 +1,6 @@
{-# OPTIONS_GHC -fno-warn-dodgy-imports #-}
module Kubernetes.OpenAPI.ImportMappings (module ImportMappings) where
import Kubernetes.OpenAPI.CustomTypes as ImportMappings (IntOrString(..))
import Kubernetes.OpenAPI.CustomTypes as ImportMappings (Quantity(..))

View File

@@ -26,10 +26,11 @@ Module : Kubernetes.OpenAPI.Model
{-# LANGUAGE TypeFamilies #-}
{-# OPTIONS_GHC -fno-warn-unused-matches -fno-warn-unused-binds -fno-warn-unused-imports #-}
module Kubernetes.OpenAPI.Model where
module Kubernetes.OpenAPI.Model (module Kubernetes.OpenAPI.Model, module Kubernetes.OpenAPI.ImportMappings) where
import Kubernetes.OpenAPI.Core
import Kubernetes.OpenAPI.MimeTypes
import Kubernetes.OpenAPI.ImportMappings
import Data.Aeson ((.:),(.:!),(.:?),(.=))
@@ -735,8 +736,8 @@ mkAppsV1beta1RollbackConfig =
-- | AppsV1beta1RollingUpdateDeployment
-- Spec to control the desired behavior of rolling update.
data AppsV1beta1RollingUpdateDeployment = AppsV1beta1RollingUpdateDeployment
{ appsV1beta1RollingUpdateDeploymentMaxSurge :: !(Maybe A.Value) -- ^ "maxSurge" - The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of desired pods.
, appsV1beta1RollingUpdateDeploymentMaxUnavailable :: !(Maybe A.Value) -- ^ "maxUnavailable" - The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods.
{ appsV1beta1RollingUpdateDeploymentMaxSurge :: !(Maybe IntOrString) -- ^ "maxSurge"
, appsV1beta1RollingUpdateDeploymentMaxUnavailable :: !(Maybe IntOrString) -- ^ "maxUnavailable"
} deriving (P.Show, P.Eq, P.Typeable)
-- | FromJSON AppsV1beta1RollingUpdateDeployment
@@ -1612,8 +1613,8 @@ mkExtensionsV1beta1RollbackConfig =
-- | ExtensionsV1beta1RollingUpdateDeployment
-- Spec to control the desired behavior of rolling update.
data ExtensionsV1beta1RollingUpdateDeployment = ExtensionsV1beta1RollingUpdateDeployment
{ extensionsV1beta1RollingUpdateDeploymentMaxSurge :: !(Maybe A.Value) -- ^ "maxSurge" - The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. By default, a value of 1 is used. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of desired pods.
, extensionsV1beta1RollingUpdateDeploymentMaxUnavailable :: !(Maybe A.Value) -- ^ "maxUnavailable" - The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. By default, a fixed value of 1 is used. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods.
{ extensionsV1beta1RollingUpdateDeploymentMaxSurge :: !(Maybe IntOrString) -- ^ "maxSurge"
, extensionsV1beta1RollingUpdateDeploymentMaxUnavailable :: !(Maybe IntOrString) -- ^ "maxUnavailable"
} deriving (P.Show, P.Eq, P.Typeable)
-- | FromJSON ExtensionsV1beta1RollingUpdateDeployment
@@ -5381,7 +5382,7 @@ mkV1DownwardAPIVolumeSource =
-- Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling.
data V1EmptyDirVolumeSource = V1EmptyDirVolumeSource
{ v1EmptyDirVolumeSourceMedium :: !(Maybe Text) -- ^ "medium" - What type of storage medium should back this directory. The default is \&quot;\&quot; which means to use the node&#39;s default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
, v1EmptyDirVolumeSourceSizeLimit :: !(Maybe Text) -- ^ "sizeLimit" - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir
, v1EmptyDirVolumeSourceSizeLimit :: !(Maybe Quantity) -- ^ "sizeLimit"
} deriving (P.Show, P.Eq, P.Typeable)
-- | FromJSON V1EmptyDirVolumeSource
@@ -6335,7 +6336,7 @@ data V1HTTPGetAction = V1HTTPGetAction
{ v1HTTPGetActionHost :: !(Maybe Text) -- ^ "host" - Host name to connect to, defaults to the pod IP. You probably want to set \&quot;Host\&quot; in httpHeaders instead.
, v1HTTPGetActionHttpHeaders :: !(Maybe [V1HTTPHeader]) -- ^ "httpHeaders" - Custom headers to set in the request. HTTP allows repeated headers.
, v1HTTPGetActionPath :: !(Maybe Text) -- ^ "path" - Path to access on the HTTP server.
, v1HTTPGetActionPort :: !(A.Value) -- ^ /Required/ "port" - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.
, v1HTTPGetActionPort :: !(IntOrString) -- ^ /Required/ "port"
, v1HTTPGetActionScheme :: !(Maybe Text) -- ^ "scheme" - Scheme to use for connecting to the host. Defaults to HTTP.
} deriving (P.Show, P.Eq, P.Typeable)
@@ -6363,7 +6364,7 @@ instance A.ToJSON V1HTTPGetAction where
-- | Construct a value of type 'V1HTTPGetAction' (by applying it's required fields, if any)
mkV1HTTPGetAction
:: A.Value -- ^ 'v1HTTPGetActionPort': Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.
:: IntOrString -- ^ 'v1HTTPGetActionPort'
-> V1HTTPGetAction
mkV1HTTPGetAction v1HTTPGetActionPort =
V1HTTPGetAction
@@ -7366,11 +7367,11 @@ mkV1LimitRange =
-- | V1LimitRangeItem
-- LimitRangeItem defines a min/max usage limit for any resource that matches on kind.
data V1LimitRangeItem = V1LimitRangeItem
{ v1LimitRangeItemDefault :: !(Maybe (Map.Map String Text)) -- ^ "default" - Default resource requirement limit value by resource name if resource limit is omitted.
, v1LimitRangeItemDefaultRequest :: !(Maybe (Map.Map String Text)) -- ^ "defaultRequest" - DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.
, v1LimitRangeItemMax :: !(Maybe (Map.Map String Text)) -- ^ "max" - Max usage constraints on this kind by resource name.
, v1LimitRangeItemMaxLimitRequestRatio :: !(Maybe (Map.Map String Text)) -- ^ "maxLimitRequestRatio" - MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.
, v1LimitRangeItemMin :: !(Maybe (Map.Map String Text)) -- ^ "min" - Min usage constraints on this kind by resource name.
{ v1LimitRangeItemDefault :: !(Maybe (Map.Map String Quantity)) -- ^ "default" - Default resource requirement limit value by resource name if resource limit is omitted.
, v1LimitRangeItemDefaultRequest :: !(Maybe (Map.Map String Quantity)) -- ^ "defaultRequest" - DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.
, v1LimitRangeItemMax :: !(Maybe (Map.Map String Quantity)) -- ^ "max" - Max usage constraints on this kind by resource name.
, v1LimitRangeItemMaxLimitRequestRatio :: !(Maybe (Map.Map String Quantity)) -- ^ "maxLimitRequestRatio" - MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.
, v1LimitRangeItemMin :: !(Maybe (Map.Map String Quantity)) -- ^ "min" - Min usage constraints on this kind by resource name.
, v1LimitRangeItemType :: !(Maybe Text) -- ^ "type" - Type of resource that this limit applies to.
} deriving (P.Show, P.Eq, P.Typeable)
@@ -8065,7 +8066,7 @@ mkV1NetworkPolicyPeer =
-- | V1NetworkPolicyPort
-- NetworkPolicyPort describes a port to allow traffic on
data V1NetworkPolicyPort = V1NetworkPolicyPort
{ v1NetworkPolicyPortPort :: !(Maybe A.Value) -- ^ "port" - The port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers.
{ v1NetworkPolicyPortPort :: !(Maybe IntOrString) -- ^ "port"
, v1NetworkPolicyPortProtocol :: !(Maybe Text) -- ^ "protocol" - The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP.
} deriving (P.Show, P.Eq, P.Typeable)
@@ -8597,8 +8598,8 @@ mkV1NodeSpec =
-- NodeStatus is information about the current status of a node.
data V1NodeStatus = V1NodeStatus
{ v1NodeStatusAddresses :: !(Maybe [V1NodeAddress]) -- ^ "addresses" - List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses
, v1NodeStatusAllocatable :: !(Maybe (Map.Map String Text)) -- ^ "allocatable" - Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity.
, v1NodeStatusCapacity :: !(Maybe (Map.Map String Text)) -- ^ "capacity" - Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
, v1NodeStatusAllocatable :: !(Maybe (Map.Map String Quantity)) -- ^ "allocatable" - Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity.
, v1NodeStatusCapacity :: !(Maybe (Map.Map String Quantity)) -- ^ "capacity" - Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
, v1NodeStatusConditions :: !(Maybe [V1NodeCondition]) -- ^ "conditions" - Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition
, v1NodeStatusConfig :: !(Maybe V1NodeConfigStatus) -- ^ "config"
, v1NodeStatusDaemonEndpoints :: !(Maybe V1NodeDaemonEndpoints) -- ^ "daemonEndpoints"
@@ -9273,7 +9274,7 @@ mkV1PersistentVolumeClaimSpec =
-- PersistentVolumeClaimStatus is the current status of a persistent volume claim.
data V1PersistentVolumeClaimStatus = V1PersistentVolumeClaimStatus
{ v1PersistentVolumeClaimStatusAccessModes :: !(Maybe [Text]) -- ^ "accessModes" - AccessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
, v1PersistentVolumeClaimStatusCapacity :: !(Maybe (Map.Map String Text)) -- ^ "capacity" - Represents the actual resources of the underlying volume.
, v1PersistentVolumeClaimStatusCapacity :: !(Maybe (Map.Map String Quantity)) -- ^ "capacity" - Represents the actual resources of the underlying volume.
, v1PersistentVolumeClaimStatusConditions :: !(Maybe [V1PersistentVolumeClaimCondition]) -- ^ "conditions" - Current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to &#39;ResizeStarted&#39;.
, v1PersistentVolumeClaimStatusPhase :: !(Maybe Text) -- ^ "phase" - Phase represents the current phase of PersistentVolumeClaim.
} deriving (P.Show, P.Eq, P.Typeable)
@@ -9393,7 +9394,7 @@ data V1PersistentVolumeSpec = V1PersistentVolumeSpec
, v1PersistentVolumeSpecAwsElasticBlockStore :: !(Maybe V1AWSElasticBlockStoreVolumeSource) -- ^ "awsElasticBlockStore"
, v1PersistentVolumeSpecAzureDisk :: !(Maybe V1AzureDiskVolumeSource) -- ^ "azureDisk"
, v1PersistentVolumeSpecAzureFile :: !(Maybe V1AzureFilePersistentVolumeSource) -- ^ "azureFile"
, v1PersistentVolumeSpecCapacity :: !(Maybe (Map.Map String Text)) -- ^ "capacity" - A description of the persistent volume&#39;s resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
, v1PersistentVolumeSpecCapacity :: !(Maybe (Map.Map String Quantity)) -- ^ "capacity" - A description of the persistent volume&#39;s resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
, v1PersistentVolumeSpecCephfs :: !(Maybe V1CephFSPersistentVolumeSource) -- ^ "cephfs"
, v1PersistentVolumeSpecCinder :: !(Maybe V1CinderPersistentVolumeSource) -- ^ "cinder"
, v1PersistentVolumeSpecClaimRef :: !(Maybe V1ObjectReference) -- ^ "claimRef"
@@ -11240,7 +11241,7 @@ mkV1ResourceAttributes =
-- ResourceFieldSelector represents container resources (cpu, memory) and their output format
data V1ResourceFieldSelector = V1ResourceFieldSelector
{ v1ResourceFieldSelectorContainerName :: !(Maybe Text) -- ^ "containerName" - Container name: required for volumes, optional for env vars
, v1ResourceFieldSelectorDivisor :: !(Maybe Text) -- ^ "divisor" - Specifies the output format of the exposed resources, defaults to \&quot;1\&quot;
, v1ResourceFieldSelectorDivisor :: !(Maybe Quantity) -- ^ "divisor"
, v1ResourceFieldSelectorResource :: !(Text) -- ^ /Required/ "resource" - Required: resource to select
} deriving (P.Show, P.Eq, P.Typeable)
@@ -11364,7 +11365,7 @@ mkV1ResourceQuotaList v1ResourceQuotaListItems =
-- | V1ResourceQuotaSpec
-- ResourceQuotaSpec defines the desired hard limits to enforce for Quota.
data V1ResourceQuotaSpec = V1ResourceQuotaSpec
{ v1ResourceQuotaSpecHard :: !(Maybe (Map.Map String Text)) -- ^ "hard" - hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
{ v1ResourceQuotaSpecHard :: !(Maybe (Map.Map String Quantity)) -- ^ "hard" - hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
, v1ResourceQuotaSpecScopeSelector :: !(Maybe V1ScopeSelector) -- ^ "scopeSelector"
, v1ResourceQuotaSpecScopes :: !(Maybe [Text]) -- ^ "scopes" - A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects.
} deriving (P.Show, P.Eq, P.Typeable)
@@ -11401,8 +11402,8 @@ mkV1ResourceQuotaSpec =
-- | V1ResourceQuotaStatus
-- ResourceQuotaStatus defines the enforced hard limits and observed use.
data V1ResourceQuotaStatus = V1ResourceQuotaStatus
{ v1ResourceQuotaStatusHard :: !(Maybe (Map.Map String Text)) -- ^ "hard" - Hard is the set of enforced hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
, v1ResourceQuotaStatusUsed :: !(Maybe (Map.Map String Text)) -- ^ "used" - Used is the current observed total usage of the resource in the namespace.
{ v1ResourceQuotaStatusHard :: !(Maybe (Map.Map String Quantity)) -- ^ "hard" - Hard is the set of enforced hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
, v1ResourceQuotaStatusUsed :: !(Maybe (Map.Map String Quantity)) -- ^ "used" - Used is the current observed total usage of the resource in the namespace.
} deriving (P.Show, P.Eq, P.Typeable)
-- | FromJSON V1ResourceQuotaStatus
@@ -11434,8 +11435,8 @@ mkV1ResourceQuotaStatus =
-- | V1ResourceRequirements
-- ResourceRequirements describes the compute resource requirements.
data V1ResourceRequirements = V1ResourceRequirements
{ v1ResourceRequirementsLimits :: !(Maybe (Map.Map String Text)) -- ^ "limits" - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
, v1ResourceRequirementsRequests :: !(Maybe (Map.Map String Text)) -- ^ "requests" - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
{ v1ResourceRequirementsLimits :: !(Maybe (Map.Map String Quantity)) -- ^ "limits" - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
, v1ResourceRequirementsRequests :: !(Maybe (Map.Map String Quantity)) -- ^ "requests" - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
} deriving (P.Show, P.Eq, P.Typeable)
-- | FromJSON V1ResourceRequirements
@@ -11721,7 +11722,7 @@ mkV1RoleRef v1RoleRefApiGroup v1RoleRefKind v1RoleRefName =
-- | V1RollingUpdateDaemonSet
-- Spec to control the desired behavior of daemon set rolling update.
data V1RollingUpdateDaemonSet = V1RollingUpdateDaemonSet
{ v1RollingUpdateDaemonSetMaxUnavailable :: !(Maybe A.Value) -- ^ "maxUnavailable" - The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update.
{ v1RollingUpdateDaemonSetMaxUnavailable :: !(Maybe IntOrString) -- ^ "maxUnavailable"
} deriving (P.Show, P.Eq, P.Typeable)
-- | FromJSON V1RollingUpdateDaemonSet
@@ -11750,8 +11751,8 @@ mkV1RollingUpdateDaemonSet =
-- | V1RollingUpdateDeployment
-- Spec to control the desired behavior of rolling update.
data V1RollingUpdateDeployment = V1RollingUpdateDeployment
{ v1RollingUpdateDeploymentMaxSurge :: !(Maybe A.Value) -- ^ "maxSurge" - The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods.
, v1RollingUpdateDeploymentMaxUnavailable :: !(Maybe A.Value) -- ^ "maxUnavailable" - The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods.
{ v1RollingUpdateDeploymentMaxSurge :: !(Maybe IntOrString) -- ^ "maxSurge"
, v1RollingUpdateDeploymentMaxUnavailable :: !(Maybe IntOrString) -- ^ "maxUnavailable"
} deriving (P.Show, P.Eq, P.Typeable)
-- | FromJSON V1RollingUpdateDeployment
@@ -12907,7 +12908,7 @@ data V1ServicePort = V1ServicePort
, v1ServicePortNodePort :: !(Maybe Int) -- ^ "nodePort" - The port on each node on which this service is exposed when type&#x3D;NodePort or LoadBalancer. Usually assigned by the system. If specified, it will be allocated to the service if unused or else creation of the service will fail. Default is to auto-allocate a port if the ServiceType of this Service requires one. More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
, v1ServicePortPort :: !(Int) -- ^ /Required/ "port" - The port that will be exposed by this service.
, v1ServicePortProtocol :: !(Maybe Text) -- ^ "protocol" - The IP protocol for this port. Supports \&quot;TCP\&quot;, \&quot;UDP\&quot;, and \&quot;SCTP\&quot;. Default is TCP.
, v1ServicePortTargetPort :: !(Maybe A.Value) -- ^ "targetPort" - Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod&#39;s container ports. If this is not specified, the value of the &#39;port&#39; field is used (an identity map). This field is ignored for services with clusterIP&#x3D;None, and should be omitted or set equal to the &#39;port&#39; field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service
, v1ServicePortTargetPort :: !(Maybe IntOrString) -- ^ "targetPort"
} deriving (P.Show, P.Eq, P.Typeable)
-- | FromJSON V1ServicePort
@@ -14007,7 +14008,7 @@ mkV1Sysctl v1SysctlName v1SysctlValue =
-- TCPSocketAction describes an action based on opening a socket
data V1TCPSocketAction = V1TCPSocketAction
{ v1TCPSocketActionHost :: !(Maybe Text) -- ^ "host" - Optional: Host name to connect to, defaults to the pod IP.
, v1TCPSocketActionPort :: !(A.Value) -- ^ /Required/ "port" - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.
, v1TCPSocketActionPort :: !(IntOrString) -- ^ /Required/ "port"
} deriving (P.Show, P.Eq, P.Typeable)
-- | FromJSON V1TCPSocketAction
@@ -14028,7 +14029,7 @@ instance A.ToJSON V1TCPSocketAction where
-- | Construct a value of type 'V1TCPSocketAction' (by applying it's required fields, if any)
mkV1TCPSocketAction
:: A.Value -- ^ 'v1TCPSocketActionPort': Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.
:: IntOrString -- ^ 'v1TCPSocketActionPort'
-> V1TCPSocketAction
mkV1TCPSocketAction v1TCPSocketActionPort =
V1TCPSocketAction
@@ -18536,7 +18537,7 @@ mkV1beta1Ingress =
-- IngressBackend describes all endpoints for a given service and port.
data V1beta1IngressBackend = V1beta1IngressBackend
{ v1beta1IngressBackendServiceName :: !(Text) -- ^ /Required/ "serviceName" - Specifies the name of the referenced service.
, v1beta1IngressBackendServicePort :: !(A.Value) -- ^ /Required/ "servicePort" - Specifies the port of the referenced service.
, v1beta1IngressBackendServicePort :: !(IntOrString) -- ^ /Required/ "servicePort"
} deriving (P.Show, P.Eq, P.Typeable)
-- | FromJSON V1beta1IngressBackend
@@ -18558,7 +18559,7 @@ instance A.ToJSON V1beta1IngressBackend where
-- | Construct a value of type 'V1beta1IngressBackend' (by applying it's required fields, if any)
mkV1beta1IngressBackend
:: Text -- ^ 'v1beta1IngressBackendServiceName': Specifies the name of the referenced service.
-> A.Value -- ^ 'v1beta1IngressBackendServicePort': Specifies the port of the referenced service.
-> IntOrString -- ^ 'v1beta1IngressBackendServicePort'
-> V1beta1IngressBackend
mkV1beta1IngressBackend v1beta1IngressBackendServiceName v1beta1IngressBackendServicePort =
V1beta1IngressBackend
@@ -19389,7 +19390,7 @@ mkV1beta1NetworkPolicyPeer =
-- | V1beta1NetworkPolicyPort
-- DEPRECATED 1.9 - This group version of NetworkPolicyPort is deprecated by networking/v1/NetworkPolicyPort.
data V1beta1NetworkPolicyPort = V1beta1NetworkPolicyPort
{ v1beta1NetworkPolicyPortPort :: !(Maybe A.Value) -- ^ "port" - If specified, the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched.
{ v1beta1NetworkPolicyPortPort :: !(Maybe IntOrString) -- ^ "port"
, v1beta1NetworkPolicyPortProtocol :: !(Maybe Text) -- ^ "protocol" - Optional. The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP.
} deriving (P.Show, P.Eq, P.Typeable)
@@ -19618,8 +19619,8 @@ mkV1beta1PodDisruptionBudgetList v1beta1PodDisruptionBudgetListItems =
-- | V1beta1PodDisruptionBudgetSpec
-- PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.
data V1beta1PodDisruptionBudgetSpec = V1beta1PodDisruptionBudgetSpec
{ v1beta1PodDisruptionBudgetSpecMaxUnavailable :: !(Maybe A.Value) -- ^ "maxUnavailable" - An eviction is allowed if at most \&quot;maxUnavailable\&quot; pods selected by \&quot;selector\&quot; are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with \&quot;minAvailable\&quot;.
, v1beta1PodDisruptionBudgetSpecMinAvailable :: !(Maybe A.Value) -- ^ "minAvailable" - An eviction is allowed if at least \&quot;minAvailable\&quot; pods selected by \&quot;selector\&quot; will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \&quot;100%\&quot;.
{ v1beta1PodDisruptionBudgetSpecMaxUnavailable :: !(Maybe IntOrString) -- ^ "maxUnavailable"
, v1beta1PodDisruptionBudgetSpecMinAvailable :: !(Maybe IntOrString) -- ^ "minAvailable"
, v1beta1PodDisruptionBudgetSpecSelector :: !(Maybe V1LabelSelector) -- ^ "selector"
} deriving (P.Show, P.Eq, P.Typeable)
@@ -20378,7 +20379,7 @@ mkV1beta1RoleRef v1beta1RoleRefApiGroup v1beta1RoleRefKind v1beta1RoleRefName =
-- | V1beta1RollingUpdateDaemonSet
-- Spec to control the desired behavior of daemon set rolling update.
data V1beta1RollingUpdateDaemonSet = V1beta1RollingUpdateDaemonSet
{ v1beta1RollingUpdateDaemonSetMaxUnavailable :: !(Maybe A.Value) -- ^ "maxUnavailable" - The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update.
{ v1beta1RollingUpdateDaemonSetMaxUnavailable :: !(Maybe IntOrString) -- ^ "maxUnavailable"
} deriving (P.Show, P.Eq, P.Typeable)
-- | FromJSON V1beta1RollingUpdateDaemonSet
@@ -22661,7 +22662,7 @@ mkV1beta2ReplicaSetStatus v1beta2ReplicaSetStatusReplicas =
-- | V1beta2RollingUpdateDaemonSet
-- Spec to control the desired behavior of daemon set rolling update.
data V1beta2RollingUpdateDaemonSet = V1beta2RollingUpdateDaemonSet
{ v1beta2RollingUpdateDaemonSetMaxUnavailable :: !(Maybe A.Value) -- ^ "maxUnavailable" - The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update.
{ v1beta2RollingUpdateDaemonSetMaxUnavailable :: !(Maybe IntOrString) -- ^ "maxUnavailable"
} deriving (P.Show, P.Eq, P.Typeable)
-- | FromJSON V1beta2RollingUpdateDaemonSet
@@ -22690,8 +22691,8 @@ mkV1beta2RollingUpdateDaemonSet =
-- | V1beta2RollingUpdateDeployment
-- Spec to control the desired behavior of rolling update.
data V1beta2RollingUpdateDeployment = V1beta2RollingUpdateDeployment
{ v1beta2RollingUpdateDeploymentMaxSurge :: !(Maybe A.Value) -- ^ "maxSurge" - The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of desired pods.
, v1beta2RollingUpdateDeploymentMaxUnavailable :: !(Maybe A.Value) -- ^ "maxUnavailable" - The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods.
{ v1beta2RollingUpdateDeploymentMaxSurge :: !(Maybe IntOrString) -- ^ "maxSurge"
, v1beta2RollingUpdateDeploymentMaxUnavailable :: !(Maybe IntOrString) -- ^ "maxUnavailable"
} deriving (P.Show, P.Eq, P.Typeable)
-- | FromJSON V1beta2RollingUpdateDeployment
@@ -23402,8 +23403,8 @@ mkV2beta1CrossVersionObjectReference v2beta1CrossVersionObjectReferenceKind v2be
data V2beta1ExternalMetricSource = V2beta1ExternalMetricSource
{ v2beta1ExternalMetricSourceMetricName :: !(Text) -- ^ /Required/ "metricName" - metricName is the name of the metric in question.
, v2beta1ExternalMetricSourceMetricSelector :: !(Maybe V1LabelSelector) -- ^ "metricSelector"
, v2beta1ExternalMetricSourceTargetAverageValue :: !(Maybe Text) -- ^ "targetAverageValue" - targetAverageValue is the target per-pod value of global metric (as a quantity). Mutually exclusive with TargetValue.
, v2beta1ExternalMetricSourceTargetValue :: !(Maybe Text) -- ^ "targetValue" - targetValue is the target value of the metric (as a quantity). Mutually exclusive with TargetAverageValue.
, v2beta1ExternalMetricSourceTargetAverageValue :: !(Maybe Quantity) -- ^ "targetAverageValue"
, v2beta1ExternalMetricSourceTargetValue :: !(Maybe Quantity) -- ^ "targetValue"
} deriving (P.Show, P.Eq, P.Typeable)
-- | FromJSON V2beta1ExternalMetricSource
@@ -23442,8 +23443,8 @@ mkV2beta1ExternalMetricSource v2beta1ExternalMetricSourceMetricName =
-- | V2beta1ExternalMetricStatus
-- ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object.
data V2beta1ExternalMetricStatus = V2beta1ExternalMetricStatus
{ v2beta1ExternalMetricStatusCurrentAverageValue :: !(Maybe Text) -- ^ "currentAverageValue" - currentAverageValue is the current value of metric averaged over autoscaled pods.
, v2beta1ExternalMetricStatusCurrentValue :: !(Text) -- ^ /Required/ "currentValue" - currentValue is the current value of the metric (as a quantity)
{ v2beta1ExternalMetricStatusCurrentAverageValue :: !(Maybe Quantity) -- ^ "currentAverageValue"
, v2beta1ExternalMetricStatusCurrentValue :: !(Quantity) -- ^ /Required/ "currentValue"
, v2beta1ExternalMetricStatusMetricName :: !(Text) -- ^ /Required/ "metricName" - metricName is the name of a metric used for autoscaling in metric system.
, v2beta1ExternalMetricStatusMetricSelector :: !(Maybe V1LabelSelector) -- ^ "metricSelector"
} deriving (P.Show, P.Eq, P.Typeable)
@@ -23470,7 +23471,7 @@ instance A.ToJSON V2beta1ExternalMetricStatus where
-- | Construct a value of type 'V2beta1ExternalMetricStatus' (by applying it's required fields, if any)
mkV2beta1ExternalMetricStatus
:: Text -- ^ 'v2beta1ExternalMetricStatusCurrentValue': currentValue is the current value of the metric (as a quantity)
:: Quantity -- ^ 'v2beta1ExternalMetricStatusCurrentValue'
-> Text -- ^ 'v2beta1ExternalMetricStatusMetricName': metricName is the name of a metric used for autoscaling in metric system.
-> V2beta1ExternalMetricStatus
mkV2beta1ExternalMetricStatus v2beta1ExternalMetricStatusCurrentValue v2beta1ExternalMetricStatusMetricName =
@@ -23806,11 +23807,11 @@ mkV2beta1MetricStatus v2beta1MetricStatusType =
-- | V2beta1ObjectMetricSource
-- ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).
data V2beta1ObjectMetricSource = V2beta1ObjectMetricSource
{ v2beta1ObjectMetricSourceAverageValue :: !(Maybe Text) -- ^ "averageValue" - averageValue is the target value of the average of the metric across all relevant pods (as a quantity)
{ v2beta1ObjectMetricSourceAverageValue :: !(Maybe Quantity) -- ^ "averageValue"
, v2beta1ObjectMetricSourceMetricName :: !(Text) -- ^ /Required/ "metricName" - metricName is the name of the metric in question.
, v2beta1ObjectMetricSourceSelector :: !(Maybe V1LabelSelector) -- ^ "selector"
, v2beta1ObjectMetricSourceTarget :: !(V2beta1CrossVersionObjectReference) -- ^ /Required/ "target"
, v2beta1ObjectMetricSourceTargetValue :: !(Text) -- ^ /Required/ "targetValue" - targetValue is the target value of the metric (as a quantity).
, v2beta1ObjectMetricSourceTargetValue :: !(Quantity) -- ^ /Required/ "targetValue"
} deriving (P.Show, P.Eq, P.Typeable)
-- | FromJSON V2beta1ObjectMetricSource
@@ -23839,7 +23840,7 @@ instance A.ToJSON V2beta1ObjectMetricSource where
mkV2beta1ObjectMetricSource
:: Text -- ^ 'v2beta1ObjectMetricSourceMetricName': metricName is the name of the metric in question.
-> V2beta1CrossVersionObjectReference -- ^ 'v2beta1ObjectMetricSourceTarget'
-> Text -- ^ 'v2beta1ObjectMetricSourceTargetValue': targetValue is the target value of the metric (as a quantity).
-> Quantity -- ^ 'v2beta1ObjectMetricSourceTargetValue'
-> V2beta1ObjectMetricSource
mkV2beta1ObjectMetricSource v2beta1ObjectMetricSourceMetricName v2beta1ObjectMetricSourceTarget v2beta1ObjectMetricSourceTargetValue =
V2beta1ObjectMetricSource
@@ -23854,8 +23855,8 @@ mkV2beta1ObjectMetricSource v2beta1ObjectMetricSourceMetricName v2beta1ObjectMet
-- | V2beta1ObjectMetricStatus
-- ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).
data V2beta1ObjectMetricStatus = V2beta1ObjectMetricStatus
{ v2beta1ObjectMetricStatusAverageValue :: !(Maybe Text) -- ^ "averageValue" - averageValue is the current value of the average of the metric across all relevant pods (as a quantity)
, v2beta1ObjectMetricStatusCurrentValue :: !(Text) -- ^ /Required/ "currentValue" - currentValue is the current value of the metric (as a quantity).
{ v2beta1ObjectMetricStatusAverageValue :: !(Maybe Quantity) -- ^ "averageValue"
, v2beta1ObjectMetricStatusCurrentValue :: !(Quantity) -- ^ /Required/ "currentValue"
, v2beta1ObjectMetricStatusMetricName :: !(Text) -- ^ /Required/ "metricName" - metricName is the name of the metric in question.
, v2beta1ObjectMetricStatusSelector :: !(Maybe V1LabelSelector) -- ^ "selector"
, v2beta1ObjectMetricStatusTarget :: !(V2beta1CrossVersionObjectReference) -- ^ /Required/ "target"
@@ -23885,7 +23886,7 @@ instance A.ToJSON V2beta1ObjectMetricStatus where
-- | Construct a value of type 'V2beta1ObjectMetricStatus' (by applying it's required fields, if any)
mkV2beta1ObjectMetricStatus
:: Text -- ^ 'v2beta1ObjectMetricStatusCurrentValue': currentValue is the current value of the metric (as a quantity).
:: Quantity -- ^ 'v2beta1ObjectMetricStatusCurrentValue'
-> Text -- ^ 'v2beta1ObjectMetricStatusMetricName': metricName is the name of the metric in question.
-> V2beta1CrossVersionObjectReference -- ^ 'v2beta1ObjectMetricStatusTarget'
-> V2beta1ObjectMetricStatus
@@ -23904,7 +23905,7 @@ mkV2beta1ObjectMetricStatus v2beta1ObjectMetricStatusCurrentValue v2beta1ObjectM
data V2beta1PodsMetricSource = V2beta1PodsMetricSource
{ v2beta1PodsMetricSourceMetricName :: !(Text) -- ^ /Required/ "metricName" - metricName is the name of the metric in question
, v2beta1PodsMetricSourceSelector :: !(Maybe V1LabelSelector) -- ^ "selector"
, v2beta1PodsMetricSourceTargetAverageValue :: !(Text) -- ^ /Required/ "targetAverageValue" - targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity)
, v2beta1PodsMetricSourceTargetAverageValue :: !(Quantity) -- ^ /Required/ "targetAverageValue"
} deriving (P.Show, P.Eq, P.Typeable)
-- | FromJSON V2beta1PodsMetricSource
@@ -23928,7 +23929,7 @@ instance A.ToJSON V2beta1PodsMetricSource where
-- | Construct a value of type 'V2beta1PodsMetricSource' (by applying it's required fields, if any)
mkV2beta1PodsMetricSource
:: Text -- ^ 'v2beta1PodsMetricSourceMetricName': metricName is the name of the metric in question
-> Text -- ^ 'v2beta1PodsMetricSourceTargetAverageValue': targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity)
-> Quantity -- ^ 'v2beta1PodsMetricSourceTargetAverageValue'
-> V2beta1PodsMetricSource
mkV2beta1PodsMetricSource v2beta1PodsMetricSourceMetricName v2beta1PodsMetricSourceTargetAverageValue =
V2beta1PodsMetricSource
@@ -23941,7 +23942,7 @@ mkV2beta1PodsMetricSource v2beta1PodsMetricSourceMetricName v2beta1PodsMetricSou
-- | V2beta1PodsMetricStatus
-- PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second).
data V2beta1PodsMetricStatus = V2beta1PodsMetricStatus
{ v2beta1PodsMetricStatusCurrentAverageValue :: !(Text) -- ^ /Required/ "currentAverageValue" - currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity)
{ v2beta1PodsMetricStatusCurrentAverageValue :: !(Quantity) -- ^ /Required/ "currentAverageValue"
, v2beta1PodsMetricStatusMetricName :: !(Text) -- ^ /Required/ "metricName" - metricName is the name of the metric in question
, v2beta1PodsMetricStatusSelector :: !(Maybe V1LabelSelector) -- ^ "selector"
} deriving (P.Show, P.Eq, P.Typeable)
@@ -23966,7 +23967,7 @@ instance A.ToJSON V2beta1PodsMetricStatus where
-- | Construct a value of type 'V2beta1PodsMetricStatus' (by applying it's required fields, if any)
mkV2beta1PodsMetricStatus
:: Text -- ^ 'v2beta1PodsMetricStatusCurrentAverageValue': currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity)
:: Quantity -- ^ 'v2beta1PodsMetricStatusCurrentAverageValue'
-> Text -- ^ 'v2beta1PodsMetricStatusMetricName': metricName is the name of the metric in question
-> V2beta1PodsMetricStatus
mkV2beta1PodsMetricStatus v2beta1PodsMetricStatusCurrentAverageValue v2beta1PodsMetricStatusMetricName =
@@ -23982,7 +23983,7 @@ mkV2beta1PodsMetricStatus v2beta1PodsMetricStatusCurrentAverageValue v2beta1Pods
data V2beta1ResourceMetricSource = V2beta1ResourceMetricSource
{ v2beta1ResourceMetricSourceName :: !(Text) -- ^ /Required/ "name" - name is the name of the resource in question.
, v2beta1ResourceMetricSourceTargetAverageUtilization :: !(Maybe Int) -- ^ "targetAverageUtilization" - targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.
, v2beta1ResourceMetricSourceTargetAverageValue :: !(Maybe Text) -- ^ "targetAverageValue" - targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \&quot;pods\&quot; metric source type.
, v2beta1ResourceMetricSourceTargetAverageValue :: !(Maybe Quantity) -- ^ "targetAverageValue"
} deriving (P.Show, P.Eq, P.Typeable)
-- | FromJSON V2beta1ResourceMetricSource
@@ -24019,7 +24020,7 @@ mkV2beta1ResourceMetricSource v2beta1ResourceMetricSourceName =
-- ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.
data V2beta1ResourceMetricStatus = V2beta1ResourceMetricStatus
{ v2beta1ResourceMetricStatusCurrentAverageUtilization :: !(Maybe Int) -- ^ "currentAverageUtilization" - currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. It will only be present if &#x60;targetAverageValue&#x60; was set in the corresponding metric specification.
, v2beta1ResourceMetricStatusCurrentAverageValue :: !(Text) -- ^ /Required/ "currentAverageValue" - currentAverageValue is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \&quot;pods\&quot; metric source type. It will always be set, regardless of the corresponding metric specification.
, v2beta1ResourceMetricStatusCurrentAverageValue :: !(Quantity) -- ^ /Required/ "currentAverageValue"
, v2beta1ResourceMetricStatusName :: !(Text) -- ^ /Required/ "name" - name is the name of the resource in question.
} deriving (P.Show, P.Eq, P.Typeable)
@@ -24043,7 +24044,7 @@ instance A.ToJSON V2beta1ResourceMetricStatus where
-- | Construct a value of type 'V2beta1ResourceMetricStatus' (by applying it's required fields, if any)
mkV2beta1ResourceMetricStatus
:: Text -- ^ 'v2beta1ResourceMetricStatusCurrentAverageValue': currentAverageValue is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. It will always be set, regardless of the corresponding metric specification.
:: Quantity -- ^ 'v2beta1ResourceMetricStatusCurrentAverageValue'
-> Text -- ^ 'v2beta1ResourceMetricStatusName': name is the name of the resource in question.
-> V2beta1ResourceMetricStatus
mkV2beta1ResourceMetricStatus v2beta1ResourceMetricStatusCurrentAverageValue v2beta1ResourceMetricStatusName =
@@ -24522,9 +24523,9 @@ mkV2beta2MetricStatus v2beta2MetricStatusType =
-- MetricTarget defines the target value, average value, or average utilization of a specific metric
data V2beta2MetricTarget = V2beta2MetricTarget
{ v2beta2MetricTargetAverageUtilization :: !(Maybe Int) -- ^ "averageUtilization" - averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type
, v2beta2MetricTargetAverageValue :: !(Maybe Text) -- ^ "averageValue" - averageValue is the target value of the average of the metric across all relevant pods (as a quantity)
, v2beta2MetricTargetAverageValue :: !(Maybe Quantity) -- ^ "averageValue"
, v2beta2MetricTargetType :: !(Text) -- ^ /Required/ "type" - type represents whether the metric type is Utilization, Value, or AverageValue
, v2beta2MetricTargetValue :: !(Maybe Text) -- ^ "value" - value is the target value of the metric (as a quantity).
, v2beta2MetricTargetValue :: !(Maybe Quantity) -- ^ "value"
} deriving (P.Show, P.Eq, P.Typeable)
-- | FromJSON V2beta2MetricTarget
@@ -24564,8 +24565,8 @@ mkV2beta2MetricTarget v2beta2MetricTargetType =
-- MetricValueStatus holds the current value for a metric
data V2beta2MetricValueStatus = V2beta2MetricValueStatus
{ v2beta2MetricValueStatusAverageUtilization :: !(Maybe Int) -- ^ "averageUtilization" - currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.
, v2beta2MetricValueStatusAverageValue :: !(Maybe Text) -- ^ "averageValue" - averageValue is the current value of the average of the metric across all relevant pods (as a quantity)
, v2beta2MetricValueStatusValue :: !(Maybe Text) -- ^ "value" - value is the current value of the metric (as a quantity).
, v2beta2MetricValueStatusAverageValue :: !(Maybe Quantity) -- ^ "averageValue"
, v2beta2MetricValueStatusValue :: !(Maybe Quantity) -- ^ "value"
} deriving (P.Show, P.Eq, P.Typeable)
-- | FromJSON V2beta2MetricValueStatus

View File

@@ -361,12 +361,12 @@ appsV1beta1RollbackConfigRevisionL f AppsV1beta1RollbackConfig{..} = (\appsV1bet
-- * AppsV1beta1RollingUpdateDeployment
-- | 'appsV1beta1RollingUpdateDeploymentMaxSurge' Lens
appsV1beta1RollingUpdateDeploymentMaxSurgeL :: Lens_' AppsV1beta1RollingUpdateDeployment (Maybe A.Value)
appsV1beta1RollingUpdateDeploymentMaxSurgeL :: Lens_' AppsV1beta1RollingUpdateDeployment (Maybe IntOrString)
appsV1beta1RollingUpdateDeploymentMaxSurgeL f AppsV1beta1RollingUpdateDeployment{..} = (\appsV1beta1RollingUpdateDeploymentMaxSurge -> AppsV1beta1RollingUpdateDeployment { appsV1beta1RollingUpdateDeploymentMaxSurge, ..} ) <$> f appsV1beta1RollingUpdateDeploymentMaxSurge
{-# INLINE appsV1beta1RollingUpdateDeploymentMaxSurgeL #-}
-- | 'appsV1beta1RollingUpdateDeploymentMaxUnavailable' Lens
appsV1beta1RollingUpdateDeploymentMaxUnavailableL :: Lens_' AppsV1beta1RollingUpdateDeployment (Maybe A.Value)
appsV1beta1RollingUpdateDeploymentMaxUnavailableL :: Lens_' AppsV1beta1RollingUpdateDeployment (Maybe IntOrString)
appsV1beta1RollingUpdateDeploymentMaxUnavailableL f AppsV1beta1RollingUpdateDeployment{..} = (\appsV1beta1RollingUpdateDeploymentMaxUnavailable -> AppsV1beta1RollingUpdateDeployment { appsV1beta1RollingUpdateDeploymentMaxUnavailable, ..} ) <$> f appsV1beta1RollingUpdateDeploymentMaxUnavailable
{-# INLINE appsV1beta1RollingUpdateDeploymentMaxUnavailableL #-}
@@ -891,12 +891,12 @@ extensionsV1beta1RollbackConfigRevisionL f ExtensionsV1beta1RollbackConfig{..} =
-- * ExtensionsV1beta1RollingUpdateDeployment
-- | 'extensionsV1beta1RollingUpdateDeploymentMaxSurge' Lens
extensionsV1beta1RollingUpdateDeploymentMaxSurgeL :: Lens_' ExtensionsV1beta1RollingUpdateDeployment (Maybe A.Value)
extensionsV1beta1RollingUpdateDeploymentMaxSurgeL :: Lens_' ExtensionsV1beta1RollingUpdateDeployment (Maybe IntOrString)
extensionsV1beta1RollingUpdateDeploymentMaxSurgeL f ExtensionsV1beta1RollingUpdateDeployment{..} = (\extensionsV1beta1RollingUpdateDeploymentMaxSurge -> ExtensionsV1beta1RollingUpdateDeployment { extensionsV1beta1RollingUpdateDeploymentMaxSurge, ..} ) <$> f extensionsV1beta1RollingUpdateDeploymentMaxSurge
{-# INLINE extensionsV1beta1RollingUpdateDeploymentMaxSurgeL #-}
-- | 'extensionsV1beta1RollingUpdateDeploymentMaxUnavailable' Lens
extensionsV1beta1RollingUpdateDeploymentMaxUnavailableL :: Lens_' ExtensionsV1beta1RollingUpdateDeployment (Maybe A.Value)
extensionsV1beta1RollingUpdateDeploymentMaxUnavailableL :: Lens_' ExtensionsV1beta1RollingUpdateDeployment (Maybe IntOrString)
extensionsV1beta1RollingUpdateDeploymentMaxUnavailableL f ExtensionsV1beta1RollingUpdateDeployment{..} = (\extensionsV1beta1RollingUpdateDeploymentMaxUnavailable -> ExtensionsV1beta1RollingUpdateDeployment { extensionsV1beta1RollingUpdateDeploymentMaxUnavailable, ..} ) <$> f extensionsV1beta1RollingUpdateDeploymentMaxUnavailable
{-# INLINE extensionsV1beta1RollingUpdateDeploymentMaxUnavailableL #-}
@@ -3093,7 +3093,7 @@ v1EmptyDirVolumeSourceMediumL f V1EmptyDirVolumeSource{..} = (\v1EmptyDirVolumeS
{-# INLINE v1EmptyDirVolumeSourceMediumL #-}
-- | 'v1EmptyDirVolumeSourceSizeLimit' Lens
v1EmptyDirVolumeSourceSizeLimitL :: Lens_' V1EmptyDirVolumeSource (Maybe Text)
v1EmptyDirVolumeSourceSizeLimitL :: Lens_' V1EmptyDirVolumeSource (Maybe Quantity)
v1EmptyDirVolumeSourceSizeLimitL f V1EmptyDirVolumeSource{..} = (\v1EmptyDirVolumeSourceSizeLimit -> V1EmptyDirVolumeSource { v1EmptyDirVolumeSourceSizeLimit, ..} ) <$> f v1EmptyDirVolumeSourceSizeLimit
{-# INLINE v1EmptyDirVolumeSourceSizeLimitL #-}
@@ -3645,7 +3645,7 @@ v1HTTPGetActionPathL f V1HTTPGetAction{..} = (\v1HTTPGetActionPath -> V1HTTPGetA
{-# INLINE v1HTTPGetActionPathL #-}
-- | 'v1HTTPGetActionPort' Lens
v1HTTPGetActionPortL :: Lens_' V1HTTPGetAction (A.Value)
v1HTTPGetActionPortL :: Lens_' V1HTTPGetAction (IntOrString)
v1HTTPGetActionPortL f V1HTTPGetAction{..} = (\v1HTTPGetActionPort -> V1HTTPGetAction { v1HTTPGetActionPort, ..} ) <$> f v1HTTPGetActionPort
{-# INLINE v1HTTPGetActionPortL #-}
@@ -4236,27 +4236,27 @@ v1LimitRangeSpecL f V1LimitRange{..} = (\v1LimitRangeSpec -> V1LimitRange { v1Li
-- * V1LimitRangeItem
-- | 'v1LimitRangeItemDefault' Lens
v1LimitRangeItemDefaultL :: Lens_' V1LimitRangeItem (Maybe (Map.Map String Text))
v1LimitRangeItemDefaultL :: Lens_' V1LimitRangeItem (Maybe (Map.Map String Quantity))
v1LimitRangeItemDefaultL f V1LimitRangeItem{..} = (\v1LimitRangeItemDefault -> V1LimitRangeItem { v1LimitRangeItemDefault, ..} ) <$> f v1LimitRangeItemDefault
{-# INLINE v1LimitRangeItemDefaultL #-}
-- | 'v1LimitRangeItemDefaultRequest' Lens
v1LimitRangeItemDefaultRequestL :: Lens_' V1LimitRangeItem (Maybe (Map.Map String Text))
v1LimitRangeItemDefaultRequestL :: Lens_' V1LimitRangeItem (Maybe (Map.Map String Quantity))
v1LimitRangeItemDefaultRequestL f V1LimitRangeItem{..} = (\v1LimitRangeItemDefaultRequest -> V1LimitRangeItem { v1LimitRangeItemDefaultRequest, ..} ) <$> f v1LimitRangeItemDefaultRequest
{-# INLINE v1LimitRangeItemDefaultRequestL #-}
-- | 'v1LimitRangeItemMax' Lens
v1LimitRangeItemMaxL :: Lens_' V1LimitRangeItem (Maybe (Map.Map String Text))
v1LimitRangeItemMaxL :: Lens_' V1LimitRangeItem (Maybe (Map.Map String Quantity))
v1LimitRangeItemMaxL f V1LimitRangeItem{..} = (\v1LimitRangeItemMax -> V1LimitRangeItem { v1LimitRangeItemMax, ..} ) <$> f v1LimitRangeItemMax
{-# INLINE v1LimitRangeItemMaxL #-}
-- | 'v1LimitRangeItemMaxLimitRequestRatio' Lens
v1LimitRangeItemMaxLimitRequestRatioL :: Lens_' V1LimitRangeItem (Maybe (Map.Map String Text))
v1LimitRangeItemMaxLimitRequestRatioL :: Lens_' V1LimitRangeItem (Maybe (Map.Map String Quantity))
v1LimitRangeItemMaxLimitRequestRatioL f V1LimitRangeItem{..} = (\v1LimitRangeItemMaxLimitRequestRatio -> V1LimitRangeItem { v1LimitRangeItemMaxLimitRequestRatio, ..} ) <$> f v1LimitRangeItemMaxLimitRequestRatio
{-# INLINE v1LimitRangeItemMaxLimitRequestRatioL #-}
-- | 'v1LimitRangeItemMin' Lens
v1LimitRangeItemMinL :: Lens_' V1LimitRangeItem (Maybe (Map.Map String Text))
v1LimitRangeItemMinL :: Lens_' V1LimitRangeItem (Maybe (Map.Map String Quantity))
v1LimitRangeItemMinL f V1LimitRangeItem{..} = (\v1LimitRangeItemMin -> V1LimitRangeItem { v1LimitRangeItemMin, ..} ) <$> f v1LimitRangeItemMin
{-# INLINE v1LimitRangeItemMinL #-}
@@ -4582,7 +4582,7 @@ v1NetworkPolicyPeerPodSelectorL f V1NetworkPolicyPeer{..} = (\v1NetworkPolicyPee
-- * V1NetworkPolicyPort
-- | 'v1NetworkPolicyPortPort' Lens
v1NetworkPolicyPortPortL :: Lens_' V1NetworkPolicyPort (Maybe A.Value)
v1NetworkPolicyPortPortL :: Lens_' V1NetworkPolicyPort (Maybe IntOrString)
v1NetworkPolicyPortPortL f V1NetworkPolicyPort{..} = (\v1NetworkPolicyPortPort -> V1NetworkPolicyPort { v1NetworkPolicyPortPort, ..} ) <$> f v1NetworkPolicyPortPort
{-# INLINE v1NetworkPolicyPortPortL #-}
@@ -4858,12 +4858,12 @@ v1NodeStatusAddressesL f V1NodeStatus{..} = (\v1NodeStatusAddresses -> V1NodeSta
{-# INLINE v1NodeStatusAddressesL #-}
-- | 'v1NodeStatusAllocatable' Lens
v1NodeStatusAllocatableL :: Lens_' V1NodeStatus (Maybe (Map.Map String Text))
v1NodeStatusAllocatableL :: Lens_' V1NodeStatus (Maybe (Map.Map String Quantity))
v1NodeStatusAllocatableL f V1NodeStatus{..} = (\v1NodeStatusAllocatable -> V1NodeStatus { v1NodeStatusAllocatable, ..} ) <$> f v1NodeStatusAllocatable
{-# INLINE v1NodeStatusAllocatableL #-}
-- | 'v1NodeStatusCapacity' Lens
v1NodeStatusCapacityL :: Lens_' V1NodeStatus (Maybe (Map.Map String Text))
v1NodeStatusCapacityL :: Lens_' V1NodeStatus (Maybe (Map.Map String Quantity))
v1NodeStatusCapacityL f V1NodeStatus{..} = (\v1NodeStatusCapacity -> V1NodeStatus { v1NodeStatusCapacity, ..} ) <$> f v1NodeStatusCapacity
{-# INLINE v1NodeStatusCapacityL #-}
@@ -5325,7 +5325,7 @@ v1PersistentVolumeClaimStatusAccessModesL f V1PersistentVolumeClaimStatus{..} =
{-# INLINE v1PersistentVolumeClaimStatusAccessModesL #-}
-- | 'v1PersistentVolumeClaimStatusCapacity' Lens
v1PersistentVolumeClaimStatusCapacityL :: Lens_' V1PersistentVolumeClaimStatus (Maybe (Map.Map String Text))
v1PersistentVolumeClaimStatusCapacityL :: Lens_' V1PersistentVolumeClaimStatus (Maybe (Map.Map String Quantity))
v1PersistentVolumeClaimStatusCapacityL f V1PersistentVolumeClaimStatus{..} = (\v1PersistentVolumeClaimStatusCapacity -> V1PersistentVolumeClaimStatus { v1PersistentVolumeClaimStatusCapacity, ..} ) <$> f v1PersistentVolumeClaimStatusCapacity
{-# INLINE v1PersistentVolumeClaimStatusCapacityL #-}
@@ -5402,7 +5402,7 @@ v1PersistentVolumeSpecAzureFileL f V1PersistentVolumeSpec{..} = (\v1PersistentVo
{-# INLINE v1PersistentVolumeSpecAzureFileL #-}
-- | 'v1PersistentVolumeSpecCapacity' Lens
v1PersistentVolumeSpecCapacityL :: Lens_' V1PersistentVolumeSpec (Maybe (Map.Map String Text))
v1PersistentVolumeSpecCapacityL :: Lens_' V1PersistentVolumeSpec (Maybe (Map.Map String Quantity))
v1PersistentVolumeSpecCapacityL f V1PersistentVolumeSpec{..} = (\v1PersistentVolumeSpecCapacity -> V1PersistentVolumeSpec { v1PersistentVolumeSpecCapacity, ..} ) <$> f v1PersistentVolumeSpecCapacity
{-# INLINE v1PersistentVolumeSpecCapacityL #-}
@@ -6629,7 +6629,7 @@ v1ResourceFieldSelectorContainerNameL f V1ResourceFieldSelector{..} = (\v1Resour
{-# INLINE v1ResourceFieldSelectorContainerNameL #-}
-- | 'v1ResourceFieldSelectorDivisor' Lens
v1ResourceFieldSelectorDivisorL :: Lens_' V1ResourceFieldSelector (Maybe Text)
v1ResourceFieldSelectorDivisorL :: Lens_' V1ResourceFieldSelector (Maybe Quantity)
v1ResourceFieldSelectorDivisorL f V1ResourceFieldSelector{..} = (\v1ResourceFieldSelectorDivisor -> V1ResourceFieldSelector { v1ResourceFieldSelectorDivisor, ..} ) <$> f v1ResourceFieldSelectorDivisor
{-# INLINE v1ResourceFieldSelectorDivisorL #-}
@@ -6696,7 +6696,7 @@ v1ResourceQuotaListMetadataL f V1ResourceQuotaList{..} = (\v1ResourceQuotaListMe
-- * V1ResourceQuotaSpec
-- | 'v1ResourceQuotaSpecHard' Lens
v1ResourceQuotaSpecHardL :: Lens_' V1ResourceQuotaSpec (Maybe (Map.Map String Text))
v1ResourceQuotaSpecHardL :: Lens_' V1ResourceQuotaSpec (Maybe (Map.Map String Quantity))
v1ResourceQuotaSpecHardL f V1ResourceQuotaSpec{..} = (\v1ResourceQuotaSpecHard -> V1ResourceQuotaSpec { v1ResourceQuotaSpecHard, ..} ) <$> f v1ResourceQuotaSpecHard
{-# INLINE v1ResourceQuotaSpecHardL #-}
@@ -6715,12 +6715,12 @@ v1ResourceQuotaSpecScopesL f V1ResourceQuotaSpec{..} = (\v1ResourceQuotaSpecScop
-- * V1ResourceQuotaStatus
-- | 'v1ResourceQuotaStatusHard' Lens
v1ResourceQuotaStatusHardL :: Lens_' V1ResourceQuotaStatus (Maybe (Map.Map String Text))
v1ResourceQuotaStatusHardL :: Lens_' V1ResourceQuotaStatus (Maybe (Map.Map String Quantity))
v1ResourceQuotaStatusHardL f V1ResourceQuotaStatus{..} = (\v1ResourceQuotaStatusHard -> V1ResourceQuotaStatus { v1ResourceQuotaStatusHard, ..} ) <$> f v1ResourceQuotaStatusHard
{-# INLINE v1ResourceQuotaStatusHardL #-}
-- | 'v1ResourceQuotaStatusUsed' Lens
v1ResourceQuotaStatusUsedL :: Lens_' V1ResourceQuotaStatus (Maybe (Map.Map String Text))
v1ResourceQuotaStatusUsedL :: Lens_' V1ResourceQuotaStatus (Maybe (Map.Map String Quantity))
v1ResourceQuotaStatusUsedL f V1ResourceQuotaStatus{..} = (\v1ResourceQuotaStatusUsed -> V1ResourceQuotaStatus { v1ResourceQuotaStatusUsed, ..} ) <$> f v1ResourceQuotaStatusUsed
{-# INLINE v1ResourceQuotaStatusUsedL #-}
@@ -6729,12 +6729,12 @@ v1ResourceQuotaStatusUsedL f V1ResourceQuotaStatus{..} = (\v1ResourceQuotaStatus
-- * V1ResourceRequirements
-- | 'v1ResourceRequirementsLimits' Lens
v1ResourceRequirementsLimitsL :: Lens_' V1ResourceRequirements (Maybe (Map.Map String Text))
v1ResourceRequirementsLimitsL :: Lens_' V1ResourceRequirements (Maybe (Map.Map String Quantity))
v1ResourceRequirementsLimitsL f V1ResourceRequirements{..} = (\v1ResourceRequirementsLimits -> V1ResourceRequirements { v1ResourceRequirementsLimits, ..} ) <$> f v1ResourceRequirementsLimits
{-# INLINE v1ResourceRequirementsLimitsL #-}
-- | 'v1ResourceRequirementsRequests' Lens
v1ResourceRequirementsRequestsL :: Lens_' V1ResourceRequirements (Maybe (Map.Map String Text))
v1ResourceRequirementsRequestsL :: Lens_' V1ResourceRequirements (Maybe (Map.Map String Quantity))
v1ResourceRequirementsRequestsL f V1ResourceRequirements{..} = (\v1ResourceRequirementsRequests -> V1ResourceRequirements { v1ResourceRequirementsRequests, ..} ) <$> f v1ResourceRequirementsRequests
{-# INLINE v1ResourceRequirementsRequestsL #-}
@@ -6887,7 +6887,7 @@ v1RoleRefNameL f V1RoleRef{..} = (\v1RoleRefName -> V1RoleRef { v1RoleRefName, .
-- * V1RollingUpdateDaemonSet
-- | 'v1RollingUpdateDaemonSetMaxUnavailable' Lens
v1RollingUpdateDaemonSetMaxUnavailableL :: Lens_' V1RollingUpdateDaemonSet (Maybe A.Value)
v1RollingUpdateDaemonSetMaxUnavailableL :: Lens_' V1RollingUpdateDaemonSet (Maybe IntOrString)
v1RollingUpdateDaemonSetMaxUnavailableL f V1RollingUpdateDaemonSet{..} = (\v1RollingUpdateDaemonSetMaxUnavailable -> V1RollingUpdateDaemonSet { v1RollingUpdateDaemonSetMaxUnavailable, ..} ) <$> f v1RollingUpdateDaemonSetMaxUnavailable
{-# INLINE v1RollingUpdateDaemonSetMaxUnavailableL #-}
@@ -6896,12 +6896,12 @@ v1RollingUpdateDaemonSetMaxUnavailableL f V1RollingUpdateDaemonSet{..} = (\v1Rol
-- * V1RollingUpdateDeployment
-- | 'v1RollingUpdateDeploymentMaxSurge' Lens
v1RollingUpdateDeploymentMaxSurgeL :: Lens_' V1RollingUpdateDeployment (Maybe A.Value)
v1RollingUpdateDeploymentMaxSurgeL :: Lens_' V1RollingUpdateDeployment (Maybe IntOrString)
v1RollingUpdateDeploymentMaxSurgeL f V1RollingUpdateDeployment{..} = (\v1RollingUpdateDeploymentMaxSurge -> V1RollingUpdateDeployment { v1RollingUpdateDeploymentMaxSurge, ..} ) <$> f v1RollingUpdateDeploymentMaxSurge
{-# INLINE v1RollingUpdateDeploymentMaxSurgeL #-}
-- | 'v1RollingUpdateDeploymentMaxUnavailable' Lens
v1RollingUpdateDeploymentMaxUnavailableL :: Lens_' V1RollingUpdateDeployment (Maybe A.Value)
v1RollingUpdateDeploymentMaxUnavailableL :: Lens_' V1RollingUpdateDeployment (Maybe IntOrString)
v1RollingUpdateDeploymentMaxUnavailableL f V1RollingUpdateDeployment{..} = (\v1RollingUpdateDeploymentMaxUnavailable -> V1RollingUpdateDeployment { v1RollingUpdateDeploymentMaxUnavailable, ..} ) <$> f v1RollingUpdateDeploymentMaxUnavailable
{-# INLINE v1RollingUpdateDeploymentMaxUnavailableL #-}
@@ -7573,7 +7573,7 @@ v1ServicePortProtocolL f V1ServicePort{..} = (\v1ServicePortProtocol -> V1Servic
{-# INLINE v1ServicePortProtocolL #-}
-- | 'v1ServicePortTargetPort' Lens
v1ServicePortTargetPortL :: Lens_' V1ServicePort (Maybe A.Value)
v1ServicePortTargetPortL :: Lens_' V1ServicePort (Maybe IntOrString)
v1ServicePortTargetPortL f V1ServicePort{..} = (\v1ServicePortTargetPort -> V1ServicePort { v1ServicePortTargetPort, ..} ) <$> f v1ServicePortTargetPort
{-# INLINE v1ServicePortTargetPortL #-}
@@ -8259,7 +8259,7 @@ v1TCPSocketActionHostL f V1TCPSocketAction{..} = (\v1TCPSocketActionHost -> V1TC
{-# INLINE v1TCPSocketActionHostL #-}
-- | 'v1TCPSocketActionPort' Lens
v1TCPSocketActionPortL :: Lens_' V1TCPSocketAction (A.Value)
v1TCPSocketActionPortL :: Lens_' V1TCPSocketAction (IntOrString)
v1TCPSocketActionPortL f V1TCPSocketAction{..} = (\v1TCPSocketActionPort -> V1TCPSocketAction { v1TCPSocketActionPort, ..} ) <$> f v1TCPSocketActionPort
{-# INLINE v1TCPSocketActionPortL #-}
@@ -10872,7 +10872,7 @@ v1beta1IngressBackendServiceNameL f V1beta1IngressBackend{..} = (\v1beta1Ingress
{-# INLINE v1beta1IngressBackendServiceNameL #-}
-- | 'v1beta1IngressBackendServicePort' Lens
v1beta1IngressBackendServicePortL :: Lens_' V1beta1IngressBackend (A.Value)
v1beta1IngressBackendServicePortL :: Lens_' V1beta1IngressBackend (IntOrString)
v1beta1IngressBackendServicePortL f V1beta1IngressBackend{..} = (\v1beta1IngressBackendServicePort -> V1beta1IngressBackend { v1beta1IngressBackendServicePort, ..} ) <$> f v1beta1IngressBackendServicePort
{-# INLINE v1beta1IngressBackendServicePortL #-}
@@ -11408,7 +11408,7 @@ v1beta1NetworkPolicyPeerPodSelectorL f V1beta1NetworkPolicyPeer{..} = (\v1beta1N
-- * V1beta1NetworkPolicyPort
-- | 'v1beta1NetworkPolicyPortPort' Lens
v1beta1NetworkPolicyPortPortL :: Lens_' V1beta1NetworkPolicyPort (Maybe A.Value)
v1beta1NetworkPolicyPortPortL :: Lens_' V1beta1NetworkPolicyPort (Maybe IntOrString)
v1beta1NetworkPolicyPortPortL f V1beta1NetworkPolicyPort{..} = (\v1beta1NetworkPolicyPortPort -> V1beta1NetworkPolicyPort { v1beta1NetworkPolicyPortPort, ..} ) <$> f v1beta1NetworkPolicyPortPort
{-# INLINE v1beta1NetworkPolicyPortPortL #-}
@@ -11527,12 +11527,12 @@ v1beta1PodDisruptionBudgetListMetadataL f V1beta1PodDisruptionBudgetList{..} = (
-- * V1beta1PodDisruptionBudgetSpec
-- | 'v1beta1PodDisruptionBudgetSpecMaxUnavailable' Lens
v1beta1PodDisruptionBudgetSpecMaxUnavailableL :: Lens_' V1beta1PodDisruptionBudgetSpec (Maybe A.Value)
v1beta1PodDisruptionBudgetSpecMaxUnavailableL :: Lens_' V1beta1PodDisruptionBudgetSpec (Maybe IntOrString)
v1beta1PodDisruptionBudgetSpecMaxUnavailableL f V1beta1PodDisruptionBudgetSpec{..} = (\v1beta1PodDisruptionBudgetSpecMaxUnavailable -> V1beta1PodDisruptionBudgetSpec { v1beta1PodDisruptionBudgetSpecMaxUnavailable, ..} ) <$> f v1beta1PodDisruptionBudgetSpecMaxUnavailable
{-# INLINE v1beta1PodDisruptionBudgetSpecMaxUnavailableL #-}
-- | 'v1beta1PodDisruptionBudgetSpecMinAvailable' Lens
v1beta1PodDisruptionBudgetSpecMinAvailableL :: Lens_' V1beta1PodDisruptionBudgetSpec (Maybe A.Value)
v1beta1PodDisruptionBudgetSpecMinAvailableL :: Lens_' V1beta1PodDisruptionBudgetSpec (Maybe IntOrString)
v1beta1PodDisruptionBudgetSpecMinAvailableL f V1beta1PodDisruptionBudgetSpec{..} = (\v1beta1PodDisruptionBudgetSpecMinAvailable -> V1beta1PodDisruptionBudgetSpec { v1beta1PodDisruptionBudgetSpecMinAvailable, ..} ) <$> f v1beta1PodDisruptionBudgetSpecMinAvailable
{-# INLINE v1beta1PodDisruptionBudgetSpecMinAvailableL #-}
@@ -11990,7 +11990,7 @@ v1beta1RoleRefNameL f V1beta1RoleRef{..} = (\v1beta1RoleRefName -> V1beta1RoleRe
-- * V1beta1RollingUpdateDaemonSet
-- | 'v1beta1RollingUpdateDaemonSetMaxUnavailable' Lens
v1beta1RollingUpdateDaemonSetMaxUnavailableL :: Lens_' V1beta1RollingUpdateDaemonSet (Maybe A.Value)
v1beta1RollingUpdateDaemonSetMaxUnavailableL :: Lens_' V1beta1RollingUpdateDaemonSet (Maybe IntOrString)
v1beta1RollingUpdateDaemonSetMaxUnavailableL f V1beta1RollingUpdateDaemonSet{..} = (\v1beta1RollingUpdateDaemonSetMaxUnavailable -> V1beta1RollingUpdateDaemonSet { v1beta1RollingUpdateDaemonSetMaxUnavailable, ..} ) <$> f v1beta1RollingUpdateDaemonSetMaxUnavailable
{-# INLINE v1beta1RollingUpdateDaemonSetMaxUnavailableL #-}
@@ -13368,7 +13368,7 @@ v1beta2ReplicaSetStatusReplicasL f V1beta2ReplicaSetStatus{..} = (\v1beta2Replic
-- * V1beta2RollingUpdateDaemonSet
-- | 'v1beta2RollingUpdateDaemonSetMaxUnavailable' Lens
v1beta2RollingUpdateDaemonSetMaxUnavailableL :: Lens_' V1beta2RollingUpdateDaemonSet (Maybe A.Value)
v1beta2RollingUpdateDaemonSetMaxUnavailableL :: Lens_' V1beta2RollingUpdateDaemonSet (Maybe IntOrString)
v1beta2RollingUpdateDaemonSetMaxUnavailableL f V1beta2RollingUpdateDaemonSet{..} = (\v1beta2RollingUpdateDaemonSetMaxUnavailable -> V1beta2RollingUpdateDaemonSet { v1beta2RollingUpdateDaemonSetMaxUnavailable, ..} ) <$> f v1beta2RollingUpdateDaemonSetMaxUnavailable
{-# INLINE v1beta2RollingUpdateDaemonSetMaxUnavailableL #-}
@@ -13377,12 +13377,12 @@ v1beta2RollingUpdateDaemonSetMaxUnavailableL f V1beta2RollingUpdateDaemonSet{..}
-- * V1beta2RollingUpdateDeployment
-- | 'v1beta2RollingUpdateDeploymentMaxSurge' Lens
v1beta2RollingUpdateDeploymentMaxSurgeL :: Lens_' V1beta2RollingUpdateDeployment (Maybe A.Value)
v1beta2RollingUpdateDeploymentMaxSurgeL :: Lens_' V1beta2RollingUpdateDeployment (Maybe IntOrString)
v1beta2RollingUpdateDeploymentMaxSurgeL f V1beta2RollingUpdateDeployment{..} = (\v1beta2RollingUpdateDeploymentMaxSurge -> V1beta2RollingUpdateDeployment { v1beta2RollingUpdateDeploymentMaxSurge, ..} ) <$> f v1beta2RollingUpdateDeploymentMaxSurge
{-# INLINE v1beta2RollingUpdateDeploymentMaxSurgeL #-}
-- | 'v1beta2RollingUpdateDeploymentMaxUnavailable' Lens
v1beta2RollingUpdateDeploymentMaxUnavailableL :: Lens_' V1beta2RollingUpdateDeployment (Maybe A.Value)
v1beta2RollingUpdateDeploymentMaxUnavailableL :: Lens_' V1beta2RollingUpdateDeployment (Maybe IntOrString)
v1beta2RollingUpdateDeploymentMaxUnavailableL f V1beta2RollingUpdateDeployment{..} = (\v1beta2RollingUpdateDeploymentMaxUnavailable -> V1beta2RollingUpdateDeployment { v1beta2RollingUpdateDeploymentMaxUnavailable, ..} ) <$> f v1beta2RollingUpdateDeploymentMaxUnavailable
{-# INLINE v1beta2RollingUpdateDeploymentMaxUnavailableL #-}
@@ -13795,12 +13795,12 @@ v2beta1ExternalMetricSourceMetricSelectorL f V2beta1ExternalMetricSource{..} = (
{-# INLINE v2beta1ExternalMetricSourceMetricSelectorL #-}
-- | 'v2beta1ExternalMetricSourceTargetAverageValue' Lens
v2beta1ExternalMetricSourceTargetAverageValueL :: Lens_' V2beta1ExternalMetricSource (Maybe Text)
v2beta1ExternalMetricSourceTargetAverageValueL :: Lens_' V2beta1ExternalMetricSource (Maybe Quantity)
v2beta1ExternalMetricSourceTargetAverageValueL f V2beta1ExternalMetricSource{..} = (\v2beta1ExternalMetricSourceTargetAverageValue -> V2beta1ExternalMetricSource { v2beta1ExternalMetricSourceTargetAverageValue, ..} ) <$> f v2beta1ExternalMetricSourceTargetAverageValue
{-# INLINE v2beta1ExternalMetricSourceTargetAverageValueL #-}
-- | 'v2beta1ExternalMetricSourceTargetValue' Lens
v2beta1ExternalMetricSourceTargetValueL :: Lens_' V2beta1ExternalMetricSource (Maybe Text)
v2beta1ExternalMetricSourceTargetValueL :: Lens_' V2beta1ExternalMetricSource (Maybe Quantity)
v2beta1ExternalMetricSourceTargetValueL f V2beta1ExternalMetricSource{..} = (\v2beta1ExternalMetricSourceTargetValue -> V2beta1ExternalMetricSource { v2beta1ExternalMetricSourceTargetValue, ..} ) <$> f v2beta1ExternalMetricSourceTargetValue
{-# INLINE v2beta1ExternalMetricSourceTargetValueL #-}
@@ -13809,12 +13809,12 @@ v2beta1ExternalMetricSourceTargetValueL f V2beta1ExternalMetricSource{..} = (\v2
-- * V2beta1ExternalMetricStatus
-- | 'v2beta1ExternalMetricStatusCurrentAverageValue' Lens
v2beta1ExternalMetricStatusCurrentAverageValueL :: Lens_' V2beta1ExternalMetricStatus (Maybe Text)
v2beta1ExternalMetricStatusCurrentAverageValueL :: Lens_' V2beta1ExternalMetricStatus (Maybe Quantity)
v2beta1ExternalMetricStatusCurrentAverageValueL f V2beta1ExternalMetricStatus{..} = (\v2beta1ExternalMetricStatusCurrentAverageValue -> V2beta1ExternalMetricStatus { v2beta1ExternalMetricStatusCurrentAverageValue, ..} ) <$> f v2beta1ExternalMetricStatusCurrentAverageValue
{-# INLINE v2beta1ExternalMetricStatusCurrentAverageValueL #-}
-- | 'v2beta1ExternalMetricStatusCurrentValue' Lens
v2beta1ExternalMetricStatusCurrentValueL :: Lens_' V2beta1ExternalMetricStatus (Text)
v2beta1ExternalMetricStatusCurrentValueL :: Lens_' V2beta1ExternalMetricStatus (Quantity)
v2beta1ExternalMetricStatusCurrentValueL f V2beta1ExternalMetricStatus{..} = (\v2beta1ExternalMetricStatusCurrentValue -> V2beta1ExternalMetricStatus { v2beta1ExternalMetricStatusCurrentValue, ..} ) <$> f v2beta1ExternalMetricStatusCurrentValue
{-# INLINE v2beta1ExternalMetricStatusCurrentValueL #-}
@@ -14031,7 +14031,7 @@ v2beta1MetricStatusTypeL f V2beta1MetricStatus{..} = (\v2beta1MetricStatusType -
-- * V2beta1ObjectMetricSource
-- | 'v2beta1ObjectMetricSourceAverageValue' Lens
v2beta1ObjectMetricSourceAverageValueL :: Lens_' V2beta1ObjectMetricSource (Maybe Text)
v2beta1ObjectMetricSourceAverageValueL :: Lens_' V2beta1ObjectMetricSource (Maybe Quantity)
v2beta1ObjectMetricSourceAverageValueL f V2beta1ObjectMetricSource{..} = (\v2beta1ObjectMetricSourceAverageValue -> V2beta1ObjectMetricSource { v2beta1ObjectMetricSourceAverageValue, ..} ) <$> f v2beta1ObjectMetricSourceAverageValue
{-# INLINE v2beta1ObjectMetricSourceAverageValueL #-}
@@ -14051,7 +14051,7 @@ v2beta1ObjectMetricSourceTargetL f V2beta1ObjectMetricSource{..} = (\v2beta1Obje
{-# INLINE v2beta1ObjectMetricSourceTargetL #-}
-- | 'v2beta1ObjectMetricSourceTargetValue' Lens
v2beta1ObjectMetricSourceTargetValueL :: Lens_' V2beta1ObjectMetricSource (Text)
v2beta1ObjectMetricSourceTargetValueL :: Lens_' V2beta1ObjectMetricSource (Quantity)
v2beta1ObjectMetricSourceTargetValueL f V2beta1ObjectMetricSource{..} = (\v2beta1ObjectMetricSourceTargetValue -> V2beta1ObjectMetricSource { v2beta1ObjectMetricSourceTargetValue, ..} ) <$> f v2beta1ObjectMetricSourceTargetValue
{-# INLINE v2beta1ObjectMetricSourceTargetValueL #-}
@@ -14060,12 +14060,12 @@ v2beta1ObjectMetricSourceTargetValueL f V2beta1ObjectMetricSource{..} = (\v2beta
-- * V2beta1ObjectMetricStatus
-- | 'v2beta1ObjectMetricStatusAverageValue' Lens
v2beta1ObjectMetricStatusAverageValueL :: Lens_' V2beta1ObjectMetricStatus (Maybe Text)
v2beta1ObjectMetricStatusAverageValueL :: Lens_' V2beta1ObjectMetricStatus (Maybe Quantity)
v2beta1ObjectMetricStatusAverageValueL f V2beta1ObjectMetricStatus{..} = (\v2beta1ObjectMetricStatusAverageValue -> V2beta1ObjectMetricStatus { v2beta1ObjectMetricStatusAverageValue, ..} ) <$> f v2beta1ObjectMetricStatusAverageValue
{-# INLINE v2beta1ObjectMetricStatusAverageValueL #-}
-- | 'v2beta1ObjectMetricStatusCurrentValue' Lens
v2beta1ObjectMetricStatusCurrentValueL :: Lens_' V2beta1ObjectMetricStatus (Text)
v2beta1ObjectMetricStatusCurrentValueL :: Lens_' V2beta1ObjectMetricStatus (Quantity)
v2beta1ObjectMetricStatusCurrentValueL f V2beta1ObjectMetricStatus{..} = (\v2beta1ObjectMetricStatusCurrentValue -> V2beta1ObjectMetricStatus { v2beta1ObjectMetricStatusCurrentValue, ..} ) <$> f v2beta1ObjectMetricStatusCurrentValue
{-# INLINE v2beta1ObjectMetricStatusCurrentValueL #-}
@@ -14099,7 +14099,7 @@ v2beta1PodsMetricSourceSelectorL f V2beta1PodsMetricSource{..} = (\v2beta1PodsMe
{-# INLINE v2beta1PodsMetricSourceSelectorL #-}
-- | 'v2beta1PodsMetricSourceTargetAverageValue' Lens
v2beta1PodsMetricSourceTargetAverageValueL :: Lens_' V2beta1PodsMetricSource (Text)
v2beta1PodsMetricSourceTargetAverageValueL :: Lens_' V2beta1PodsMetricSource (Quantity)
v2beta1PodsMetricSourceTargetAverageValueL f V2beta1PodsMetricSource{..} = (\v2beta1PodsMetricSourceTargetAverageValue -> V2beta1PodsMetricSource { v2beta1PodsMetricSourceTargetAverageValue, ..} ) <$> f v2beta1PodsMetricSourceTargetAverageValue
{-# INLINE v2beta1PodsMetricSourceTargetAverageValueL #-}
@@ -14108,7 +14108,7 @@ v2beta1PodsMetricSourceTargetAverageValueL f V2beta1PodsMetricSource{..} = (\v2b
-- * V2beta1PodsMetricStatus
-- | 'v2beta1PodsMetricStatusCurrentAverageValue' Lens
v2beta1PodsMetricStatusCurrentAverageValueL :: Lens_' V2beta1PodsMetricStatus (Text)
v2beta1PodsMetricStatusCurrentAverageValueL :: Lens_' V2beta1PodsMetricStatus (Quantity)
v2beta1PodsMetricStatusCurrentAverageValueL f V2beta1PodsMetricStatus{..} = (\v2beta1PodsMetricStatusCurrentAverageValue -> V2beta1PodsMetricStatus { v2beta1PodsMetricStatusCurrentAverageValue, ..} ) <$> f v2beta1PodsMetricStatusCurrentAverageValue
{-# INLINE v2beta1PodsMetricStatusCurrentAverageValueL #-}
@@ -14137,7 +14137,7 @@ v2beta1ResourceMetricSourceTargetAverageUtilizationL f V2beta1ResourceMetricSour
{-# INLINE v2beta1ResourceMetricSourceTargetAverageUtilizationL #-}
-- | 'v2beta1ResourceMetricSourceTargetAverageValue' Lens
v2beta1ResourceMetricSourceTargetAverageValueL :: Lens_' V2beta1ResourceMetricSource (Maybe Text)
v2beta1ResourceMetricSourceTargetAverageValueL :: Lens_' V2beta1ResourceMetricSource (Maybe Quantity)
v2beta1ResourceMetricSourceTargetAverageValueL f V2beta1ResourceMetricSource{..} = (\v2beta1ResourceMetricSourceTargetAverageValue -> V2beta1ResourceMetricSource { v2beta1ResourceMetricSourceTargetAverageValue, ..} ) <$> f v2beta1ResourceMetricSourceTargetAverageValue
{-# INLINE v2beta1ResourceMetricSourceTargetAverageValueL #-}
@@ -14151,7 +14151,7 @@ v2beta1ResourceMetricStatusCurrentAverageUtilizationL f V2beta1ResourceMetricSta
{-# INLINE v2beta1ResourceMetricStatusCurrentAverageUtilizationL #-}
-- | 'v2beta1ResourceMetricStatusCurrentAverageValue' Lens
v2beta1ResourceMetricStatusCurrentAverageValueL :: Lens_' V2beta1ResourceMetricStatus (Text)
v2beta1ResourceMetricStatusCurrentAverageValueL :: Lens_' V2beta1ResourceMetricStatus (Quantity)
v2beta1ResourceMetricStatusCurrentAverageValueL f V2beta1ResourceMetricStatus{..} = (\v2beta1ResourceMetricStatusCurrentAverageValue -> V2beta1ResourceMetricStatus { v2beta1ResourceMetricStatusCurrentAverageValue, ..} ) <$> f v2beta1ResourceMetricStatusCurrentAverageValue
{-# INLINE v2beta1ResourceMetricStatusCurrentAverageValueL #-}
@@ -14429,7 +14429,7 @@ v2beta2MetricTargetAverageUtilizationL f V2beta2MetricTarget{..} = (\v2beta2Metr
{-# INLINE v2beta2MetricTargetAverageUtilizationL #-}
-- | 'v2beta2MetricTargetAverageValue' Lens
v2beta2MetricTargetAverageValueL :: Lens_' V2beta2MetricTarget (Maybe Text)
v2beta2MetricTargetAverageValueL :: Lens_' V2beta2MetricTarget (Maybe Quantity)
v2beta2MetricTargetAverageValueL f V2beta2MetricTarget{..} = (\v2beta2MetricTargetAverageValue -> V2beta2MetricTarget { v2beta2MetricTargetAverageValue, ..} ) <$> f v2beta2MetricTargetAverageValue
{-# INLINE v2beta2MetricTargetAverageValueL #-}
@@ -14439,7 +14439,7 @@ v2beta2MetricTargetTypeL f V2beta2MetricTarget{..} = (\v2beta2MetricTargetType -
{-# INLINE v2beta2MetricTargetTypeL #-}
-- | 'v2beta2MetricTargetValue' Lens
v2beta2MetricTargetValueL :: Lens_' V2beta2MetricTarget (Maybe Text)
v2beta2MetricTargetValueL :: Lens_' V2beta2MetricTarget (Maybe Quantity)
v2beta2MetricTargetValueL f V2beta2MetricTarget{..} = (\v2beta2MetricTargetValue -> V2beta2MetricTarget { v2beta2MetricTargetValue, ..} ) <$> f v2beta2MetricTargetValue
{-# INLINE v2beta2MetricTargetValueL #-}
@@ -14453,12 +14453,12 @@ v2beta2MetricValueStatusAverageUtilizationL f V2beta2MetricValueStatus{..} = (\v
{-# INLINE v2beta2MetricValueStatusAverageUtilizationL #-}
-- | 'v2beta2MetricValueStatusAverageValue' Lens
v2beta2MetricValueStatusAverageValueL :: Lens_' V2beta2MetricValueStatus (Maybe Text)
v2beta2MetricValueStatusAverageValueL :: Lens_' V2beta2MetricValueStatus (Maybe Quantity)
v2beta2MetricValueStatusAverageValueL f V2beta2MetricValueStatus{..} = (\v2beta2MetricValueStatusAverageValue -> V2beta2MetricValueStatus { v2beta2MetricValueStatusAverageValue, ..} ) <$> f v2beta2MetricValueStatusAverageValue
{-# INLINE v2beta2MetricValueStatusAverageValueL #-}
-- | 'v2beta2MetricValueStatusValue' Lens
v2beta2MetricValueStatusValueL :: Lens_' V2beta2MetricValueStatus (Maybe Text)
v2beta2MetricValueStatusValueL :: Lens_' V2beta2MetricValueStatus (Maybe Quantity)
v2beta2MetricValueStatusValueL f V2beta2MetricValueStatus{..} = (\v2beta2MetricValueStatusValue -> V2beta2MetricValueStatus { v2beta2MetricValueStatusValue, ..} ) <$> f v2beta2MetricValueStatusValue
{-# INLINE v2beta2MetricValueStatusValueL #-}

File diff suppressed because it is too large Load Diff

View File

@@ -72701,16 +72701,14 @@
"description": "Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity.",
"type": "object",
"additionalProperties": {
"description": "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors.\n\nThe serialization format is:\n\n<quantity> ::= <signedNumber><suffix>\n (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.)\n<digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n<decimalSI> ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n<decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber>\n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.",
"type": "string"
"$ref": "#/definitions/resource.Quantity"
}
},
"capacity": {
"description": "Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity",
"type": "object",
"additionalProperties": {
"description": "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors.\n\nThe serialization format is:\n\n<quantity> ::= <signedNumber><suffix>\n (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.)\n<digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n<decimalSI> ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n<decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber>\n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.",
"type": "string"
"$ref": "#/definitions/resource.Quantity"
}
},
"conditions": {
@@ -73087,8 +73085,7 @@
"properties": {
"maxUnavailable": {
"description": "The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update.",
"type": "object",
"format": "int-or-string"
"$ref": "#/definitions/intstr.IntOrString"
}
}
},
@@ -73709,8 +73706,7 @@
},
"targetPort": {
"description": "Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service",
"type": "object",
"format": "int-or-string"
"$ref": "#/definitions/intstr.IntOrString"
}
}
},
@@ -74784,8 +74780,7 @@
},
"servicePort": {
"description": "Specifies the port of the referenced service.",
"type": "object",
"format": "int-or-string"
"$ref": "#/definitions/intstr.IntOrString"
}
}
},
@@ -74834,8 +74829,7 @@
"description": "hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/",
"type": "object",
"additionalProperties": {
"description": "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors.\n\nThe serialization format is:\n\n<quantity> ::= <signedNumber><suffix>\n (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.)\n<digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n<decimalSI> ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n<decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber>\n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.",
"type": "string"
"$ref": "#/definitions/resource.Quantity"
}
},
"scopeSelector": {
@@ -75454,13 +75448,11 @@
"properties": {
"maxSurge": {
"description": "The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of desired pods.",
"type": "object",
"format": "int-or-string"
"$ref": "#/definitions/intstr.IntOrString"
},
"maxUnavailable": {
"description": "The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods.",
"type": "object",
"format": "int-or-string"
"$ref": "#/definitions/intstr.IntOrString"
}
}
},
@@ -75584,8 +75576,7 @@
"description": "A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity",
"type": "object",
"additionalProperties": {
"description": "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors.\n\nThe serialization format is:\n\n<quantity> ::= <signedNumber><suffix>\n (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.)\n<digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n<decimalSI> ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n<decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber>\n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.",
"type": "string"
"$ref": "#/definitions/resource.Quantity"
}
},
"cephfs": {
@@ -75900,11 +75891,11 @@
},
"targetAverageValue": {
"description": "targetAverageValue is the target per-pod value of global metric (as a quantity). Mutually exclusive with TargetValue.",
"type": "string"
"$ref": "#/definitions/resource.Quantity"
},
"targetValue": {
"description": "targetValue is the target value of the metric (as a quantity). Mutually exclusive with TargetAverageValue.",
"type": "string"
"$ref": "#/definitions/resource.Quantity"
}
}
},
@@ -76288,8 +76279,7 @@
"description": "Represents the actual resources of the underlying volume.",
"type": "object",
"additionalProperties": {
"description": "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors.\n\nThe serialization format is:\n\n<quantity> ::= <signedNumber><suffix>\n (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.)\n<digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n<decimalSI> ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n<decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber>\n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.",
"type": "string"
"$ref": "#/definitions/resource.Quantity"
}
},
"conditions": {
@@ -78227,40 +78217,35 @@
"description": "Default resource requirement limit value by resource name if resource limit is omitted.",
"type": "object",
"additionalProperties": {
"description": "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors.\n\nThe serialization format is:\n\n<quantity> ::= <signedNumber><suffix>\n (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.)\n<digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n<decimalSI> ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n<decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber>\n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.",
"type": "string"
"$ref": "#/definitions/resource.Quantity"
}
},
"defaultRequest": {
"description": "DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.",
"type": "object",
"additionalProperties": {
"description": "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors.\n\nThe serialization format is:\n\n<quantity> ::= <signedNumber><suffix>\n (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.)\n<digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n<decimalSI> ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n<decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber>\n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.",
"type": "string"
"$ref": "#/definitions/resource.Quantity"
}
},
"max": {
"description": "Max usage constraints on this kind by resource name.",
"type": "object",
"additionalProperties": {
"description": "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors.\n\nThe serialization format is:\n\n<quantity> ::= <signedNumber><suffix>\n (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.)\n<digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n<decimalSI> ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n<decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber>\n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.",
"type": "string"
"$ref": "#/definitions/resource.Quantity"
}
},
"maxLimitRequestRatio": {
"description": "MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.",
"type": "object",
"additionalProperties": {
"description": "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors.\n\nThe serialization format is:\n\n<quantity> ::= <signedNumber><suffix>\n (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.)\n<digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n<decimalSI> ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n<decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber>\n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.",
"type": "string"
"$ref": "#/definitions/resource.Quantity"
}
},
"min": {
"description": "Min usage constraints on this kind by resource name.",
"type": "object",
"additionalProperties": {
"description": "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors.\n\nThe serialization format is:\n\n<quantity> ::= <signedNumber><suffix>\n (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.)\n<digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n<decimalSI> ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n<decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber>\n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.",
"type": "string"
"$ref": "#/definitions/resource.Quantity"
}
},
"type": {
@@ -78400,16 +78385,14 @@
"description": "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/",
"type": "object",
"additionalProperties": {
"description": "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors.\n\nThe serialization format is:\n\n<quantity> ::= <signedNumber><suffix>\n (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.)\n<digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n<decimalSI> ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n<decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber>\n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.",
"type": "string"
"$ref": "#/definitions/resource.Quantity"
}
},
"requests": {
"description": "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/",
"type": "object",
"additionalProperties": {
"description": "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors.\n\nThe serialization format is:\n\n<quantity> ::= <signedNumber><suffix>\n (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.)\n<digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n<decimalSI> ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n<decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber>\n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.",
"type": "string"
"$ref": "#/definitions/resource.Quantity"
}
}
}
@@ -78675,7 +78658,7 @@
},
"targetAverageValue": {
"description": "targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type.",
"type": "string"
"$ref": "#/definitions/resource.Quantity"
}
}
},
@@ -79771,7 +79754,7 @@
},
"averageValue": {
"description": "averageValue is the target value of the average of the metric across all relevant pods (as a quantity)",
"type": "string"
"$ref": "#/definitions/resource.Quantity"
},
"type": {
"description": "type represents whether the metric type is Utilization, Value, or AverageValue",
@@ -79779,7 +79762,7 @@
},
"value": {
"description": "value is the target value of the metric (as a quantity).",
"type": "string"
"$ref": "#/definitions/resource.Quantity"
}
}
},
@@ -80753,7 +80736,7 @@
},
"currentAverageValue": {
"description": "currentAverageValue is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. It will always be set, regardless of the corresponding metric specification.",
"type": "string"
"$ref": "#/definitions/resource.Quantity"
},
"name": {
"description": "name is the name of the resource in question.",
@@ -80773,8 +80756,7 @@
},
"port": {
"description": "Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.",
"type": "object",
"format": "int-or-string"
"$ref": "#/definitions/intstr.IntOrString"
}
}
},
@@ -81177,8 +81159,7 @@
},
"port": {
"description": "Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.",
"type": "object",
"format": "int-or-string"
"$ref": "#/definitions/intstr.IntOrString"
},
"scheme": {
"description": "Scheme to use for connecting to the host. Defaults to HTTP.",
@@ -81252,13 +81233,11 @@
"properties": {
"maxSurge": {
"description": "The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods.",
"type": "object",
"format": "int-or-string"
"$ref": "#/definitions/intstr.IntOrString"
},
"maxUnavailable": {
"description": "The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods.",
"type": "object",
"format": "int-or-string"
"$ref": "#/definitions/intstr.IntOrString"
}
}
},
@@ -82865,7 +82844,7 @@
"properties": {
"currentAverageValue": {
"description": "currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity)",
"type": "string"
"$ref": "#/definitions/resource.Quantity"
},
"metricName": {
"description": "metricName is the name of the metric in question",
@@ -82895,8 +82874,7 @@
"properties": {
"port": {
"description": "If specified, the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched.",
"type": "object",
"format": "int-or-string"
"$ref": "#/definitions/intstr.IntOrString"
},
"protocol": {
"description": "Optional. The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP.",
@@ -82914,7 +82892,7 @@
"properties": {
"averageValue": {
"description": "averageValue is the target value of the average of the metric across all relevant pods (as a quantity)",
"type": "string"
"$ref": "#/definitions/resource.Quantity"
},
"metricName": {
"description": "metricName is the name of the metric in question.",
@@ -82930,7 +82908,7 @@
},
"targetValue": {
"description": "targetValue is the target value of the metric (as a quantity).",
"type": "string"
"$ref": "#/definitions/resource.Quantity"
}
}
},
@@ -83376,13 +83354,11 @@
"properties": {
"maxUnavailable": {
"description": "An eviction is allowed if at most \"maxUnavailable\" pods selected by \"selector\" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with \"minAvailable\".",
"type": "object",
"format": "int-or-string"
"$ref": "#/definitions/intstr.IntOrString"
},
"minAvailable": {
"description": "An eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\".",
"type": "object",
"format": "int-or-string"
"$ref": "#/definitions/intstr.IntOrString"
},
"selector": {
"description": "Label query over pods whose evictions are managed by the disruption budget.",
@@ -83431,16 +83407,14 @@
"description": "Hard is the set of enforced hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/",
"type": "object",
"additionalProperties": {
"description": "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors.\n\nThe serialization format is:\n\n<quantity> ::= <signedNumber><suffix>\n (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.)\n<digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n<decimalSI> ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n<decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber>\n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.",
"type": "string"
"$ref": "#/definitions/resource.Quantity"
}
},
"used": {
"description": "Used is the current observed total usage of the resource in the namespace.",
"type": "object",
"additionalProperties": {
"description": "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors.\n\nThe serialization format is:\n\n<quantity> ::= <signedNumber><suffix>\n (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.)\n<digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n<decimalSI> ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n<decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber>\n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.",
"type": "string"
"$ref": "#/definitions/resource.Quantity"
}
}
}
@@ -84143,8 +84117,7 @@
"properties": {
"maxUnavailable": {
"description": "The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update.",
"type": "object",
"format": "int-or-string"
"$ref": "#/definitions/intstr.IntOrString"
}
}
},
@@ -85312,11 +85285,11 @@
"properties": {
"averageValue": {
"description": "averageValue is the current value of the average of the metric across all relevant pods (as a quantity)",
"type": "string"
"$ref": "#/definitions/resource.Quantity"
},
"currentValue": {
"description": "currentValue is the current value of the metric (as a quantity).",
"type": "string"
"$ref": "#/definitions/resource.Quantity"
},
"metricName": {
"description": "metricName is the name of the metric in question.",
@@ -85532,7 +85505,7 @@
},
"sizeLimit": {
"description": "Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir",
"type": "string"
"$ref": "#/definitions/resource.Quantity"
}
}
},
@@ -85541,8 +85514,7 @@
"properties": {
"port": {
"description": "The port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers.",
"type": "object",
"format": "int-or-string"
"$ref": "#/definitions/intstr.IntOrString"
},
"protocol": {
"description": "The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP.",
@@ -86916,11 +86888,11 @@
"properties": {
"currentAverageValue": {
"description": "currentAverageValue is the current value of metric averaged over autoscaled pods.",
"type": "string"
"$ref": "#/definitions/resource.Quantity"
},
"currentValue": {
"description": "currentValue is the current value of the metric (as a quantity)",
"type": "string"
"$ref": "#/definitions/resource.Quantity"
},
"metricName": {
"description": "metricName is the name of a metric used for autoscaling in metric system.",
@@ -87047,13 +87019,11 @@
"properties": {
"maxSurge": {
"description": "The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of desired pods.",
"type": "object",
"format": "int-or-string"
"$ref": "#/definitions/intstr.IntOrString"
},
"maxUnavailable": {
"description": "The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods.",
"type": "object",
"format": "int-or-string"
"$ref": "#/definitions/intstr.IntOrString"
}
}
},
@@ -87438,13 +87408,11 @@
"properties": {
"maxSurge": {
"description": "The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. By default, a value of 1 is used. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of desired pods.",
"type": "object",
"format": "int-or-string"
"$ref": "#/definitions/intstr.IntOrString"
},
"maxUnavailable": {
"description": "The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. By default, a fixed value of 1 is used. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods.",
"type": "object",
"format": "int-or-string"
"$ref": "#/definitions/intstr.IntOrString"
}
}
},
@@ -87458,11 +87426,11 @@
},
"averageValue": {
"description": "averageValue is the current value of the average of the metric across all relevant pods (as a quantity)",
"type": "string"
"$ref": "#/definitions/resource.Quantity"
},
"value": {
"description": "value is the current value of the metric (as a quantity).",
"type": "string"
"$ref": "#/definitions/resource.Quantity"
}
}
},
@@ -87996,7 +87964,7 @@
},
"divisor": {
"description": "Specifies the output format of the exposed resources, defaults to \"1\"",
"type": "string"
"$ref": "#/definitions/resource.Quantity"
},
"resource": {
"description": "Required: resource to select",
@@ -88451,8 +88419,7 @@
"properties": {
"maxUnavailable": {
"description": "The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update.",
"type": "object",
"format": "int-or-string"
"$ref": "#/definitions/intstr.IntOrString"
}
}
},
@@ -89192,7 +89159,7 @@
},
"targetAverageValue": {
"description": "targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity)",
"type": "string"
"$ref": "#/definitions/resource.Quantity"
}
}
},

View File

@@ -0,0 +1,15 @@
module CustomInstances where
import Kubernetes.OpenAPI.Model
import Test.QuickCheck
import Data.Text (pack)
instance Arbitrary IntOrString where
arbitrary =
oneof [ IntOrStringI <$> arbitrary
, IntOrStringS <$> (pack <$> arbitrary)
]
instance Arbitrary Quantity where
arbitrary = Quantity <$> (pack <$> arbitrary)

View File

@@ -4,6 +4,7 @@ module Instances where
import Kubernetes.OpenAPI.Model
import Kubernetes.OpenAPI.Core
import CustomInstances ()
import qualified Data.Aeson as A
import qualified Data.ByteString.Lazy as BL
@@ -255,8 +256,8 @@ instance Arbitrary AppsV1beta1RollingUpdateDeployment where
genAppsV1beta1RollingUpdateDeployment :: Int -> Gen AppsV1beta1RollingUpdateDeployment
genAppsV1beta1RollingUpdateDeployment n =
AppsV1beta1RollingUpdateDeployment
<$> arbitraryReducedMaybeValue n -- appsV1beta1RollingUpdateDeploymentMaxSurge :: Maybe A.Value
<*> arbitraryReducedMaybeValue n -- appsV1beta1RollingUpdateDeploymentMaxUnavailable :: Maybe A.Value
<$> arbitraryReducedMaybe n -- appsV1beta1RollingUpdateDeploymentMaxSurge :: Maybe IntOrString
<*> arbitraryReducedMaybe n -- appsV1beta1RollingUpdateDeploymentMaxUnavailable :: Maybe IntOrString
instance Arbitrary AppsV1beta1Scale where
arbitrary = sized genAppsV1beta1Scale
@@ -485,8 +486,8 @@ instance Arbitrary ExtensionsV1beta1RollingUpdateDeployment where
genExtensionsV1beta1RollingUpdateDeployment :: Int -> Gen ExtensionsV1beta1RollingUpdateDeployment
genExtensionsV1beta1RollingUpdateDeployment n =
ExtensionsV1beta1RollingUpdateDeployment
<$> arbitraryReducedMaybeValue n -- extensionsV1beta1RollingUpdateDeploymentMaxSurge :: Maybe A.Value
<*> arbitraryReducedMaybeValue n -- extensionsV1beta1RollingUpdateDeploymentMaxUnavailable :: Maybe A.Value
<$> arbitraryReducedMaybe n -- extensionsV1beta1RollingUpdateDeploymentMaxSurge :: Maybe IntOrString
<*> arbitraryReducedMaybe n -- extensionsV1beta1RollingUpdateDeploymentMaxUnavailable :: Maybe IntOrString
instance Arbitrary ExtensionsV1beta1RunAsGroupStrategyOptions where
arbitrary = sized genExtensionsV1beta1RunAsGroupStrategyOptions
@@ -1471,7 +1472,7 @@ genV1EmptyDirVolumeSource :: Int -> Gen V1EmptyDirVolumeSource
genV1EmptyDirVolumeSource n =
V1EmptyDirVolumeSource
<$> arbitraryReducedMaybe n -- v1EmptyDirVolumeSourceMedium :: Maybe Text
<*> arbitraryReducedMaybe n -- v1EmptyDirVolumeSourceSizeLimit :: Maybe Text
<*> arbitraryReducedMaybe n -- v1EmptyDirVolumeSourceSizeLimit :: Maybe Quantity
instance Arbitrary V1EndpointAddress where
arbitrary = sized genV1EndpointAddress
@@ -1724,7 +1725,7 @@ genV1HTTPGetAction n =
<$> arbitraryReducedMaybe n -- v1HTTPGetActionHost :: Maybe Text
<*> arbitraryReducedMaybe n -- v1HTTPGetActionHttpHeaders :: Maybe [V1HTTPHeader]
<*> arbitraryReducedMaybe n -- v1HTTPGetActionPath :: Maybe Text
<*> arbitraryReduced n -- v1HTTPGetActionPort :: A.Value
<*> arbitraryReduced n -- v1HTTPGetActionPort :: IntOrString
<*> arbitraryReducedMaybe n -- v1HTTPGetActionScheme :: Maybe Text
instance Arbitrary V1HTTPHeader where
@@ -1991,11 +1992,11 @@ instance Arbitrary V1LimitRangeItem where
genV1LimitRangeItem :: Int -> Gen V1LimitRangeItem
genV1LimitRangeItem n =
V1LimitRangeItem
<$> arbitraryReducedMaybe n -- v1LimitRangeItemDefault :: Maybe (Map.Map String Text)
<*> arbitraryReducedMaybe n -- v1LimitRangeItemDefaultRequest :: Maybe (Map.Map String Text)
<*> arbitraryReducedMaybe n -- v1LimitRangeItemMax :: Maybe (Map.Map String Text)
<*> arbitraryReducedMaybe n -- v1LimitRangeItemMaxLimitRequestRatio :: Maybe (Map.Map String Text)
<*> arbitraryReducedMaybe n -- v1LimitRangeItemMin :: Maybe (Map.Map String Text)
<$> arbitraryReducedMaybe n -- v1LimitRangeItemDefault :: Maybe (Map.Map String Quantity)
<*> arbitraryReducedMaybe n -- v1LimitRangeItemDefaultRequest :: Maybe (Map.Map String Quantity)
<*> arbitraryReducedMaybe n -- v1LimitRangeItemMax :: Maybe (Map.Map String Quantity)
<*> arbitraryReducedMaybe n -- v1LimitRangeItemMaxLimitRequestRatio :: Maybe (Map.Map String Quantity)
<*> arbitraryReducedMaybe n -- v1LimitRangeItemMin :: Maybe (Map.Map String Quantity)
<*> arbitraryReducedMaybe n -- v1LimitRangeItemType :: Maybe Text
instance Arbitrary V1LimitRangeList where
@@ -2178,7 +2179,7 @@ instance Arbitrary V1NetworkPolicyPort where
genV1NetworkPolicyPort :: Int -> Gen V1NetworkPolicyPort
genV1NetworkPolicyPort n =
V1NetworkPolicyPort
<$> arbitraryReducedMaybeValue n -- v1NetworkPolicyPortPort :: Maybe A.Value
<$> arbitraryReducedMaybe n -- v1NetworkPolicyPortPort :: Maybe IntOrString
<*> arbitraryReducedMaybe n -- v1NetworkPolicyPortProtocol :: Maybe Text
instance Arbitrary V1NetworkPolicySpec where
@@ -2320,8 +2321,8 @@ genV1NodeStatus :: Int -> Gen V1NodeStatus
genV1NodeStatus n =
V1NodeStatus
<$> arbitraryReducedMaybe n -- v1NodeStatusAddresses :: Maybe [V1NodeAddress]
<*> arbitraryReducedMaybe n -- v1NodeStatusAllocatable :: Maybe (Map.Map String Text)
<*> arbitraryReducedMaybe n -- v1NodeStatusCapacity :: Maybe (Map.Map String Text)
<*> arbitraryReducedMaybe n -- v1NodeStatusAllocatable :: Maybe (Map.Map String Quantity)
<*> arbitraryReducedMaybe n -- v1NodeStatusCapacity :: Maybe (Map.Map String Quantity)
<*> arbitraryReducedMaybe n -- v1NodeStatusConditions :: Maybe [V1NodeCondition]
<*> arbitraryReducedMaybe n -- v1NodeStatusConfig :: Maybe V1NodeConfigStatus
<*> arbitraryReducedMaybe n -- v1NodeStatusDaemonEndpoints :: Maybe V1NodeDaemonEndpoints
@@ -2494,7 +2495,7 @@ genV1PersistentVolumeClaimStatus :: Int -> Gen V1PersistentVolumeClaimStatus
genV1PersistentVolumeClaimStatus n =
V1PersistentVolumeClaimStatus
<$> arbitraryReducedMaybe n -- v1PersistentVolumeClaimStatusAccessModes :: Maybe [Text]
<*> arbitraryReducedMaybe n -- v1PersistentVolumeClaimStatusCapacity :: Maybe (Map.Map String Text)
<*> arbitraryReducedMaybe n -- v1PersistentVolumeClaimStatusCapacity :: Maybe (Map.Map String Quantity)
<*> arbitraryReducedMaybe n -- v1PersistentVolumeClaimStatusConditions :: Maybe [V1PersistentVolumeClaimCondition]
<*> arbitraryReducedMaybe n -- v1PersistentVolumeClaimStatusPhase :: Maybe Text
@@ -2528,7 +2529,7 @@ genV1PersistentVolumeSpec n =
<*> arbitraryReducedMaybe n -- v1PersistentVolumeSpecAwsElasticBlockStore :: Maybe V1AWSElasticBlockStoreVolumeSource
<*> arbitraryReducedMaybe n -- v1PersistentVolumeSpecAzureDisk :: Maybe V1AzureDiskVolumeSource
<*> arbitraryReducedMaybe n -- v1PersistentVolumeSpecAzureFile :: Maybe V1AzureFilePersistentVolumeSource
<*> arbitraryReducedMaybe n -- v1PersistentVolumeSpecCapacity :: Maybe (Map.Map String Text)
<*> arbitraryReducedMaybe n -- v1PersistentVolumeSpecCapacity :: Maybe (Map.Map String Quantity)
<*> arbitraryReducedMaybe n -- v1PersistentVolumeSpecCephfs :: Maybe V1CephFSPersistentVolumeSource
<*> arbitraryReducedMaybe n -- v1PersistentVolumeSpecCinder :: Maybe V1CinderPersistentVolumeSource
<*> arbitraryReducedMaybe n -- v1PersistentVolumeSpecClaimRef :: Maybe V1ObjectReference
@@ -3009,7 +3010,7 @@ genV1ResourceFieldSelector :: Int -> Gen V1ResourceFieldSelector
genV1ResourceFieldSelector n =
V1ResourceFieldSelector
<$> arbitraryReducedMaybe n -- v1ResourceFieldSelectorContainerName :: Maybe Text
<*> arbitraryReducedMaybe n -- v1ResourceFieldSelectorDivisor :: Maybe Text
<*> arbitraryReducedMaybe n -- v1ResourceFieldSelectorDivisor :: Maybe Quantity
<*> arbitrary -- v1ResourceFieldSelectorResource :: Text
instance Arbitrary V1ResourceQuota where
@@ -3041,7 +3042,7 @@ instance Arbitrary V1ResourceQuotaSpec where
genV1ResourceQuotaSpec :: Int -> Gen V1ResourceQuotaSpec
genV1ResourceQuotaSpec n =
V1ResourceQuotaSpec
<$> arbitraryReducedMaybe n -- v1ResourceQuotaSpecHard :: Maybe (Map.Map String Text)
<$> arbitraryReducedMaybe n -- v1ResourceQuotaSpecHard :: Maybe (Map.Map String Quantity)
<*> arbitraryReducedMaybe n -- v1ResourceQuotaSpecScopeSelector :: Maybe V1ScopeSelector
<*> arbitraryReducedMaybe n -- v1ResourceQuotaSpecScopes :: Maybe [Text]
@@ -3051,8 +3052,8 @@ instance Arbitrary V1ResourceQuotaStatus where
genV1ResourceQuotaStatus :: Int -> Gen V1ResourceQuotaStatus
genV1ResourceQuotaStatus n =
V1ResourceQuotaStatus
<$> arbitraryReducedMaybe n -- v1ResourceQuotaStatusHard :: Maybe (Map.Map String Text)
<*> arbitraryReducedMaybe n -- v1ResourceQuotaStatusUsed :: Maybe (Map.Map String Text)
<$> arbitraryReducedMaybe n -- v1ResourceQuotaStatusHard :: Maybe (Map.Map String Quantity)
<*> arbitraryReducedMaybe n -- v1ResourceQuotaStatusUsed :: Maybe (Map.Map String Quantity)
instance Arbitrary V1ResourceRequirements where
arbitrary = sized genV1ResourceRequirements
@@ -3060,8 +3061,8 @@ instance Arbitrary V1ResourceRequirements where
genV1ResourceRequirements :: Int -> Gen V1ResourceRequirements
genV1ResourceRequirements n =
V1ResourceRequirements
<$> arbitraryReducedMaybe n -- v1ResourceRequirementsLimits :: Maybe (Map.Map String Text)
<*> arbitraryReducedMaybe n -- v1ResourceRequirementsRequests :: Maybe (Map.Map String Text)
<$> arbitraryReducedMaybe n -- v1ResourceRequirementsLimits :: Maybe (Map.Map String Quantity)
<*> arbitraryReducedMaybe n -- v1ResourceRequirementsRequests :: Maybe (Map.Map String Quantity)
instance Arbitrary V1ResourceRule where
arbitrary = sized genV1ResourceRule
@@ -3135,7 +3136,7 @@ instance Arbitrary V1RollingUpdateDaemonSet where
genV1RollingUpdateDaemonSet :: Int -> Gen V1RollingUpdateDaemonSet
genV1RollingUpdateDaemonSet n =
V1RollingUpdateDaemonSet
<$> arbitraryReducedMaybeValue n -- v1RollingUpdateDaemonSetMaxUnavailable :: Maybe A.Value
<$> arbitraryReducedMaybe n -- v1RollingUpdateDaemonSetMaxUnavailable :: Maybe IntOrString
instance Arbitrary V1RollingUpdateDeployment where
arbitrary = sized genV1RollingUpdateDeployment
@@ -3143,8 +3144,8 @@ instance Arbitrary V1RollingUpdateDeployment where
genV1RollingUpdateDeployment :: Int -> Gen V1RollingUpdateDeployment
genV1RollingUpdateDeployment n =
V1RollingUpdateDeployment
<$> arbitraryReducedMaybeValue n -- v1RollingUpdateDeploymentMaxSurge :: Maybe A.Value
<*> arbitraryReducedMaybeValue n -- v1RollingUpdateDeploymentMaxUnavailable :: Maybe A.Value
<$> arbitraryReducedMaybe n -- v1RollingUpdateDeploymentMaxSurge :: Maybe IntOrString
<*> arbitraryReducedMaybe n -- v1RollingUpdateDeploymentMaxUnavailable :: Maybe IntOrString
instance Arbitrary V1RollingUpdateStatefulSetStrategy where
arbitrary = sized genV1RollingUpdateStatefulSetStrategy
@@ -3452,7 +3453,7 @@ genV1ServicePort n =
<*> arbitraryReducedMaybe n -- v1ServicePortNodePort :: Maybe Int
<*> arbitrary -- v1ServicePortPort :: Int
<*> arbitraryReducedMaybe n -- v1ServicePortProtocol :: Maybe Text
<*> arbitraryReducedMaybeValue n -- v1ServicePortTargetPort :: Maybe A.Value
<*> arbitraryReducedMaybe n -- v1ServicePortTargetPort :: Maybe IntOrString
instance Arbitrary V1ServiceReference where
arbitrary = sized genV1ServiceReference
@@ -3738,7 +3739,7 @@ genV1TCPSocketAction :: Int -> Gen V1TCPSocketAction
genV1TCPSocketAction n =
V1TCPSocketAction
<$> arbitraryReducedMaybe n -- v1TCPSocketActionHost :: Maybe Text
<*> arbitraryReduced n -- v1TCPSocketActionPort :: A.Value
<*> arbitraryReduced n -- v1TCPSocketActionPort :: IntOrString
instance Arbitrary V1Taint where
arbitrary = sized genV1Taint
@@ -4924,7 +4925,7 @@ genV1beta1IngressBackend :: Int -> Gen V1beta1IngressBackend
genV1beta1IngressBackend n =
V1beta1IngressBackend
<$> arbitrary -- v1beta1IngressBackendServiceName :: Text
<*> arbitraryReduced n -- v1beta1IngressBackendServicePort :: A.Value
<*> arbitraryReduced n -- v1beta1IngressBackendServicePort :: IntOrString
instance Arbitrary V1beta1IngressList where
arbitrary = sized genV1beta1IngressList
@@ -5149,7 +5150,7 @@ instance Arbitrary V1beta1NetworkPolicyPort where
genV1beta1NetworkPolicyPort :: Int -> Gen V1beta1NetworkPolicyPort
genV1beta1NetworkPolicyPort n =
V1beta1NetworkPolicyPort
<$> arbitraryReducedMaybeValue n -- v1beta1NetworkPolicyPortPort :: Maybe A.Value
<$> arbitraryReducedMaybe n -- v1beta1NetworkPolicyPortPort :: Maybe IntOrString
<*> arbitraryReducedMaybe n -- v1beta1NetworkPolicyPortProtocol :: Maybe Text
instance Arbitrary V1beta1NetworkPolicySpec where
@@ -5210,8 +5211,8 @@ instance Arbitrary V1beta1PodDisruptionBudgetSpec where
genV1beta1PodDisruptionBudgetSpec :: Int -> Gen V1beta1PodDisruptionBudgetSpec
genV1beta1PodDisruptionBudgetSpec n =
V1beta1PodDisruptionBudgetSpec
<$> arbitraryReducedMaybeValue n -- v1beta1PodDisruptionBudgetSpecMaxUnavailable :: Maybe A.Value
<*> arbitraryReducedMaybeValue n -- v1beta1PodDisruptionBudgetSpecMinAvailable :: Maybe A.Value
<$> arbitraryReducedMaybe n -- v1beta1PodDisruptionBudgetSpecMaxUnavailable :: Maybe IntOrString
<*> arbitraryReducedMaybe n -- v1beta1PodDisruptionBudgetSpecMinAvailable :: Maybe IntOrString
<*> arbitraryReducedMaybe n -- v1beta1PodDisruptionBudgetSpecSelector :: Maybe V1LabelSelector
instance Arbitrary V1beta1PodDisruptionBudgetStatus where
@@ -5408,7 +5409,7 @@ instance Arbitrary V1beta1RollingUpdateDaemonSet where
genV1beta1RollingUpdateDaemonSet :: Int -> Gen V1beta1RollingUpdateDaemonSet
genV1beta1RollingUpdateDaemonSet n =
V1beta1RollingUpdateDaemonSet
<$> arbitraryReducedMaybeValue n -- v1beta1RollingUpdateDaemonSetMaxUnavailable :: Maybe A.Value
<$> arbitraryReducedMaybe n -- v1beta1RollingUpdateDaemonSetMaxUnavailable :: Maybe IntOrString
instance Arbitrary V1beta1RollingUpdateStatefulSetStrategy where
arbitrary = sized genV1beta1RollingUpdateStatefulSetStrategy
@@ -6006,7 +6007,7 @@ instance Arbitrary V1beta2RollingUpdateDaemonSet where
genV1beta2RollingUpdateDaemonSet :: Int -> Gen V1beta2RollingUpdateDaemonSet
genV1beta2RollingUpdateDaemonSet n =
V1beta2RollingUpdateDaemonSet
<$> arbitraryReducedMaybeValue n -- v1beta2RollingUpdateDaemonSetMaxUnavailable :: Maybe A.Value
<$> arbitraryReducedMaybe n -- v1beta2RollingUpdateDaemonSetMaxUnavailable :: Maybe IntOrString
instance Arbitrary V1beta2RollingUpdateDeployment where
arbitrary = sized genV1beta2RollingUpdateDeployment
@@ -6014,8 +6015,8 @@ instance Arbitrary V1beta2RollingUpdateDeployment where
genV1beta2RollingUpdateDeployment :: Int -> Gen V1beta2RollingUpdateDeployment
genV1beta2RollingUpdateDeployment n =
V1beta2RollingUpdateDeployment
<$> arbitraryReducedMaybeValue n -- v1beta2RollingUpdateDeploymentMaxSurge :: Maybe A.Value
<*> arbitraryReducedMaybeValue n -- v1beta2RollingUpdateDeploymentMaxUnavailable :: Maybe A.Value
<$> arbitraryReducedMaybe n -- v1beta2RollingUpdateDeploymentMaxSurge :: Maybe IntOrString
<*> arbitraryReducedMaybe n -- v1beta2RollingUpdateDeploymentMaxUnavailable :: Maybe IntOrString
instance Arbitrary V1beta2RollingUpdateStatefulSetStrategy where
arbitrary = sized genV1beta2RollingUpdateStatefulSetStrategy
@@ -6203,8 +6204,8 @@ genV2beta1ExternalMetricSource n =
V2beta1ExternalMetricSource
<$> arbitrary -- v2beta1ExternalMetricSourceMetricName :: Text
<*> arbitraryReducedMaybe n -- v2beta1ExternalMetricSourceMetricSelector :: Maybe V1LabelSelector
<*> arbitraryReducedMaybe n -- v2beta1ExternalMetricSourceTargetAverageValue :: Maybe Text
<*> arbitraryReducedMaybe n -- v2beta1ExternalMetricSourceTargetValue :: Maybe Text
<*> arbitraryReducedMaybe n -- v2beta1ExternalMetricSourceTargetAverageValue :: Maybe Quantity
<*> arbitraryReducedMaybe n -- v2beta1ExternalMetricSourceTargetValue :: Maybe Quantity
instance Arbitrary V2beta1ExternalMetricStatus where
arbitrary = sized genV2beta1ExternalMetricStatus
@@ -6212,8 +6213,8 @@ instance Arbitrary V2beta1ExternalMetricStatus where
genV2beta1ExternalMetricStatus :: Int -> Gen V2beta1ExternalMetricStatus
genV2beta1ExternalMetricStatus n =
V2beta1ExternalMetricStatus
<$> arbitraryReducedMaybe n -- v2beta1ExternalMetricStatusCurrentAverageValue :: Maybe Text
<*> arbitrary -- v2beta1ExternalMetricStatusCurrentValue :: Text
<$> arbitraryReducedMaybe n -- v2beta1ExternalMetricStatusCurrentAverageValue :: Maybe Quantity
<*> arbitraryReduced n -- v2beta1ExternalMetricStatusCurrentValue :: Quantity
<*> arbitrary -- v2beta1ExternalMetricStatusMetricName :: Text
<*> arbitraryReducedMaybe n -- v2beta1ExternalMetricStatusMetricSelector :: Maybe V1LabelSelector
@@ -6306,11 +6307,11 @@ instance Arbitrary V2beta1ObjectMetricSource where
genV2beta1ObjectMetricSource :: Int -> Gen V2beta1ObjectMetricSource
genV2beta1ObjectMetricSource n =
V2beta1ObjectMetricSource
<$> arbitraryReducedMaybe n -- v2beta1ObjectMetricSourceAverageValue :: Maybe Text
<$> arbitraryReducedMaybe n -- v2beta1ObjectMetricSourceAverageValue :: Maybe Quantity
<*> arbitrary -- v2beta1ObjectMetricSourceMetricName :: Text
<*> arbitraryReducedMaybe n -- v2beta1ObjectMetricSourceSelector :: Maybe V1LabelSelector
<*> arbitraryReduced n -- v2beta1ObjectMetricSourceTarget :: V2beta1CrossVersionObjectReference
<*> arbitrary -- v2beta1ObjectMetricSourceTargetValue :: Text
<*> arbitraryReduced n -- v2beta1ObjectMetricSourceTargetValue :: Quantity
instance Arbitrary V2beta1ObjectMetricStatus where
arbitrary = sized genV2beta1ObjectMetricStatus
@@ -6318,8 +6319,8 @@ instance Arbitrary V2beta1ObjectMetricStatus where
genV2beta1ObjectMetricStatus :: Int -> Gen V2beta1ObjectMetricStatus
genV2beta1ObjectMetricStatus n =
V2beta1ObjectMetricStatus
<$> arbitraryReducedMaybe n -- v2beta1ObjectMetricStatusAverageValue :: Maybe Text
<*> arbitrary -- v2beta1ObjectMetricStatusCurrentValue :: Text
<$> arbitraryReducedMaybe n -- v2beta1ObjectMetricStatusAverageValue :: Maybe Quantity
<*> arbitraryReduced n -- v2beta1ObjectMetricStatusCurrentValue :: Quantity
<*> arbitrary -- v2beta1ObjectMetricStatusMetricName :: Text
<*> arbitraryReducedMaybe n -- v2beta1ObjectMetricStatusSelector :: Maybe V1LabelSelector
<*> arbitraryReduced n -- v2beta1ObjectMetricStatusTarget :: V2beta1CrossVersionObjectReference
@@ -6332,7 +6333,7 @@ genV2beta1PodsMetricSource n =
V2beta1PodsMetricSource
<$> arbitrary -- v2beta1PodsMetricSourceMetricName :: Text
<*> arbitraryReducedMaybe n -- v2beta1PodsMetricSourceSelector :: Maybe V1LabelSelector
<*> arbitrary -- v2beta1PodsMetricSourceTargetAverageValue :: Text
<*> arbitraryReduced n -- v2beta1PodsMetricSourceTargetAverageValue :: Quantity
instance Arbitrary V2beta1PodsMetricStatus where
arbitrary = sized genV2beta1PodsMetricStatus
@@ -6340,7 +6341,7 @@ instance Arbitrary V2beta1PodsMetricStatus where
genV2beta1PodsMetricStatus :: Int -> Gen V2beta1PodsMetricStatus
genV2beta1PodsMetricStatus n =
V2beta1PodsMetricStatus
<$> arbitrary -- v2beta1PodsMetricStatusCurrentAverageValue :: Text
<$> arbitraryReduced n -- v2beta1PodsMetricStatusCurrentAverageValue :: Quantity
<*> arbitrary -- v2beta1PodsMetricStatusMetricName :: Text
<*> arbitraryReducedMaybe n -- v2beta1PodsMetricStatusSelector :: Maybe V1LabelSelector
@@ -6352,7 +6353,7 @@ genV2beta1ResourceMetricSource n =
V2beta1ResourceMetricSource
<$> arbitrary -- v2beta1ResourceMetricSourceName :: Text
<*> arbitraryReducedMaybe n -- v2beta1ResourceMetricSourceTargetAverageUtilization :: Maybe Int
<*> arbitraryReducedMaybe n -- v2beta1ResourceMetricSourceTargetAverageValue :: Maybe Text
<*> arbitraryReducedMaybe n -- v2beta1ResourceMetricSourceTargetAverageValue :: Maybe Quantity
instance Arbitrary V2beta1ResourceMetricStatus where
arbitrary = sized genV2beta1ResourceMetricStatus
@@ -6361,7 +6362,7 @@ genV2beta1ResourceMetricStatus :: Int -> Gen V2beta1ResourceMetricStatus
genV2beta1ResourceMetricStatus n =
V2beta1ResourceMetricStatus
<$> arbitraryReducedMaybe n -- v2beta1ResourceMetricStatusCurrentAverageUtilization :: Maybe Int
<*> arbitrary -- v2beta1ResourceMetricStatusCurrentAverageValue :: Text
<*> arbitraryReduced n -- v2beta1ResourceMetricStatusCurrentAverageValue :: Quantity
<*> arbitrary -- v2beta1ResourceMetricStatusName :: Text
instance Arbitrary V2beta2CrossVersionObjectReference where
@@ -6491,9 +6492,9 @@ genV2beta2MetricTarget :: Int -> Gen V2beta2MetricTarget
genV2beta2MetricTarget n =
V2beta2MetricTarget
<$> arbitraryReducedMaybe n -- v2beta2MetricTargetAverageUtilization :: Maybe Int
<*> arbitraryReducedMaybe n -- v2beta2MetricTargetAverageValue :: Maybe Text
<*> arbitraryReducedMaybe n -- v2beta2MetricTargetAverageValue :: Maybe Quantity
<*> arbitrary -- v2beta2MetricTargetType :: Text
<*> arbitraryReducedMaybe n -- v2beta2MetricTargetValue :: Maybe Text
<*> arbitraryReducedMaybe n -- v2beta2MetricTargetValue :: Maybe Quantity
instance Arbitrary V2beta2MetricValueStatus where
arbitrary = sized genV2beta2MetricValueStatus
@@ -6502,8 +6503,8 @@ genV2beta2MetricValueStatus :: Int -> Gen V2beta2MetricValueStatus
genV2beta2MetricValueStatus n =
V2beta2MetricValueStatus
<$> arbitraryReducedMaybe n -- v2beta2MetricValueStatusAverageUtilization :: Maybe Int
<*> arbitraryReducedMaybe n -- v2beta2MetricValueStatusAverageValue :: Maybe Text
<*> arbitraryReducedMaybe n -- v2beta2MetricValueStatusValue :: Maybe Text
<*> arbitraryReducedMaybe n -- v2beta2MetricValueStatusAverageValue :: Maybe Quantity
<*> arbitraryReducedMaybe n -- v2beta2MetricValueStatusValue :: Maybe Quantity
instance Arbitrary V2beta2ObjectMetricSource where
arbitrary = sized genV2beta2ObjectMetricSource

View File

@@ -11,6 +11,7 @@ import Test.Hspec.QuickCheck
import PropMime
import Instances ()
import CustomInstances ()
import Kubernetes.OpenAPI.Model
import Kubernetes.OpenAPI.MimeTypes