devfile / devworkspace-operator

Apache License 2.0
67 stars 55 forks source link

kubectl plugin #603

Open l0rd opened 3 years ago

l0rd commented 3 years ago
$ kubectl devworkspace init                                          # deploy the DevWorkspace operator

$ kubectl devworkspace create <path>/<url> [--devfile-path <path>]   # look for a devfile at the root of the git
                                                                     # repo, if not found use a universal devfile.
                                                                     # Then generate and apply a devworkspcace

$ kubectl devworkspace debug [-n <namespace>] <pod>                  # look for the git repo annotatation and create
                                                                     # a workspace based on that. Fails if the git 
                                                                     # repo annotation doesn't exist
sleshchenko commented 3 years ago

The scope of this issue is not clear. I would instead start with enhancement describing that would answer the question:

  1. What devworkspace is supposed to be deployed? OLM, yamls in case of K8s? Should it support dependencies like cert-manager?
  2. What is devworkspace created with kubectl plugin? Is it pure user's application pod? How user then would use it? With kubectl exec?
  3. What is debug action mean in terms of DevWorkspace?