Closed WathsalaKoralege closed 4 years ago
@WathsalaKoralege I think this fix needs to be done at the Docker resource repository end of the images used by these Kubernetes resources. Shall we please create a mapping issue at [1] linking this and close this with an appropriate comment?
Created a maping issue as suggested. [1] [1] https://github.com/wso2/docker-apim/issues/248
Description: In APIM Kubernetes deployment (2.6.0), when mounting a ConfigMap for "/repository/resources/customsequences/in" there is a directory "..data" in the server path (wso2am-2.6.0/repository/resources/customsequences/in/). So when starting the server, below error can be observed.
This "..data" directory is normally appended for other configMaps also as it recursively copying the content.
test -d ${config_volume} && [ "$(ls -A ${config_volume})" ] && cp -RL ${config_volume}/* ${WSO2_SERVER_HOME}/
Suggestion to resolve the issue
test -d ${config_volume}/ && cp -RL ${config_volume}/* ${WSO2_SERVER_HOME}/ && find ${WSO2_SERVER_HOME} -name ..?* -type d -print0 | xargs -0 rm -rf "{}"
Suggested Labels: APIM 2.6.0 Kubernetes