
Describe the bug
Try to view deployment yaml crashes k9s while using custom views.yaml (see code below at additional information).
To Reproduce
Steps to reproduce the behavior:
- Go to 'deployments'
- Press Y to view YAML
- Boom!! cannot deep copy int
Expected behavior
It seems to be the same issue as in #3620
But it applies to deployments instead of pods. The Pod version below works fine, doing the same with deployments it breaks.
Versions (please complete the following information):
- OS: MacOS 26.1
- K9s: 0.50.16
- K8s: any
Additional context
Breaks deployment yaml view:
views:
apps/v1/deployments:
columns:
- NAMESPACE
- NAME
- IMAGE:.spec.template.spec.containers[].image|split("/")|[.[-2] // empty, .[-1]]|join("/")|split(":")|.[0]|W
- VERSION:.spec.template.spec.containers[].image|split("/").[-1]|split(":")|.[1]|W
Works just fine for pods
views:
v1/pods:
columns:
- NAMESPACE
- NAME
- IMAGE:.spec.containers[].image|split("/")|[.[-2] // empty, .[-1]]|join("/")|split(":")|.[0]|W
- VERSION:.spec.containers[].image|split("/").[-1]|split(":")|.[1]|W
Describe the bug
Try to view deployment yaml crashes k9s while using custom views.yaml (see code below at additional information).
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It seems to be the same issue as in #3620
But it applies to deployments instead of pods. The Pod version below works fine, doing the same with deployments it breaks.
Versions (please complete the following information):
Additional context
Breaks deployment yaml view:
Works just fine for pods