Skip to content

Commit

Permalink
refactor(RedisInstance): move auth secret to separate file
Browse files Browse the repository at this point in the history
  • Loading branch information
dushanpantic committed Dec 12, 2024
1 parent 27d8c3e commit cbc8e1b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 0 additions & 6 deletions api/cloud-resources/v1beta1/gcpredisinstance_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,6 @@ const (
GcpRedisTierP6 GcpRedisTier = "P6"
)

type AuthSecretSpec struct {
Name string `json:"name,omitempty"`
Labels map[string]string `json:"labels,omitempty"`
Annotations map[string]string `json:"annotations,omitempty"`
}

type TimeOfDay struct {
// Hours of day in 24 hour format. Should be from 0 to 23.
// +kubebuilder:validation:Required
Expand Down
7 changes: 7 additions & 0 deletions api/cloud-resources/v1beta1/redisinstance_authsecret.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package v1beta1

type AuthSecretSpec struct {
Name string `json:"name,omitempty"`
Labels map[string]string `json:"labels,omitempty"`
Annotations map[string]string `json:"annotations,omitempty"`
}

0 comments on commit cbc8e1b

Please sign in to comment.