This is an automated email from the ASF dual-hosted git repository.
gyfora pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/flink-kubernetes-operator.git
The following commit(s) were added to refs/heads/main by this push:
new 73903750 [FLINK-36551][OLM] Ensure that docker-entry.sh actually
replaces the keystore pod volume
73903750 is described below
commit 73903750b23661bc629e79cd62077757bbfaa870
Author: Keith Wall <[email protected]>
AuthorDate: Mon Nov 4 06:36:06 2024 +0000
[FLINK-36551][OLM] Ensure that docker-entry.sh actually replaces the
keystore pod volume
Signed-off-by: kwall <[email protected]>
---
tools/olm/docker-entry.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/olm/docker-entry.sh b/tools/olm/docker-entry.sh
index 1d106f6b..797c92a6 100755
--- a/tools/olm/docker-entry.sh
+++ b/tools/olm/docker-entry.sh
@@ -85,7 +85,7 @@ generate_olm_bundle() {
yq ea -i
".spec.install.spec.deployments[0].spec.template.spec.initContainers =
load(\"${INIT_CONT}\").initContainers" "${CSV_FILE}"
- yq ea -i '.spec.install.spec.deployments[0].spec.template.spec.volumes[1] =
{"name": "keystore","emptyDir": {}}' "${CSV_FILE}"
+ yq ea -i '(.spec.install.spec.deployments[0].spec.template.spec.volumes[] |
select(.name == "keystore")) = {"name": "keystore","emptyDir": {}}'
"${CSV_FILE}"
yq ea -i "(... | select(has(\"image\"))).image =\"${OPERATOR_IMG}\""
"${CSV_FILE}"