added vscodium confg

This commit is contained in:
Sebastian Wendel 2022-07-13 22:57:30 +02:00
parent 3f06f3e90b
commit d29d46fe8f
No known key found for this signature in database
GPG key ID: 1422B7DF78144640
5 changed files with 71 additions and 1 deletions

1
.gitignore vendored
View file

@ -3,7 +3,6 @@
.direnv
.DS_Store
.pre-commit-config.yaml
.vscode
*.tgz
/.idea/*
charts

10
.vscode/extensions.json vendored Normal file
View file

@ -0,0 +1,10 @@
{
"recommendations": [
"bbenoist.nix",
"cab404.vscode-direnv",
"EditorConfig.EditorConfig",
"jnoortheen.nix-ide",
"ms-kubernetes-tools.vscode-kubernetes-tools",
"redhat.vscode-yaml",
]
}

3
.vscode/launch.json vendored Normal file
View file

@ -0,0 +1,3 @@
{
"configurations": []
}

17
.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,17 @@
{
"editor.codeActionsOnSave": {
"source.fixAll": true
},
"editor.minimap.enabled": false,
"nix.enableLanguageServer": true,
"redhat.telemetry.enabled": false,
"yaml.completion": true,
"yaml.format.bracketSpacing": true,
"yaml.format.enable": true,
"yaml.hover": true,
"yaml.schemaStore.enable": true,
"yaml.validate": true,
"yaml.schemas": {
"https://raw.githubusercontent.com/rancher/k3d/main/pkg/config/config.versions.schema.json": "file:///home/crstl/Development/srx.infra.k8s/test/k3d-srx-dev.yaml"
}
}

41
.vscode/tasks.json vendored Normal file
View file

@ -0,0 +1,41 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "k3d: create",
"type": "shell",
"command": "k3d cluster create fcos-dev --config ci/k3d-fcos-dev.yaml",
"group": "test",
},
{
"label": "k3d: delete",
"type": "shell",
"command": "k3d cluster delete --all",
"group": "test",
},
{
"label": "k8s: kustomize",
"type": "shell",
"command": "kubectl kustomize overlays/dev --enable-helm",
"group": "test",
},
{
"label": "k8s: score",
"type": "shell",
"command": "kubectl kustomize overlays/dev --enable-helm | kube-score score -",
"group": "test",
},
{
"label": "k8s: policies",
"type": "shell",
"command": "kubectl kustomize overlays/dev --enable-helm | conftest test -p test --all-namespaces -",
"group": "test",
},
{
"label": "k8s: apply",
"type": "shell",
"command": "kubectl kustomize overlays/dev --enable-helm | kubectl apply -f -",
"group": "build",
},
]
}