securisec / code-traefikode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

trafikode

Simple Traefik snippets and autocomplete for VS Code.

Supports Traefik version 2.1+

Work in progress

Help Needed Please refer to the TODO section for help required.

Usage

  • VSCode Marketplace
  • The autocompleter will trigger when a - is followed by --, i.e cli options
  • A - followed by the word traefik

Intellisense

Caveat

The Red Hat yaml plugin disables intellisense in docker compose files, so for intellisense to work, make sure to disable it in VSCode extensions. This yaml plugin on the other hand is used in the traefik.yaml file for dynamic config yaml intellisense. Pull requests are welcome to fix this.

Intellisense works for the following:

  • Cli and provider arguments that are passed to traefik cli
  • Traefik labels for a container.
  • Provide intellisense in traeik.yaml files for dynamic configuration.

Snippets

Snippets are provided for traefik labels for a container.

Known issues

  • Does not work when the Redhat yaml extension is installed

About


Languages

Language:TypeScript 100.0%