Skip to content

Commit 034d148

Browse files
maxrandolphMax Randolph
andauthored
Update launch.json defaults to include Cloud Build option (GoogleCloudPlatform#1311)
* Update launch.json defaults to include cloud build profile * Update multi-artifact skaffold.yaml for cloud build profiles --------- Co-authored-by: Max Randolph <maxrandolph@google.com>
1 parent fca9025 commit 034d148

17 files changed

Lines changed: 140 additions & 4 deletions

File tree

dotnet/dotnet-guestbook/.vscode/launch.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,16 @@
1313
"cleanUp": true,
1414
"portForward": true
1515
},
16+
{
17+
"name": "Run on Kubernetes - Cloud Build",
18+
"profile": "cloudbuild",
19+
"type": "cloudcode.kubernetes",
20+
"request": "launch",
21+
"skaffoldConfig": "${workspaceFolder}/skaffold.yaml",
22+
"watch": true,
23+
"cleanUp": true,
24+
"portForward": true
25+
},
1626
{
1727
"name": "Attach to Kubernetes pod (frontend)",
1828
"type": "cloudcode.kubernetes",

dotnet/dotnet-guestbook/skaffold.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,7 @@ build:
1212
requires:
1313
- path: ./src/frontend
1414
- path: ./src/backend
15-
15+
profiles:
16+
- name: cloudbuild
17+
build:
18+
googleCloudBuild: {}

dotnet/dotnet-hello-world/.vscode/launch.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,16 @@
1313
"cleanUp": true,
1414
"portForward": true
1515
},
16+
{
17+
"name": "Run on Kubernetes - Cloud Build",
18+
"profile": "cloudbuild",
19+
"type": "cloudcode.kubernetes",
20+
"request": "launch",
21+
"skaffoldConfig": "${workspaceFolder}/skaffold.yaml",
22+
"watch": true,
23+
"cleanUp": true,
24+
"portForward": true
25+
},
1626
{
1727
"name": "Attach to Kubernetes pod",
1828
"type": "cloudcode.kubernetes",

golang/go-guestbook/.vscode/launch.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@
99
"watch": true,
1010
"cleanUp": true,
1111
"portForward": true
12+
},
13+
{
14+
"name": "Run on Kubernetes - Cloud Build",
15+
"profile": "cloudbuild",
16+
"type": "cloudcode.kubernetes",
17+
"request": "launch",
18+
"skaffoldConfig": "${workspaceFolder}/skaffold.yaml",
19+
"watch": true,
20+
"cleanUp": true,
21+
"portForward": true
1222
}
1323
]
1424
}

golang/go-guestbook/skaffold.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,7 @@ build:
1212
requires:
1313
- path: ./src/frontend
1414
- path: ./src/backend
15-
15+
profiles:
16+
- name: cloudbuild
17+
build:
18+
googleCloudBuild: {}

golang/go-hello-world/.vscode/launch.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,16 @@
1010
"cleanUp": true,
1111
"portForward": true
1212
},
13+
{
14+
"name": "Run on Kubernetes - Cloud Build",
15+
"profile": "cloudbuild",
16+
"type": "cloudcode.kubernetes",
17+
"request": "launch",
18+
"skaffoldConfig": "${workspaceFolder}/skaffold.yaml",
19+
"watch": true,
20+
"cleanUp": true,
21+
"portForward": true
22+
},
1323
{
1424
"type": "go",
1525
"request": "launch",

java/java-guestbook/.vscode/launch.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,16 @@
1313
"watch": true,
1414
"cleanUp": true,
1515
"portForward": true
16+
},
17+
{
18+
"name": "Run on Kubernetes - Cloud Build",
19+
"type": "cloudcode.kubernetes",
20+
"request": "launch",
21+
"skaffoldConfig": "${workspaceFolder}/skaffold.yaml",
22+
"profile": "cloudbuild",
23+
"watch": true,
24+
"cleanUp": true,
25+
"portForward": true
1626
}
1727
]
1828
}

java/java-guestbook/skaffold.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,7 @@ build:
1212
requires:
1313
- path: ./frontend
1414
- path: ./backend
15-
15+
profiles:
16+
- name: cloudbuild
17+
build:
18+
googleCloudBuild: {}

java/java-hello-world/.vscode/launch.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,16 @@
1313
"watch": true,
1414
"cleanUp": true,
1515
"portForward": true
16+
},
17+
{
18+
"name": "Run on Kubernetes - Cloud Build",
19+
"type": "cloudcode.kubernetes",
20+
"request": "launch",
21+
"skaffoldConfig": "${workspaceFolder}/skaffold.yaml",
22+
"profile": "cloudbuild",
23+
"watch": true,
24+
"cleanUp": true,
25+
"portForward": true
1626
}
1727
]
1828
}

nodejs/nodejs-guestbook/.vscode/launch.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@
99
"watch": true,
1010
"cleanUp": true,
1111
"portForward": true
12+
},
13+
{
14+
"name": "Run on Kubernetes - Cloud Build",
15+
"profile": "cloudbuild",
16+
"type": "cloudcode.kubernetes",
17+
"request": "launch",
18+
"skaffoldConfig": "${workspaceFolder}/skaffold.yaml",
19+
"watch": true,
20+
"cleanUp": true,
21+
"portForward": true
1222
}
1323
]
1424
}

0 commit comments

Comments
 (0)