Skip to content

Commit

Permalink
Sync Redpanda custom resource with Redpanda helm chart values
Browse files Browse the repository at this point in the history
After #375 PR the
Redpanda CRD missed new limits and requests inside resources type.
  • Loading branch information
RafalKorepta committed Jan 13, 2025
1 parent 530f496 commit 6e9bb18
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 0 deletions.
3 changes: 3 additions & 0 deletions operator/api/redpanda/v1alpha2/redpanda_clusterspec_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,9 @@ type UsageStats struct {

// Resources configures resource allocation. The default values are for a development environment. Production-level values and other considerations are documented, where those values are different from the default.
type Resources struct {
Limits *map[corev1.ResourceName]resource.Quantity `json:"limits,omitempty"`
Requests *map[corev1.ResourceName]resource.Quantity `json:"requests,omitempty"`

// Specifies the number of CPU cores.
CPU *CPU `json:"cpu,omitempty"`
// Specifies the amount of memory.
Expand Down
23 changes: 23 additions & 0 deletions operator/api/redpanda/v1alpha2/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions operator/config/crd/bases/cluster.redpanda.com_redpandas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13565,6 +13565,14 @@ spec:
than `1`, this setting is set to `true`.'
type: boolean
type: object
limits:
additionalProperties:
anyOf:
- type: integer
- type: string
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
type: object
memory:
description: Specifies the amount of memory.
properties:
Expand Down Expand Up @@ -13620,6 +13628,14 @@ spec:
x-kubernetes-int-or-string: true
type: object
type: object
requests:
additionalProperties:
anyOf:
- type: integer
- type: string
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
type: object
type: object
service:
description: Defines settings for the headless ClusterIP Service.
Expand Down Expand Up @@ -33816,6 +33832,14 @@ spec:
than `1`, this setting is set to `true`.'
type: boolean
type: object
limits:
additionalProperties:
anyOf:
- type: integer
- type: string
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
type: object
memory:
description: Specifies the amount of memory.
properties:
Expand Down Expand Up @@ -33871,6 +33895,14 @@ spec:
x-kubernetes-int-or-string: true
type: object
type: object
requests:
additionalProperties:
anyOf:
- type: integer
- type: string
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
type: object
type: object
service:
description: Defines settings for the headless ClusterIP Service.
Expand Down

0 comments on commit 6e9bb18

Please sign in to comment.