Giter VIP home page Giter VIP logo

devkube's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

devkube's Issues

Refresh contexts and namespace when refresh button is clicked.

Right now the upon clicking the refresh button, only the resources are fetched kubectl get all -o wide.

  • Call the getContexts() method as well.
  • Refactor the entire refresh functionality into it's own method.
  • Change event name from getPods to getResources.

Add support for Linux

The application currently only works on Windows and Mac. Add Linux support to make it cross-platform.

Add a log section to the UI

Add a log/terminal section to the UI where it should show what command is running and what output it's getting.

Move electron and electron-packager to dev-dependencies.

Move electron and electron-packager to dev-dependencies from dependencies in the package.json file.

-"dependencies": {
-    "electron": "^11.2.0",
-    "electron-packager": "^15.2.0"
-}
+"devDependencies": {
+    "electron": "^11.2.0",
+    "electron-packager": "^15.2.0"
+}

Readme revision-1

  • Add gifs of the application in action.
  • Specify Linux support is coming soon.
  • Document the manual update process.
  • Document kubectl version compatibility.
  • Leave links to the kubectl installation documentation.

Change resource parsing from index based to header based

This issue should fix this (Deployment table has incorrect content in the shell. #8) bug.

Current Approach

As of now the way the resource parsing is hardcoded index based. See below code.

static fromOutputRow(outputRow) {
        let arr = outputRow.split(" ").filter(e => e !== " " && e !== "");

        // The model class
        let pod = new Pod();
        pod.name = arr[0].split("pod/")[1]; // name
        pod.ready = arr[1]; //ready
        pod.status = arr[2]; // status
        pod.restarts = arr[3]; // restarts
        pod.age = arr[4]; // age
        pod.ip = arr[5]; // ip
        pod.node = arr[6]; // node
        
        return pod;
}

The problem

  • As kubectl updates the output may change.
  • Different users may have different versions of kubectl installed, where this static parsing will result in inconsistent/incorrect output columns.

The solution

  • Get rid of the model classed.
  • Change resource parsing from index-based to header-based parsing.

Ship the latest version of kubectl executable to run kubectl commands.

The problem

As of now, DevKube relies on pre-installed kubectl. Which has primarily few drawbacks.

  • It can be out of date and thus missing features, bug fixes, and performance enhancements.
  • As the client system's kubectl version can be anything, we will have to build DevKube based on a minimum kubectl version. In which we will lose out on new features.

The solution

  • Shipp kubectl binaries along with DevKube. Can be a post-installation step.

Discovery

  • Check if this approach is feasible.

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.