jamesla opened a new issue, #736:
URL: https://github.com/apache/solr-operator/issues/736
I am trying to attach a volume from a configmap to an init container but it
is not entirely clear how to do it from the CRD spec. I've also been unable to
find any examples of somebody doing this:
The code so far:
```yaml
---
apiVersion: solr.apache.org/v1beta1
kind: SolrCloud
metadata:
name: test
spec:
replicas: 1
customSolrKubeOptions:
podOptions:
volumes:
- source:
configMap:
name: solr-config
defaultContainerMount:
mountPath: /config
name: solrconfig.xml
initContainers:
- name: init
image: alpine/curl:latest
command:
- "sh"
- "-c"
- "ls -la /config"
volumeMounts:
- name: solr-config
mountPath: /config
---
kind: ConfigMap
apiVersion: v1
metadata:
name: solr-config
data:
solrconfig.xml: |
<?xml version="1.0" encoding="UTF-8" ?>
<config>
...
</config>
```
It runs and the /config mount exists but it is always empty.
1. Are there any examples of volume mounts with this operator?
2. What am I doing wrong?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]