k9s/internal/view
jfremy-openai f957fd6739
fetchContainers(allContainers=false) returns sidecars and ephemeral (#3415)
Issue: when calling exec / attach on a pod with sidecar containers or ephemeral containers, those are not presented as potential targets to exec / attach / transfer.

Proposed solution: the method fetchContainers is only called with allContainers=false to find containers we can exec / attach / transfer.
Both ephemeral containers and sidecar init containers could be used in this case however with the current behavior they're not shown.

I'm proposing to change the behavior of the method to return any sidecar container and ephemeral container when called with allContainers=false since there is no other caller using that parameter set to false, so we won't break other call sites
2025-06-28 08:54:26 -06:00
..
cmd Rel v0.50.5 (#3332) 2025-05-07 23:22:01 -06:00
testdata
actions.go Rel v0.50.5 (#3332) 2025-05-07 23:22:01 -06:00
actions_test.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
alias.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
alias_test.go Rel v0.50.4 (#3293) 2025-04-19 12:07:10 -06:00
app.go Rel v0.50.1 - HotFix ;( (#3263) 2025-04-09 23:58:37 -06:00
app_test.go Rel v0.50.1 - HotFix ;( (#3263) 2025-04-09 23:58:37 -06:00
benchmark.go Rel v0.50.3 (#3276) 2025-04-13 18:25:04 -06:00
browser.go Rel v0.50.4 (#3293) 2025-04-19 12:07:10 -06:00
cluster_info.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
cm.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
cm_test.go Rel v0.50.1 - HotFix ;( (#3263) 2025-04-09 23:58:37 -06:00
command.go Rel v0.50.4 (#3293) 2025-04-19 12:07:10 -06:00
command_test.go Rel v0.50.1 - HotFix ;( (#3263) 2025-04-09 23:58:37 -06:00
container.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
container_test.go Rel v0.50.1 - HotFix ;( (#3263) 2025-04-09 23:58:37 -06:00
context.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
context_test.go Rel v0.50.1 - HotFix ;( (#3263) 2025-04-09 23:58:37 -06:00
cow.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
crd.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
cronjob.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
details.go Rel v0.50.4 (#3293) 2025-04-19 12:07:10 -06:00
dir.go Rel v0.50.3 (#3276) 2025-04-13 18:25:04 -06:00
dir_int_test.go Clean up items... (#2303) 2023-11-19 08:43:39 -07:00
dir_test.go Rel v0.50.1 - HotFix ;( (#3263) 2025-04-09 23:58:37 -06:00
dp.go show replicasets from deployment view (#3308) 2025-05-01 05:28:13 -06:00
dp_test.go show replicasets from deployment view (#3308) 2025-05-01 05:28:13 -06:00
drain_dialog.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
ds.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
ds_test.go Rel v0.50.1 - HotFix ;( (#3263) 2025-04-09 23:58:37 -06:00
env.go Rel v0.40.11 (#3239) 2025-03-30 11:42:45 -06:00
env_test.go Clean up items... (#2303) 2023-11-19 08:43:39 -07:00
event.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
exec.go feat: add hostPathVolume (docker) (#3277) 2025-04-19 09:27:05 -06:00
group.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
helm_chart.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
helm_history.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
help.go Rel v0.50.4 (#3293) 2025-04-19 12:07:10 -06:00
help_test.go Rel v0.50.1 - HotFix ;( (#3263) 2025-04-09 23:58:37 -06:00
helpers.go show replicasets from deployment view (#3308) 2025-05-01 05:28:13 -06:00
helpers_test.go Rel v0.50.1 - HotFix ;( (#3263) 2025-04-09 23:58:37 -06:00
image_extender.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
img_scan.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
job.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
live_view.go Rel v0.50.4 (#3293) 2025-04-19 12:07:10 -06:00
live_view_test.go Rel v0.50.1 - HotFix ;( (#3263) 2025-04-09 23:58:37 -06:00
log.go Rel v0.50.4 (#3293) 2025-04-19 12:07:10 -06:00
log_indicator.go Feature/DisableAutoscroll (#2865) 2025-02-15 17:36:15 -07:00
log_indicator_test.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
log_int_test.go Rel v0.50.1 - HotFix ;( (#3263) 2025-04-09 23:58:37 -06:00
log_test.go Rel v0.50.1 - HotFix ;( (#3263) 2025-04-09 23:58:37 -06:00
logger.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
logs_extender.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
node.go Rel v0.50.4 (#3293) 2025-04-19 12:07:10 -06:00
ns.go Rel v0.50.1 - HotFix ;( (#3263) 2025-04-09 23:58:37 -06:00
ns_test.go Rel v0.50.1 - HotFix ;( (#3263) 2025-04-09 23:58:37 -06:00
owner_extender.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
page_stack.go Rel v0.40.11 (#3239) 2025-03-30 11:42:45 -06:00
pf.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
pf_dialog.go Rel v0.50.3 (#3276) 2025-04-13 18:25:04 -06:00
pf_dialog_test.go Clean up items... (#2303) 2023-11-19 08:43:39 -07:00
pf_extender.go Rel v0.50.5 (#3332) 2025-05-07 23:22:01 -06:00
pf_extender_test.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
pf_test.go Rel v0.50.1 - HotFix ;( (#3263) 2025-04-09 23:58:37 -06:00
picker.go Rel v0.50.4 (#3293) 2025-04-19 12:07:10 -06:00
pod.go fetchContainers(allContainers=false) returns sidecars and ephemeral (#3415) 2025-06-28 08:54:26 -06:00
pod_int_test.go Rel v0.50.3 (#3276) 2025-04-13 18:25:04 -06:00
pod_test.go Rel v0.50.1 - HotFix ;( (#3263) 2025-04-09 23:58:37 -06:00
policy.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
priorityclass.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
priorityclass_test.go Rel v0.50.1 - HotFix ;( (#3263) 2025-04-09 23:58:37 -06:00
pulse.go Rel v0.50.5 (#3332) 2025-05-07 23:22:01 -06:00
pvc.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
pvc_test.go Rel v0.50.1 - HotFix ;( (#3263) 2025-04-09 23:58:37 -06:00
rbac.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
rbac_test.go Rel v0.50.1 - HotFix ;( (#3263) 2025-04-09 23:58:37 -06:00
reference.go Rel v0.50.1 - HotFix ;( (#3263) 2025-04-09 23:58:37 -06:00
reference_test.go Rel v0.50.1 - HotFix ;( (#3263) 2025-04-09 23:58:37 -06:00
registrar.go Rel v0.50.2 (#3269) 2025-04-10 09:29:21 -06:00
restart_extender.go Rel v0.50.4 (#3293) 2025-04-19 12:07:10 -06:00
rs.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
sa.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
scale_extender.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
screen_dump.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
screen_dump_test.go Rel v0.50.1 - HotFix ;( (#3263) 2025-04-09 23:58:37 -06:00
secret.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
secret_test.go Rel v0.50.1 - HotFix ;( (#3263) 2025-04-09 23:58:37 -06:00
sts.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
sts_test.go Rel v0.50.1 - HotFix ;( (#3263) 2025-04-09 23:58:37 -06:00
svc.go Rel v0.50.4 (#3293) 2025-04-19 12:07:10 -06:00
svc_test.go Rel v0.50.1 - HotFix ;( (#3263) 2025-04-09 23:58:37 -06:00
table.go Rel v0.50.3 (#3276) 2025-04-13 18:25:04 -06:00
table_helper.go Rel v0.50.3 (#3276) 2025-04-13 18:25:04 -06:00
table_int_test.go Rel v0.50.4 (#3293) 2025-04-19 12:07:10 -06:00
types.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
user.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
value_extender.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
vul_extender.go Rel v0.50.2 (#3269) 2025-04-10 09:29:21 -06:00
workload.go Rel v0.50.4 (#3293) 2025-04-19 12:07:10 -06:00
xray.go Rel v0.50.4 (#3293) 2025-04-19 12:07:10 -06:00
yaml.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
yaml_test.go fix: Avoid false positive matches in enableRegion (#3093) (#3140) 2025-02-23 18:12:18 -07:00