Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Support ServiceAccount relationships
Remove `RelationshipPodServiceAccount` as there isn't exactly a direct relationship between Pods & ServiceAccounts, but rather Pods and ServiceAccount tokens. Removing this would also make the command output cleaner when we run `kubectl-lineage serviceaccount $SERVICE_ACCOUNT_NAME` as we won't see the pod appearing twice in the output. If `RelationshipPodServiceAccount` wasn't removed: ```shell $ kubectl-lineage serviceaccount traefik -o wide NAME READY STATUS AGE RELATIONSHIPS ServiceAccount/traefik - 1d - ├─ Pod/traefik-XXXXXXXXX-XXXXX 1/1 Running 1d [PodServiceAccount] └── Secret/traefik-token-XXXXX - 1d [ServiceAccountSecret] └── Pod/traefik-XXXXXXXXX-XXXXX 1/1 Running 1d [PodVolume] ``` Now: ```shell $ kubectl-lineage serviceaccount traefik -o wide NAME READY STATUS AGE RELATIONSHIPS ServiceAccount/traefik - 1d - └── Secret/traefik-token-XXXXX - 1d [ServiceAccountSecret] └── Pod/traefik-XXXXXXXXX-XXXXX 1/1 Running 1d [PodVolume] ``` Signed-off-by: Justin Toh <tohjustin@hotmail.com>
- Loading branch information