Code Monkey home page Code Monkey logo

kubectl-cp's Introduction

Hello there 馃憢

kubectl-cp's People

Contributors

marcio-pessoa avatar

Watchers

 avatar

kubectl-cp's Issues

Check if file exists before copy

kubectl-cp -a "-n argocd deployment.apps/argocd-server" -v argocd_2023-12-28.yaml argocd-server:/tmp/backup.yaml
direction: upload
container: argocd-server
source: argocd_2023-12-28.yaml
destination: /tmp/backup.yaml
arguments: -n argocd deployment.apps/argocd-server
  Command: /snap/bin/kubectl exec -i -n argocd deployment.apps/argocd-server -c argocd-server -- sh -c "tee /tmp/backup.yaml > /dev/null"
Traceback (most recent call last):
  File "/home/me/bin/kubectl-cp", line 337, in <module>
    Main()
  File "/home/me/bin/kubectl-cp", line 124, in __init__
    self.from_localhost_to_container(
  File "/home/me/bin/kubectl-cp", line 225, in from_localhost_to_container
    result = subprocess.run(shlex.split(cmd), input=content,
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 550, in run
    stdout, stderr = process.communicate(input, timeout=timeout)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 1194, in communicate
    self._stdin_write(input)
  File "/usr/lib/python3.11/subprocess.py", line 1143, in _stdin_write
    self.stdin.write(input)
TypeError: a bytes-like object is required, not 'bool'

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.