Commit d44d269
Observability Onboarding Improvements (#81)
### Description
Addresses a few potential issues in the observability onboarding process
### Changes
- Clarify that `gcloud` is a prerequisite
- Explicitly pass `project_id`, since the automatic discovery was
causing the tool to exit early in a way that didn't communicate the
error to the user
- Handle when the `pool` is in a `DELETED` state (by
[undeleting](https://cloud.google.com/sdk/gcloud/reference/iam/workload-identity-pools/providers/undelete)
it)
- Handle when the `provider` is in a `DELETED` state (by
[undeleting](https://cloud.google.com/sdk/gcloud/reference/iam/workload-identity-pools/undelete)
it)
### Testing
Tested a missing `project_id` input:
```
leehagoodjames@mac ➜ run-gemini-cli git:(observability-docs) ./scripts/setup_workload_identity.sh --repo google-gemini/logo-maker
❌ GCP project is required. Use --project PROJECT_ID
💡 To find your project name:
1. Go to your GCP console
2. The URL shows: https://pantheon.corp.google.com/welcome?project=PROJECT_ID
Use --help for usage information.
```
Tested with the logo-maker project, which updated the `pool` and
`provider` from a `DELETED` status to `ACTIVE`
---------
Signed-off-by: Lee James <40045512+leehagoodjames@users.noreply.github.com>
Co-authored-by: 8bitmp3 <19637339+8bitmp3@users.noreply.github.com>1 parent 179ca6c commit d44d269
2 files changed
Lines changed: 67 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
42 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
69 | 70 | | |
70 | 71 | | |
71 | | - | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
138 | 148 | | |
139 | 149 | | |
140 | 150 | | |
| |||
226 | 236 | | |
227 | 237 | | |
228 | 238 | | |
229 | | - | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
230 | 263 | | |
231 | 264 | | |
232 | 265 | | |
| |||
254 | 287 | | |
255 | 288 | | |
256 | 289 | | |
257 | | - | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
258 | 316 | | |
259 | 317 | | |
260 | 318 | | |
| |||
0 commit comments