Skip to content

Commit

Permalink
fix: apepg create panic (#1477)
Browse files Browse the repository at this point in the history
(cherry picked from commit 592acfd)
  • Loading branch information
kizuna-lek committed Feb 18, 2025
1 parent 7032745 commit 324dee1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
13 changes: 4 additions & 9 deletions addons/apecloud-postgresql/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -180,20 +180,15 @@ vars:
optional: false
password: Required
# env for syncer to initialize dcs
# TODO: modify these env for syncer
- name: CLUSTER_NAME
valueFrom:
clusterVarRef:
clusterName: Required
- name: MY_COMP_NAME
- name: COMPONENT_NAME
valueFrom:
componentVarRef:
optional: false
shortName: Required
- name: MY_NAMESPACE
valueFrom:
clusterVarRef:
namespace: Required
- name: TLS_ENABLED
valueFrom:
tlsVarRef:
Expand Down Expand Up @@ -310,17 +305,17 @@ runtime:
value: apecloud-postgresql
- name: POSTGRESQL_MOUNTED_CONF_DIR
value: {{ .Values.confMountPath }}
- name: MY_POD_NAME
- name: POD_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
- name: MY_POD_UID
- name: POD_UID
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.uid
- name: MY_POD_IP
- name: POD_IP
valueFrom:
fieldRef:
apiVersion: v1
Expand Down
2 changes: 1 addition & 1 deletion addons/apecloud-postgresql/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ image:
debug: false
syncer:
repository: apecloud/syncer
tag: "0.4.0"
tag: "0.4.1"

dataMountPath: /postgresql/volume_data
confMountPath: /postgresql/mount_conf
Expand Down

0 comments on commit 324dee1

Please sign in to comment.