Commit 142f61b
authored
feat: add --set-secrets option to deploy command (GoogleCloudPlatform#734)
* feat: add --set-secrets option to deploy command
Add support for Secret Manager secrets in Agent Engine deployments:
- New --set-secrets option accepts ENV_VAR=SECRET_ID or ENV_VAR=SECRET_ID:VERSION
- Secrets displayed as [secret:ID:VERSION] in deployment logs
- Refactored parse_secrets to reuse parse_key_value_pairs
- Added format_env_value helper for consistent display
* fix: address code review feedback for secret parsing
- Check for colon existence before using rpartition in parse_secrets
- Add version key check in format_env_value to prevent KeyError
- Add type ignore comment for env_vars.update(secrets)1 parent 3734bd5 commit 142f61b
File tree
3 files changed
+1407
-3
lines changed- agent_starter_pack
- base_templates/typescript/.cloudbuild
- deployment_targets/agent_engine/python/{{cookiecutter.agent_directory}}/app_utils
- docs/design
3 files changed
+1407
-3
lines changedLines changed: 38 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
Lines changed: 33 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
82 | 102 | | |
83 | 103 | | |
84 | 104 | | |
| |||
219 | 239 | | |
220 | 240 | | |
221 | 241 | | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
222 | 247 | | |
223 | 248 | | |
224 | 249 | | |
| |||
279 | 304 | | |
280 | 305 | | |
281 | 306 | | |
| 307 | + | |
282 | 308 | | |
283 | 309 | | |
284 | 310 | | |
| |||
294 | 320 | | |
295 | 321 | | |
296 | 322 | | |
297 | | - | |
298 | | - | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
299 | 326 | | |
300 | 327 | | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
301 | 331 | | |
302 | 332 | | |
303 | 333 | | |
| |||
338 | 368 | | |
339 | 369 | | |
340 | 370 | | |
341 | | - | |
| 371 | + | |
342 | 372 | | |
343 | 373 | | |
344 | 374 | | |
| |||
0 commit comments