Code Monkey home page Code Monkey logo

k8skey's Introduction

K8SKey


Example using with interactive menu:

➜  k8skey git:(master) ✗ go run main.go --select true
Project[0]: localhost1
Project[1]: ultra-sound-324019
Choose Project: 1
Project: 1
---
Cluster[0]: autopilot-cluster-1
Choose Cluster: 0
Cluster: 0
---
Project[1]: ultra-sound-324019
Cluster[0]: autopilot-cluster-1
Fetching cluster endpoint and auth data.
kubeconfig entry generated for autopilot-cluster-1.

Update Database
This command create a clusters.json file root folder, with projects and clusters information.

--database update

Select Menu

--select true

Set Project, Cluster and Region

--project PROJECT_ID --cluster CLUSTER_ID --region REGION_ID

k8skey's People

Contributors

tonnytg avatar dependabot[bot] avatar

Stargazers

 avatar

k8skey's Issues

error when choose project by name

What's happened?

  • k8skey try to convert string name to int, and return 0, after connecting the wrong cluster...

What's expected?

  • Understand when you choose project or cluster by name
  • When errors happened break menu, k8skey can't connect the wrong cluster. This is critical

Add a line separete menu of choise

What's happend?

  • Show list of projects and next line show choice

What's expected?

  • Add new divide line, for a clean or more beautiful format

Save clusters.json get only one project

What's happen?
After list all projects, Save([]byte) registry only one projects with your clusters.

What's expected?
Save([]byte) needs to contain all active projects and clusters.

List deleted projects

What's happen?
GetProjects() return many projects, and deleted projects.

What's is expected?
GetProjects() return only active projects

Ignore projects without clusters

What's happened?

  • When list all projects and get clusters many projects will be listed but don't have a clusters

What's expected?

  • List with only projects with clusters

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.