Commit 727dbd8
committed
support bare resource names, don't require explicitly specifying deployment, statefulset, daemonset
We allow users to pass just a bare resource name, searching the resource
controllers for it in this priority:
1. deployment
2. statefulset
3. daemonset
This priority maps to the common ones used in Segment by application
developers, as opposed to infrastructure engineers who focus more on
daemonsets.1 parent 0e7a458 commit 727dbd8
3 files changed
+455
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
249 | | - | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
250 | 274 | | |
251 | 275 | | |
252 | 276 | | |
| |||
0 commit comments