Skip to content

Commit

Permalink
fix: fix bugs of init schema
Browse files Browse the repository at this point in the history
  • Loading branch information
chideat committed Oct 10, 2024
1 parent 52d723a commit 8b5a98b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
6 changes: 5 additions & 1 deletion charts/redis-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ spec:
fieldPath: status.podIP
- name: DEFAULT_REDIS_IMAGE
value: "{{ .Values.images.defaultRedis.repository }}:{{ .Values.images.defaultRedis.tag }}"
- name: REDIS_VERSION_5_IMAGE
value: "{{ .Values.images.redis5.repository }}:{{ .Values.images.redis5.tag }}"
- name: REDIS_VERSION_5_VERSION
value: "{{ .Values.images.redis5.tag }}"
- name: REDIS_VERSION_6_IMAGE
value: "{{ .Values.images.redis6.repository }}:{{ .Values.images.redis6.tag }}"
- name: REDIS_VERSION_6_VERSION
Expand All @@ -66,7 +70,7 @@ spec:
- name: REDIS_TOOLS_IMAGE
value: "{{ .Values.images.redisOperator.repository }}:{{ .Values.images.redisOperator.tag }}"
- name: REDIS_OPERATOR_VERSION
value: "{{ .Values.redisOperator.tag }}"
value: "{{ .Values.redisOperator.version }}"
securityContext:
{{- toYaml .Values.redisOperator.securityContext | nindent 12 }}
image: "{{ .Values.images.redisOperator.repository }}:{{ .Values.images.redisOperator.tag }}"
Expand Down
9 changes: 9 additions & 0 deletions charts/redis-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,16 @@ images:
redisOperator:
repository: alaudaos/redis-operator
tag: latest
version: "3.18.0"
digest: "c6fffd56a8ac0411c9461891062070d1321a65f1cfa5172b1a50a9bc34a9d6a5"
defaultRedis:
repository: redis
tag: 6.0
digest: "b99ffd0554dc8d300230b9d1b9f2a129a6abf595bf8589883beb980ed1feae3d"
redis5:
repository: redis
tag: 5.0
digest: "fc5ecd863862f89f04334b7cbb57e93c9790478ea8188a49f6e57b0967d38c75"
redis6:
repository: redis
tag: 6.0
Expand Down
2 changes: 2 additions & 0 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import (
_ "github.com/alauda/redis-operator/internal/ops/failover/actor"
_ "github.com/alauda/redis-operator/internal/ops/sentinel/actor"
"github.com/alauda/redis-operator/internal/vc"
vcv1 "github.com/alauda/redis-operator/internal/vc/v1"
"github.com/alauda/redis-operator/pkg/actor"
"github.com/alauda/redis-operator/pkg/kubernetes/clientset"

Expand Down Expand Up @@ -72,6 +73,7 @@ func init() {
utilruntime.Must(databasesv1.AddToScheme(scheme))
utilruntime.Must(middlewarev1.AddToScheme(scheme))
utilruntime.Must(middlewareredisv1.AddToScheme(scheme))
utilruntime.Must(vcv1.AddToScheme(scheme))
//+kubebuilder:scaffold:scheme
}

Expand Down

0 comments on commit 8b5a98b

Please sign in to comment.