Skip to content

Commit

Permalink
fix CRD
Browse files Browse the repository at this point in the history
  • Loading branch information
dmolik committed Feb 4, 2025
1 parent c8b9180 commit 857ee24
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 411 deletions.
7 changes: 3 additions & 4 deletions api/v1/valkey_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ type ValkeySpec struct {
AutoUpgrade bool `json:"autoUpgrade,omitempty"`

// Auto Scale - Automatically re-scale the number of shards and replicas.
// +kubebuilder:default:=true
AutoScaling AutoScaleSpec `json:"autoScaling,omitempty"`
AutoScaling *AutoScaleSpec `json:"autoScaling,omitempty"`

// Turn on an init container to set permissions on the persistent volume
// +kubebuilder:default:=false
Expand Down Expand Up @@ -82,7 +81,7 @@ type ValkeySpec struct {
Resources *corev1.ResourceRequirements `json:"resources,omitempty"`

// External access configuration
ExternalAccess *ExternalAccess `json:"externalAccess,omitempty"`
ExternalAccess *ExternalAccessSpec `json:"externalAccess,omitempty"`

// Service Password
ServicePassword *corev1.SecretKeySelector `json:"servicePassword,omitempty"`
Expand Down Expand Up @@ -128,7 +127,7 @@ type AutoScaleSpec struct {
}

// ExternalAccess defines the external access configuration
type ExternalAccess struct {
type ExternalAccessSpec struct {
// Enable external access
// +kubebuilder:default:=false
Enabled bool `json:"enabled,omitempty"`
Expand Down
16 changes: 10 additions & 6 deletions api/v1/zz_generated.deepcopy.go

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

1 change: 0 additions & 1 deletion config/crd/bases/hyperspike.io_valkeys.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ spec:
description: ValkeySpec defines the desired state of Valkey
properties:
autoScaling:
default: true
description: Auto Scale - Automatically re-scale the number of shards
and replicas.
properties:
Expand Down
2 changes: 1 addition & 1 deletion config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ kind: Kustomization
images:
- name: controller
newName: localhost:5000/valkey-operator
newTag: "31"
newTag: "2"
Loading

0 comments on commit 857ee24

Please sign in to comment.