Skip to content

feat(operator): flush out v1alpha1 CRDs#5

Merged
dmolik merged 1 commit intomainfrom
crd
Oct 24, 2025
Merged

feat(operator): flush out v1alpha1 CRDs#5
dmolik merged 1 commit intomainfrom
crd

Conversation

@dmolik
Copy link
Collaborator

@dmolik dmolik commented Oct 5, 2025

Signed-off-by: Dan Molik dan@hyperspike.io

Copy link
Collaborator

@bjosv bjosv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for late review.. looks good. Added some comments to chat about


// Override resource requirements for each pod
// +optional
Resources corev1.ResourceRequirements `json:"resources,omitempty"`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't a ptr compared to the Affinity option that also is optional.
Is this to be handled differently then checking it for nil?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No I'll clean it up

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There seems to be an issue with Deepcopy, the linter throws an error if we try to make resource requirements a pointer
https://github.com/valkey-io/valkey-operator/actions/runs/18779683212/job/53582458472?pr=5#step:4:34

Signed-off-by: Dan Molik <dan@hyperspike.io>
Copy link
Collaborator

@bjosv bjosv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@dmolik dmolik merged commit eea6904 into main Oct 24, 2025
7 checks passed
@dmolik dmolik deleted the crd branch October 24, 2025 17:21
@bjosv bjosv moved this to Done in valkey-operator 0.1.0 Oct 31, 2025
bjosv added a commit that referenced this pull request Dec 2, 2025
As discussed in
#5 (comment)

Example:
```
    spec:
      image: valkey/valkey:8.1.3
      shards: 4
      replicas: 2
      exporter:
        image: myname/my-exporter:latest
        resources:
          # ... resources go here
```

---------

Signed-off-by: Björn Svensson <bjorn.a.svensson@est.tech>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants

Comments