Giter Site home page Giter Site logo

dfsync's People

Contributors

cristibaca avatar mihaibalint avatar rajendrakumaryadav avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

dfsync's Issues

Getting `container isn't ready: Unknown` error

When trying to dfsync a container that for some reason has crashed (e.g. previously synced changes contained some bug), I get this error:

<path-to-file> will not sync in <container-name>, container isn't ready: Unknown

As a result, I can't sync files any more (unless I press Ctrl-C or X and let dfsync restore the original container).

Note: This issue was created prior to the release of 0.4.6.

Testing with multiple python version

It's likely that developers will want to use dfsync in various environments with various python versions, it would be great if we could use something like tox to at least run the test suite with the most popular versions of python (like those shipped by OS distributions)

Deal with "Conflict" responses from kubernetes

Sometimes multiple processes will try and modify pods resulting in a "Conflict" response from the kubernetes API.

Usually the fix for this is to retry the update. Right now, a traceback is generated and dfsync exits.

Integrate with pyproject.toml

it turns out that the length and number of command line arguments keeps growing, it would be more user friendly to move some of that into the tools section of pyproject.toml

Incorrect pods selection for sync when multiple pods have a name starting with the same string

We have two projects that result in images on harbor with the following names:
/central-hub
/central-hubspot-enricher

Now, if we do a dfsync to sync central-hub, we will actually replace the code on both projects. It seems like dfsync checks only that the image name on Kubernetes starts with the specified image name not that it is exactly what we specified as first parameter.

Add usage instructions

Awesome work, thanks a lot!

Can we get info on stuff such as:

  • installation
  • cmdline usage examples
  • cmdline reference
  • tool configuration
    ?

Thanks a lot for your hard work, this is very helpful!

Quality of life improvements

  • Add command to print tool version + the latest available version
  • Generate a warning message if using an outdated version of dfsync
  • Enable running from within the project folder

Automated unit testing

There are many cases to cover when syncing file changes to a destination so a minimal test suite would be a good thing

Feature roadmap

  • Run kubectl exec in the same shell as dfsync to avoid having to switch between terminals
  • Detect and start the app process automatically after having synced the code in the container
  • Implement key-bindings (similar to screen) for useful commands: force full sync, restart the app, etc

Enforce permissions for `~/.kube/config`

~/.kube/config is a sensitive file, it's permissions should be at least equivalent to "chmod go-rwx"

Without this, kubectl will also complain when trying tu use that file

I am getting python threading error related to FileChangedEventHandler

Watching dir(s): '.'; press [Ctrl-C] to exit

Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3.9/threading.py", line 973, in _bootstrap_inner
self.run()
File "/home/.../.venv/lib/python3.9/site-packages/watchdog/observers/api.py", line 199, in run
self.dispatch_events(self.event_queue, self.timeout)
File "/home/.../.venv/lib/python3.9/site-packages/watchdog/observers/api.py", line 372, in dispatch_events
handler.dispatch(event)
File "/home/.../.venv/lib/python3.9/site-packages/watchdog/events.py", line 282, in dispatch
self.event_dispatch_mapevent.event_type
AttributeError: 'FileChangedEventHandler' object has no attribute 'event_dispatch_map'

Add ability to sync untracked git files

I was working on a new feature with uncommitted changes and found out only after a while that a new untracked file was not syncing. By looking at dfsync sync --help it doesn't seem to be possible to sync untracked files.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.