File tree Expand file tree Collapse file tree 4 files changed +6
-2
lines changed
platforms/kubernetes/postgres-operator Expand file tree Collapse file tree 4 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 66 "clusterrolebinding" : " radondb-postgres-operator-rolebinding-cluster" ,
77 "rolebinding" : " radondb-postgres-operator-rolebinding-role" ,
88 "name" : " radondb-postgres-operator" ,
9- "image" : " radondb/radondb-postgres-operator:v1.4.1 " ,
9+ "image" : " radondb/radondb-postgres-operator:v1.4.2 " ,
1010 "datapath" : " /data" ,
1111 "imageRegistry" : " " ,
1212 "namespaceOverride" : " "
Original file line number Diff line number Diff line change @@ -723,7 +723,7 @@ spec:
723723 priorityClassName : system-cluster-critical
724724 containers :
725725 - name : radondb-postgres-operator
726- image : radondb/radondb-postgres-operator:v1.4.1
726+ image : radondb/radondb-postgres-operator:v1.4.2
727727 imagePullPolicy : IfNotPresent
728728 resources :
729729 requests :
Original file line number Diff line number Diff line change @@ -302,6 +302,9 @@ def correct_postgresql_role(
302302 if output == "on" and role != LABEL_ROLE_STANDBY :
303303 logger .info ("set pod " + pod .metadata .name + " to standby" )
304304 patch_body = patch_role_body (LABEL_ROLE_STANDBY )
305+ if output != "on" and output != "off" and role != LABEL_ROLE_UNKNOWN :
306+ logger .info ("set pod " + pod .metadata .name + " to unknown" )
307+ patch_body = patch_role_body (LABEL_ROLE_UNKNOWN )
305308
306309 if patch_body != None :
307310 try :
Original file line number Diff line number Diff line change 151151LABEL_ROLE = "role"
152152LABEL_ROLE_PRIMARY = "primary"
153153LABEL_ROLE_STANDBY = "standby"
154+ LABEL_ROLE_UNKNOWN = "unknown"
154155
155156# other label
156157LABEL_STATEFULSET_NAME = "statefulset"
You can’t perform that action at this time.
0 commit comments