Skip to content

Commit

Permalink
feat: add redis username for ACL
Browse files Browse the repository at this point in the history
Signed-off-by: wkd-woo <[email protected]>
  • Loading branch information
wkd-woo committed Mar 4, 2024
1 parent 58d862c commit d6c2f46
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
9 changes: 8 additions & 1 deletion api/v1beta2/common_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ type RedisConfig struct {
common.RedisConfig `json:",inline"`
}

// ExistingAuthSecret is the struct to access the existing secret
type ExistingAuthSecret struct {
Name *string `json:"name,omitempty"`
UsernameKey *string `json:"username,omitempty"`
PasswordKey *string `json:"password,omitempty"`
}

// Storage is the inteface to add pvc and pv support in redis
type Storage struct {
common.Storage `json:",inline"`
Expand Down Expand Up @@ -65,7 +72,7 @@ type ACLConfig struct {
Secret *corev1.SecretVolumeSource `json:"secret,omitempty"`
}

// Probe is a interface for ReadinessProbe and LivenessProbe
// Probe is an interface for ReadinessProbe and LivenessProbe
type Probe struct {
common.Probe `json:",inline"`
}
Expand Down
30 changes: 30 additions & 0 deletions api/v1beta2/zz_generated.deepcopy.go

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

0 comments on commit d6c2f46

Please sign in to comment.