[
https://issues.apache.org/jira/browse/FLINK-32886?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gyula Fora reassigned FLINK-32886:
----------------------------------
Assignee: James Busche
> Issue with volumeMounts when creating OLM for Flink Operator 1.6.0
> ------------------------------------------------------------------
>
> Key: FLINK-32886
> URL: https://issues.apache.org/jira/browse/FLINK-32886
> Project: Flink
> Issue Type: Bug
> Components: Kubernetes Operator
> Affects Versions: kubernetes-operator-1.6.0
> Reporter: James Busche
> Assignee: James Busche
> Priority: Minor
>
> I notice a volumemount problem when trying to deploy the OLM CSV for the
> 1.6.0 Flink Kubernetes Operator. (Following the directions from [OLM
> Verification of a Flink Kubernetes Operator
> Release|https://cwiki.apache.org/confluence/display/FLINK/OLM+Verification+of+a+Flink+Kubernetes+Operator+Release]]
>
> ^{{oc describe csv}}^
> ^{{...}}^
> ^{{Warning InstallComponentFailed 46s (x7 over 49s)
> operator-lifecycle-manager install strategy failed: Deployment.apps
> "flink-kubernetes-operator" is invalid: [spec.template.spec.volumes[2].name:
> Duplicate value: "keystore",
> spec.template.spec.containers[0].volumeMounts[1].name: Not found:
> "flink-artifacts-volume"]}}^
>
> My current workaround is to change [line
> 88|https://github.com/apache/flink-kubernetes-operator/blob/main/tools/olm/docker-entry.sh#L88]
> to look like this:
>
> {{ ^yq ea -i
> '.spec.install.spec.deployments[0].spec.template.spec.volumes[1] = \{"name":
> "flink-artifacts-volume","emptyDir": {}}' "${CSV_FILE}"^}} ^{{yq ea -i
> '.spec.install.spec.deployments[0].spec.template.spec.volumes[2] = \{"name":
> "keystore","emptyDir": {}}' "${CSV_FILE}"}}^
>
> And then the operator deploys without error:
> ^oc get csv
> NAME
> DISPLAY VERSION REPLACES
> PHASEflink-kubernetes-operator.v1.6.0 Flink
> Kubernetes Operator 1.6.0 flink-kubernetes-operator.v1.5.0 Succeeded^
--
This message was sent by Atlassian Jira
(v8.20.10#820010)