Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate tree items, if a resource has two owners. #61

Open
guettli opened this issue Aug 14, 2023 · 1 comment
Open

Duplicate tree items, if a resource has two owners. #61

guettli opened this issue Aug 14, 2023 · 1 comment

Comments

@guettli
Copy link

guettli commented Aug 14, 2023

One of my child CRDs has two ownerRefs.

Unfortunately this results in a duplication:

NAMESPACE  NAME                                                                          READY  REASON  AGE
cluster    ClusterStack/clusterstack                                                     -              24m
cluster    ├─ClusterStackRelease/hellopa-apalla-1-26-v6                                  True           24m
cluster    │ └─HellopaClusterStackRelease/hellopa-apalla-1-26-v6                         -              24m
cluster    │   ├─HellopaNodeImageRelease/hellopa-apalla-1-26-controlplaneamd64hcloud-v5  -              24m
cluster    │   └─HellopaNodeImageRelease/hellopa-apalla-1-26-workeramd64hcloud-v5        -              24m
cluster    └─HellopaClusterStackRelease/hellopa-apalla-1-26-v6                           -              24m
cluster      ├─HellopaNodeImageRelease/hellopa-apalla-1-26-controlplaneamd64hcloud-v5    -              24m
cluster      └─HellopaNodeImageRelease/hellopa-apalla-1-26-workeramd64hcloud-v5          -              24m

HellopaClusterStackRelease/hellopa-apalla-1-26-v6 and the two children are twice in the tree.

The tool linage does not duplicate the children of this object:

k lineage -n cluster --exclude-types events clusterstacks clusterstack

NAME                                                                                 READY   STATUS   AGE
ClusterStack/clusterstack                                                            -                27m
├── ClusterStackRelease/hellopa-apalla-1-26-v6                                       True             27m
│   └── HellopaClusterStackRelease/hellopa-apalla-1-26-v6                            -                27m
│       ├── HellopaNodeImageRelease/hellopa-apalla-1-26-controlplaneamd64hcloud-v5   -                27m
│       └── HellopaNodeImageRelease/hellopa-apalla-1-26-workeramd64hcloud-v5         -                27m
└── HellopaClusterStackRelease/hellopa-apalla-1-26-v6                                -                27m

i think it is better to not show the children twice.

@ahmetb
Copy link
Owner

ahmetb commented Aug 15, 2023

i think it is better to not show the children twice.

In my use cases, it's better to show twice as I use this tool to debug ownership references. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants