Compare commits
2
Commits
901d7cbfe1
...
a03c3ceefd
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a03c3ceefd | ||
|
|
dcb8208120 |
Vendored
+41
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "Bash - Selected file",
|
||||
"type": "shell",
|
||||
"command": "bash",
|
||||
"args": [
|
||||
"${file}"
|
||||
],
|
||||
},
|
||||
{
|
||||
"label": "Kustomize - Build - Selected File",
|
||||
"type": "shell",
|
||||
"command": "bash -c '[[ \"$(basename ${file})\" == \"kustomization.yaml\" ]] && kubectl kustomize ${fileDirname} || echo \"❌ invalid kustomization.yaml\"'",
|
||||
"problemMatcher": [],
|
||||
"group": "build"
|
||||
},
|
||||
{
|
||||
"label": "Kustomize - Build & Deply - Selected File",
|
||||
"type": "shell",
|
||||
"command": "bash -c '[[ \"$(basename ${file})\" == \"kustomization.yaml\" ]] && kubectl kustomize ${fileDirname} | kubectl apply -f - || echo \"❌ invalid kustomization.yaml\"'",
|
||||
"problemMatcher": [],
|
||||
"group": "build"
|
||||
},
|
||||
{
|
||||
"label": "flux - Reconcile Source Git",
|
||||
"type": "shell",
|
||||
"command": "flux reconcile source git GIT-REPO-NAME -n YOUR-NAMESPACE",
|
||||
"problemMatcher": [],
|
||||
"group": "build"
|
||||
},
|
||||
{
|
||||
"label": "flux - Reconcile full-stack (with-source)",
|
||||
"type": "shell",
|
||||
"command": "flux reconcile kustomization KUSTOMIZATION-NAME -n YOUR-NAMESPACE --with-source",
|
||||
"problemMatcher": [],
|
||||
"group": "build"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user