Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No files in /ksync folder #280

Open
wehappyfew opened this issue Apr 3, 2019 · 1 comment
Open

No files in /ksync folder #280

wehappyfew opened this issue Apr 3, 2019 · 1 comment

Comments

@wehappyfew
Copy link

I initialise ksync like this on openshift from a docker container on Win10:

oc login https://openshift-cluster.example.com: --token=super-token
oc project test
kubectl config set-context $(kubectl config current-context) --namespace=test
ksync init --upgrade
ksync watch &
kubectl apply -f https://vapor-ware.github.io/ksync/example/app/app.yaml
mkdir -p $(pwd)/ksync
ksync create -n test --selector=app=app $(pwd)/ksync /code
ksync get

INFO[0214] finished unary call with code OK              grpc.code=OK grpc.method=GetSpecList grpc.service=proto.ksync.Ksync grpc.start_time="2019-04-03T10:45:36Z" grpc.time_ns=127819 peer.address="127.0.0.1:52918" span.kind=server system=grpc
     NAME       LOCAL   REMOTE    STATUS            POD            CONTAINER
+-------------+-------+--------+----------+----------------------+-----------+
  engaged-eft   ksync   /code
                                 watching   app-55f6cb8fb6-hps7h

kubectl get po --selector=app=app -o=custom-columns=:metadata.name --no-headers | xargs -IPOD kubectl port-forward POD 8080:80 &
curl localhost:8080

I get the correct responce from the curl

Handling connection for 8080
{
  "files": [
    {
      "mtime": 1518194961.0,
      "name": "Dockerfile"
    },
.....

ls /ksync/

And there is nothing in the /ksync folder.
Am I doing something wrong ?

@timfallmk
Copy link
Collaborator

It may be that $(pwd) isn't being interpreted correctly. Could you try a fixed path and see what that does?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants