Skip to content

Commit

Permalink
Update launch.json defaults to include Cloud Build option (#1311)
Browse files Browse the repository at this point in the history
* Update launch.json defaults to include cloud build profile

* Update multi-artifact skaffold.yaml for cloud build profiles

---------

Co-authored-by: Max Randolph <[email protected]>
  • Loading branch information
maxrandolph and Max Randolph authored Nov 20, 2023
1 parent fca9025 commit 034d148
Show file tree
Hide file tree
Showing 17 changed files with 140 additions and 4 deletions.
10 changes: 10 additions & 0 deletions dotnet/dotnet-guestbook/.vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 4 additions & 1 deletion dotnet/dotnet-guestbook/skaffold.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@ build:
requires:
- path: ./src/frontend
- path: ./src/backend

profiles:
- name: cloudbuild
build:
googleCloudBuild: {}
10 changes: 10 additions & 0 deletions dotnet/dotnet-hello-world/.vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
10 changes: 10 additions & 0 deletions golang/go-guestbook/.vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
]
}
5 changes: 4 additions & 1 deletion golang/go-guestbook/skaffold.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@ build:
requires:
- path: ./src/frontend
- path: ./src/backend

profiles:
- name: cloudbuild
build:
googleCloudBuild: {}
10 changes: 10 additions & 0 deletions golang/go-hello-world/.vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
10 changes: 10 additions & 0 deletions java/java-guestbook/.vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
]
}
5 changes: 4 additions & 1 deletion java/java-guestbook/skaffold.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@ build:
requires:
- path: ./frontend
- path: ./backend

profiles:
- name: cloudbuild
build:
googleCloudBuild: {}
10 changes: 10 additions & 0 deletions java/java-hello-world/.vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
]
}
Expand Down
10 changes: 10 additions & 0 deletions nodejs/nodejs-guestbook/.vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
]
}
4 changes: 4 additions & 0 deletions nodejs/nodejs-guestbook/skaffold.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ build:
requires:
- path: ./src/frontend
- path: ./src/backend
profiles:
- name: cloudbuild
build:
googleCloudBuild: {}
10 changes: 10 additions & 0 deletions nodejs/nodejs-hello-world/.vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
]
}
10 changes: 10 additions & 0 deletions python/django/python-guestbook/.vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
]
}
10 changes: 10 additions & 0 deletions python/django/python-hello-world/.vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
]
}
10 changes: 10 additions & 0 deletions python/python-guestbook/.vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
]
}
5 changes: 4 additions & 1 deletion python/python-guestbook/skaffold.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@ build:
requires:
- path: ./src/frontend
- path: ./src/backend

profiles:
- name: cloudbuild
build:
googleCloudBuild: {}
10 changes: 10 additions & 0 deletions python/python-hello-world/.vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
]
}

0 comments on commit 034d148

Please sign in to comment.