GithubHelp home page GithubHelp logo

isabella232 / vscode-gardener-tools Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gardener/vscode-gardener-tools

0.0 0.0 0.0 275 KB

Gardener tools for VSCode

License: Other

Shell 2.05% JavaScript 96.33% Python 1.62%

vscode-gardener-tools's Introduction

Gardener Tools for VSCode

CI Build status Slack channel #gardener

This Visual Studio Code Kubernetes Tools extension allows you to work with your gardener projects, shoots, plants and seeds.

VScode Gardener Tools Screenshot

Features

  • List
    • gardener projects
    • shoot clusters
    • plant clusters
    • seed clusters [*]
    • backup bucket resources [*]
    • backup entry resources [*]
  • Right click on landscape, shoot, plant or seed cluster to Save Kubeconfig / Merge into Kubeconfig
  • Right click on landscape or shoot to Show In Dashboard
  • Right click on landscape to Create Project in gardener dashboard
  • Right click on shoots list to Create Shoot in gardener dashboard
  • Gardenctl integration
    • Right click on shoot or seed to get a Shell to a node [*]
    • Right click on landscape, project, shoot or seed to Target with gardenctl [*]
    • Right click on landscape, project, shoot or seed to List with gardenctl gardens, projects, seeds, shoots or issues. [*]
    • Right click on landscape to Register / Unregister for the operator shift with gardenctl [*]

[*] Gardener operator only

Requirements

  • You have installed the Kubernetes Tools extension from the marketplace
  • Kubeconfig to (virtual) garden cluster
  • For gardener operators: Gardenctl for Shell, Target or List command

Install

  1. Install this extension from the Visual Studio Marketplace
  2. Configure the extension. See Extension Settings section below.
  3. In the Sidebar, click on the Kubernetes icon. There should be an entry Gardener under the Clouds section.

Install from VSIX

  • Download .vsix file from latest release asset
  • In VSCode, open the command palette: View -> Command Palette... -> type in Extensions: Install from VSIX...
  • Choose .vsix file downloaded in first step

Extension Settings

This extension contributes the following settings:

  • vscode-gardener-tools.vscode-light-theme: should match your configured theme style. Default: true
  • vscode-gardener-tools.landscapes: Required configuration for garden landscapes
  • vscode-gardener-tools.landscapes[].name: Name of the garden cluster
  • vscode-gardener-tools.landscapes[].gardenName: Optional name of the corresponding (gardenctl) garden. Default: Name of the landscape
  • vscode-gardener-tools.landscapes[].kubeconfigPath: Path to the kubeconfig of the garden cluster.
    • How to get the kubeconfig as regular project member: In the gardener dashboard, go to the Members section of your project and create a new service account. Afterwards you can download the kubeconfig of the service account.
  • vscode-gardener-tools.landscapes[].dashboardUrl: Gardener dashboard URL,
  • vscode-gardener-tools.landscapes[].projects[]: Optional projects filter. List of projects (names) to be shown. You need to have access to these projects.

Example config settings.json:

    "vscode-gardener-tools": {
      "vscode-light-theme": false,
      "landscapes": [
        {
          "name": "landscape-dev",
          "gardenName": "virtual-dev",
          "kubeconfigPath": "/kubeconfigpath/cluster-dev-virtual-garden/kubeconfig.yaml",
          "dashboardUrl": "https://dashboard.garden.dev.example.com",
          "projects": ["garden", "myproject"]
        },
        {
          "name": "landscape-canary",
          "kubeconfigPath": "/kubeconfigpath/cluster-canary-virtual-garden/kubeconfig.yaml",
          "dashboardUrl": "https://dashboard.garden.canary.example.com"
        },
      ]
    }

To change the Gardener Kubernetes Tools settings:

  • On Windows/Linux - File > Preferences > Settings
  • On macOS - Code > Preferences > Settings

Then search for Gardener Kubernetes Tools or navigate to User Settings > Extensions > Gardener Kubernetes Tools

Known Issues

No Projects are Listed

No projects are listed and you also see the entry No permission to list projects. Specify the projects in the extension configuration.

Reason: Most likely you have downloaded the kubeconfig of a service account in the Members section of your project in the gardener dashboard. This account does not have the permission to list projects.

Solution: Specify the list of projects that you want to see (and have access to) by setting the projects property of your landscape in the Extension Settings.

vscode-gardener-tools's People

Contributors

andreasburger avatar dependabot[bot] avatar gardener-robot-ci-1 avatar gardener-robot-ci-2 avatar gardener-robot-ci-3 avatar msohn avatar petersutter avatar

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.