Skip to content

Commit a3cf80e

Browse files
author
Sergey Dudoladov
committed
Fix syntax error and run_locally_script
1 parent 973b356 commit a3cf80e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/util/users/users.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ func (strategy DefaultUserSyncStrategy) createPgUser(user spec.PgUser, db *sql.D
116116
userFlags = append(userFlags, fmt.Sprintf(inRoleTemplate, quoteMemberList(user)))
117117
}
118118
if user.AdminRole != "" {
119-
userFlags = append(userFlags, fmt.Sprintf(adminTemplate, user))
119+
userFlags = append(userFlags, fmt.Sprintf(adminTemplate, user.AdminRole))
120120
}
121121

122122
if user.Password == "" {

run_operator_locally.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ function deploy_self_built_image() {
121121
# update the tag in the postgres operator conf
122122
# since the image with this tag already exists on the machine,
123123
# docker should not attempt to fetch it from the registry due to imagePullPolicy
124-
sed --expression "s/\(image\:.*\:\).*$/\1$TAG/" manifests/postgres-operator.yaml > "$PATH_TO_LOCAL_OPERATOR_MANIFEST"
124+
sed --expression "s/\(image\:.*\:\).*$/\1$TAG/; s/smoke-tested-//" manifests/postgres-operator.yaml > "$PATH_TO_LOCAL_OPERATOR_MANIFEST"
125125

126126
retry "kubectl create -f \"$PATH_TO_LOCAL_OPERATOR_MANIFEST\"" "attempt to create $PATH_TO_LOCAL_OPERATOR_MANIFEST resource"
127127
}

0 commit comments

Comments
 (0)