Hi,

I am using deploy.sh in wso2am to deploy images on k8s. When executing the
deploy.sh from another directory, I mean lets say from directory[1] I am
getting the error[2] because in script[3] line 78 and 81 we haven't given
the yaml file path.

Also in scripts [4] and [5] since we are using "pwd" command to get the
product name, we are getting "apim-distributed-tests" as product name and
getting the errors[6].


I think we can solve this as below.

We can fix those by setting giving the path as below in deploy.sh for the
first problem
kubectl create -f "$script_path/mysql-apimdb-rc.yaml"
kubectl create -f "$script_path/mysql-apimdb-service.yaml"

Can solve the second problem by passing the product name "wso2am" from
deploy.sh as a parameter as below.
bash "${common_scripts_folder}/deploy-kubernetes-service.sh" "wso2am"
"api-key-manager"


[1] /Users/irham/workspace/tmp/apim-distributed-tests

[2] Deploying APIM database Service...

    the path "mysql-apimdb-service.yaml" does not exist

    Deploying APIM database Replication Controller...

    the path "mysql-apimdb-controller.yaml" does not exist

[3]
https://github.com/wso2/kubernetes-artifacts/blob/master/wso2am/deploy.sh

[4]
https://github.com/wso2/kubernetes-artifacts/blob/master/common/scripts/deploy-kubernetes-rc.sh

[5]
https://github.com/wso2/kubernetes-artifacts/blob/master/common/scripts/deploy-kubernetes-service.sh

[6]/Users/irham/workspace/kubernetes_deployment/tmp/kubernetes-artifacts/common/scripts/deploy-kubernetes-service.sh:
line 27: cd:
/Users/irham/workspace/kubernetes_deployment/tmp/kubernetes-artifacts/common/scripts/../../apim-distributed-tests

the path
"/Users/irham/workspace/tmp/apim-distributed-tests/apim-distributed-tests-api-key-manager-service.yaml"
does not exist


Thanks,
Iqbal
-- 
Irham Iqbal
Software Engineer - Test Automation
WSO2
phone: +94 777888452
<http://wso2.com/signature>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to