Skip to content

Commit

Permalink
Update the CRDs with the ConsumedCapacity in the SpaceProvisionerConf…
Browse files Browse the repository at this point in the history
…ig status. (#1104)
  • Loading branch information
metlos authored Nov 19, 2024
1 parent 6ef82fc commit eaaca45
Showing 1 changed file with 24 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,11 @@ spec:
status:
properties:
conditions:
description: Conditions describes the state of the configuration (its
validity). The only known condition type is "Ready".
description: 'Conditions describes the state of the configuration
(its validity). The only known condition type is "Ready". The SpaceProvisionerConfig
is ready when the following is true: * the referenced ToolchainCluster
object exists and is itself ready * the consumed capacity doesn''t
breach the thresholds defined in the spec'
items:
properties:
lastTransitionTime:
Expand Down Expand Up @@ -115,6 +118,25 @@ spec:
x-kubernetes-list-map-keys:
- type
x-kubernetes-list-type: map
consumedCapacity:
description: ConsumedCapacity reflects the runtime state of the cluster
and the capacity it currently consumes. Nil if the consumed capacity
is not known
properties:
memoryUsagePercentPerNodeRole:
additionalProperties:
type: integer
description: MemoryUsagePercentPerNodeRole is the percent of the
memory used per node role (eg. worker, master)
type: object
spaceCount:
description: SpaceCount is the number of spaces currently deployed
to the cluster
type: integer
required:
- memoryUsagePercentPerNodeRole
- spaceCount
type: object
type: object
type: object
x-kubernetes-preserve-unknown-fields: true
Expand Down

0 comments on commit eaaca45

Please sign in to comment.