What a `kubectl apply -f -` reading the pipe deploys. */
| 1671 | |
| 1672 | /* What a `kubectl apply -f -` reading the pipe deploys. */ |
| 1673 | static void sh_deploy_src(sh_t *s, TSNode cmd, const sh_src_t *src) { |
| 1674 | if (!src || src->kind == SH_SRC_NONE || !src->v) { |
| 1675 | return; |
| 1676 | } |
| 1677 | if (src->kind == SH_SRC_CHART) { |
| 1678 | sh_chart(s, cmd, src->v); |
| 1679 | return; |
| 1680 | } |
| 1681 | sh_targets_t ts = {0}; |
| 1682 | sh_targets_of(s, src->v, sh_t_kust, NULL, &ts); |
| 1683 | sh_hit_all(s, cmd, src->via, &ts, false); |
| 1684 | cbm_free(CBM_MEM_CLASS_OTHER, ts.items); |
| 1685 | } |
| 1686 | |
| 1687 | /* find DIR [-type f] [-name G] [-maxdepth N] -exec kubectl apply -f {} \; */ |
| 1688 | static void sh_find(sh_t *s, TSNode cmd, const sh_argv_t *a, int prog) { |
no test coverage detected