From 034d1484665ffc23ddbc964179339f2f8ebbb681 Mon Sep 17 00:00:00 2001 From: Max Randolph Date: Mon, 20 Nov 2023 14:02:53 -0800 Subject: [PATCH] Update launch.json defaults to include Cloud Build option (#1311) * Update launch.json defaults to include cloud build profile * Update multi-artifact skaffold.yaml for cloud build profiles --------- Co-authored-by: Max Randolph --- dotnet/dotnet-guestbook/.vscode/launch.json | 10 ++++++++++ dotnet/dotnet-guestbook/skaffold.yaml | 5 ++++- dotnet/dotnet-hello-world/.vscode/launch.json | 10 ++++++++++ golang/go-guestbook/.vscode/launch.json | 10 ++++++++++ golang/go-guestbook/skaffold.yaml | 5 ++++- golang/go-hello-world/.vscode/launch.json | 10 ++++++++++ java/java-guestbook/.vscode/launch.json | 10 ++++++++++ java/java-guestbook/skaffold.yaml | 5 ++++- java/java-hello-world/.vscode/launch.json | 10 ++++++++++ nodejs/nodejs-guestbook/.vscode/launch.json | 10 ++++++++++ nodejs/nodejs-guestbook/skaffold.yaml | 4 ++++ nodejs/nodejs-hello-world/.vscode/launch.json | 10 ++++++++++ python/django/python-guestbook/.vscode/launch.json | 10 ++++++++++ python/django/python-hello-world/.vscode/launch.json | 10 ++++++++++ python/python-guestbook/.vscode/launch.json | 10 ++++++++++ python/python-guestbook/skaffold.yaml | 5 ++++- python/python-hello-world/.vscode/launch.json | 10 ++++++++++ 17 files changed, 140 insertions(+), 4 deletions(-) diff --git a/dotnet/dotnet-guestbook/.vscode/launch.json b/dotnet/dotnet-guestbook/.vscode/launch.json index 292897a3e..7dabf9f3d 100644 --- a/dotnet/dotnet-guestbook/.vscode/launch.json +++ b/dotnet/dotnet-guestbook/.vscode/launch.json @@ -13,6 +13,16 @@ "cleanUp": true, "portForward": true }, + { + "name": "Run on Kubernetes - Cloud Build", + "profile": "cloudbuild", + "type": "cloudcode.kubernetes", + "request": "launch", + "skaffoldConfig": "${workspaceFolder}/skaffold.yaml", + "watch": true, + "cleanUp": true, + "portForward": true + }, { "name": "Attach to Kubernetes pod (frontend)", "type": "cloudcode.kubernetes", diff --git a/dotnet/dotnet-guestbook/skaffold.yaml b/dotnet/dotnet-guestbook/skaffold.yaml index 036ff456a..00cd63acf 100644 --- a/dotnet/dotnet-guestbook/skaffold.yaml +++ b/dotnet/dotnet-guestbook/skaffold.yaml @@ -12,4 +12,7 @@ build: requires: - path: ./src/frontend - path: ./src/backend - \ No newline at end of file +profiles: +- name: cloudbuild + build: + googleCloudBuild: {} diff --git a/dotnet/dotnet-hello-world/.vscode/launch.json b/dotnet/dotnet-hello-world/.vscode/launch.json index a41e42598..5673add06 100644 --- a/dotnet/dotnet-hello-world/.vscode/launch.json +++ b/dotnet/dotnet-hello-world/.vscode/launch.json @@ -13,6 +13,16 @@ "cleanUp": true, "portForward": true }, + { + "name": "Run on Kubernetes - Cloud Build", + "profile": "cloudbuild", + "type": "cloudcode.kubernetes", + "request": "launch", + "skaffoldConfig": "${workspaceFolder}/skaffold.yaml", + "watch": true, + "cleanUp": true, + "portForward": true + }, { "name": "Attach to Kubernetes pod", "type": "cloudcode.kubernetes", diff --git a/golang/go-guestbook/.vscode/launch.json b/golang/go-guestbook/.vscode/launch.json index a647e7464..81cb6cd5b 100644 --- a/golang/go-guestbook/.vscode/launch.json +++ b/golang/go-guestbook/.vscode/launch.json @@ -9,6 +9,16 @@ "watch": true, "cleanUp": true, "portForward": true + }, + { + "name": "Run on Kubernetes - Cloud Build", + "profile": "cloudbuild", + "type": "cloudcode.kubernetes", + "request": "launch", + "skaffoldConfig": "${workspaceFolder}/skaffold.yaml", + "watch": true, + "cleanUp": true, + "portForward": true } ] } diff --git a/golang/go-guestbook/skaffold.yaml b/golang/go-guestbook/skaffold.yaml index 38a1b2fa8..0212e2d26 100644 --- a/golang/go-guestbook/skaffold.yaml +++ b/golang/go-guestbook/skaffold.yaml @@ -12,4 +12,7 @@ build: requires: - path: ./src/frontend - path: ./src/backend - \ No newline at end of file +profiles: +- name: cloudbuild + build: + googleCloudBuild: {} diff --git a/golang/go-hello-world/.vscode/launch.json b/golang/go-hello-world/.vscode/launch.json index e0b670e12..5cbacd58f 100644 --- a/golang/go-hello-world/.vscode/launch.json +++ b/golang/go-hello-world/.vscode/launch.json @@ -10,6 +10,16 @@ "cleanUp": true, "portForward": true }, + { + "name": "Run on Kubernetes - Cloud Build", + "profile": "cloudbuild", + "type": "cloudcode.kubernetes", + "request": "launch", + "skaffoldConfig": "${workspaceFolder}/skaffold.yaml", + "watch": true, + "cleanUp": true, + "portForward": true + }, { "type": "go", "request": "launch", diff --git a/java/java-guestbook/.vscode/launch.json b/java/java-guestbook/.vscode/launch.json index af7564e53..6c7145bab 100644 --- a/java/java-guestbook/.vscode/launch.json +++ b/java/java-guestbook/.vscode/launch.json @@ -13,6 +13,16 @@ "watch": true, "cleanUp": true, "portForward": true + }, + { + "name": "Run on Kubernetes - Cloud Build", + "type": "cloudcode.kubernetes", + "request": "launch", + "skaffoldConfig": "${workspaceFolder}/skaffold.yaml", + "profile": "cloudbuild", + "watch": true, + "cleanUp": true, + "portForward": true } ] } diff --git a/java/java-guestbook/skaffold.yaml b/java/java-guestbook/skaffold.yaml index 0a7432d58..4f1ffca22 100644 --- a/java/java-guestbook/skaffold.yaml +++ b/java/java-guestbook/skaffold.yaml @@ -12,4 +12,7 @@ build: requires: - path: ./frontend - path: ./backend - \ No newline at end of file +profiles: +- name: cloudbuild + build: + googleCloudBuild: {} diff --git a/java/java-hello-world/.vscode/launch.json b/java/java-hello-world/.vscode/launch.json index 258ec9300..9bd5a9d75 100644 --- a/java/java-hello-world/.vscode/launch.json +++ b/java/java-hello-world/.vscode/launch.json @@ -13,6 +13,16 @@ "watch": true, "cleanUp": true, "portForward": true + }, + { + "name": "Run on Kubernetes - Cloud Build", + "type": "cloudcode.kubernetes", + "request": "launch", + "skaffoldConfig": "${workspaceFolder}/skaffold.yaml", + "profile": "cloudbuild", + "watch": true, + "cleanUp": true, + "portForward": true } ] } diff --git a/nodejs/nodejs-guestbook/.vscode/launch.json b/nodejs/nodejs-guestbook/.vscode/launch.json index 1d3ca60d3..5efe8adda 100644 --- a/nodejs/nodejs-guestbook/.vscode/launch.json +++ b/nodejs/nodejs-guestbook/.vscode/launch.json @@ -9,6 +9,16 @@ "watch": true, "cleanUp": true, "portForward": true + }, + { + "name": "Run on Kubernetes - Cloud Build", + "profile": "cloudbuild", + "type": "cloudcode.kubernetes", + "request": "launch", + "skaffoldConfig": "${workspaceFolder}/skaffold.yaml", + "watch": true, + "cleanUp": true, + "portForward": true } ] } diff --git a/nodejs/nodejs-guestbook/skaffold.yaml b/nodejs/nodejs-guestbook/skaffold.yaml index 25c69c8c2..0212e2d26 100644 --- a/nodejs/nodejs-guestbook/skaffold.yaml +++ b/nodejs/nodejs-guestbook/skaffold.yaml @@ -12,3 +12,7 @@ build: requires: - path: ./src/frontend - path: ./src/backend +profiles: +- name: cloudbuild + build: + googleCloudBuild: {} diff --git a/nodejs/nodejs-hello-world/.vscode/launch.json b/nodejs/nodejs-hello-world/.vscode/launch.json index 1d3ca60d3..5efe8adda 100644 --- a/nodejs/nodejs-hello-world/.vscode/launch.json +++ b/nodejs/nodejs-hello-world/.vscode/launch.json @@ -9,6 +9,16 @@ "watch": true, "cleanUp": true, "portForward": true + }, + { + "name": "Run on Kubernetes - Cloud Build", + "profile": "cloudbuild", + "type": "cloudcode.kubernetes", + "request": "launch", + "skaffoldConfig": "${workspaceFolder}/skaffold.yaml", + "watch": true, + "cleanUp": true, + "portForward": true } ] } diff --git a/python/django/python-guestbook/.vscode/launch.json b/python/django/python-guestbook/.vscode/launch.json index f644fac89..ded1b6139 100644 --- a/python/django/python-guestbook/.vscode/launch.json +++ b/python/django/python-guestbook/.vscode/launch.json @@ -12,6 +12,16 @@ "watch": true, "cleanUp": true, "portForward": true + }, + { + "name": "Run on Kubernetes - Cloud Build", + "profile": "cloudbuild", + "type": "cloudcode.kubernetes", + "request": "launch", + "skaffoldConfig": "${workspaceFolder}/skaffold.yaml", + "watch": true, + "cleanUp": true, + "portForward": true } ] } diff --git a/python/django/python-hello-world/.vscode/launch.json b/python/django/python-hello-world/.vscode/launch.json index f644fac89..ded1b6139 100644 --- a/python/django/python-hello-world/.vscode/launch.json +++ b/python/django/python-hello-world/.vscode/launch.json @@ -12,6 +12,16 @@ "watch": true, "cleanUp": true, "portForward": true + }, + { + "name": "Run on Kubernetes - Cloud Build", + "profile": "cloudbuild", + "type": "cloudcode.kubernetes", + "request": "launch", + "skaffoldConfig": "${workspaceFolder}/skaffold.yaml", + "watch": true, + "cleanUp": true, + "portForward": true } ] } diff --git a/python/python-guestbook/.vscode/launch.json b/python/python-guestbook/.vscode/launch.json index a647e7464..81cb6cd5b 100644 --- a/python/python-guestbook/.vscode/launch.json +++ b/python/python-guestbook/.vscode/launch.json @@ -9,6 +9,16 @@ "watch": true, "cleanUp": true, "portForward": true + }, + { + "name": "Run on Kubernetes - Cloud Build", + "profile": "cloudbuild", + "type": "cloudcode.kubernetes", + "request": "launch", + "skaffoldConfig": "${workspaceFolder}/skaffold.yaml", + "watch": true, + "cleanUp": true, + "portForward": true } ] } diff --git a/python/python-guestbook/skaffold.yaml b/python/python-guestbook/skaffold.yaml index 38a1b2fa8..0212e2d26 100644 --- a/python/python-guestbook/skaffold.yaml +++ b/python/python-guestbook/skaffold.yaml @@ -12,4 +12,7 @@ build: requires: - path: ./src/frontend - path: ./src/backend - \ No newline at end of file +profiles: +- name: cloudbuild + build: + googleCloudBuild: {} diff --git a/python/python-hello-world/.vscode/launch.json b/python/python-hello-world/.vscode/launch.json index f7ef555b7..555f61cde 100644 --- a/python/python-hello-world/.vscode/launch.json +++ b/python/python-hello-world/.vscode/launch.json @@ -12,6 +12,16 @@ "watch": true, "cleanUp": true, "portForward": true + }, + { + "name": "Run on Kubernetes - Cloud Build", + "profile": "cloudbuild", + "type": "cloudcode.kubernetes", + "request": "launch", + "skaffoldConfig": "${workspaceFolder}/skaffold.yaml", + "watch": true, + "cleanUp": true, + "portForward": true } ] } \ No newline at end of file