(ctx context.Context)
| 69 | } |
| 70 | |
| 71 | func MustStartupChFromCtx(ctx context.Context) chan<- struct{} { |
| 72 | val, err := StartupChFromCtx(ctx) |
| 73 | if err != nil { |
| 74 | panic(err.Error()) |
| 75 | } |
| 76 | |
| 77 | return val |
| 78 | } |
| 79 | |
| 80 | func KubeRESTClientFromCtx(ctx context.Context) (*rest.RESTClient, error) { |
| 81 | val := ctx.Value(CtxKeyKubeRESTClient) |