alpha ver. of deployments resource controller
Some checks failed
Lint / Run on Ubuntu (push) Failing after 53s
Tests / Run on Ubuntu (push) Successful in 55s

This commit is contained in:
2025-05-01 18:00:10 +05:00
parent fc5f580243
commit 23b333c07d
7 changed files with 315 additions and 0 deletions

View File

@@ -46,6 +46,35 @@ spec:
type: string
minProperties: 1
type: object
optOutLabelKey:
description: |-
OptOutLabelKey is the label key used to exempt Deployments from resource defaulting.
If a Deployment has a label with this key (any value), defaults won't be applied.
If empty or omitted, the opt-out mechanism is disabled.
Example: "my-operator.example.com/skip-resource-defaults"
type: string
resourceDefaults:
description: |-
ResourceDefaults contains the default requests/limits to apply.
If this section is omitted, resource defaulting is disabled.
properties:
cpuLimit:
description: Default CPU limit (e.g., "500m"). Applied if a container
has no CPU limit.
type: string
cpuRequest:
description: Default CPU request (e.g., "100m"). Applied if a
container has no CPU request.
type: string
memoryLimit:
description: Default Memory limit (e.g., "512Mi"). Applied if
a container has no Memory limit.
type: string
memoryRequest:
description: Default Memory request (e.g., "128Mi"). Applied if
a container has no Memory request.
type: string
type: object
type: object
status:
description: NodeTainterConfigStatus defines the observed state of NodeTainterConfig.