Skip to content

Commit 7390375

Browse files
authored
[FLINK-36551][OLM] Ensure that docker-entry.sh actually replaces the keystore pod volume
Signed-off-by: kwall <[email protected]>
1 parent bc493c3 commit 7390375

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/olm/docker-entry.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ generate_olm_bundle() {
8585

8686
yq ea -i ".spec.install.spec.deployments[0].spec.template.spec.initContainers = load(\"${INIT_CONT}\").initContainers" "${CSV_FILE}"
8787

88-
yq ea -i '.spec.install.spec.deployments[0].spec.template.spec.volumes[1] = {"name": "keystore","emptyDir": {}}' "${CSV_FILE}"
88+
yq ea -i '(.spec.install.spec.deployments[0].spec.template.spec.volumes[] | select(.name == "keystore")) = {"name": "keystore","emptyDir": {}}' "${CSV_FILE}"
8989

9090
yq ea -i "(... | select(has(\"image\"))).image =\"${OPERATOR_IMG}\"" "${CSV_FILE}"
9191

0 commit comments

Comments
 (0)