Skip to content
This repository has been archived by the owner on Jan 19, 2023. It is now read-only.

Only show preferred version of custom resources #1737

Merged
merged 8 commits into from
Dec 16, 2020

Conversation

bryanl
Copy link
Contributor

@bryanl bryanl commented Dec 14, 2020

Signed-off-by: bryanl [email protected]

What this PR does / why we need it:

When a CRD has multiple defined versions, they are all shown. This is
distracting and confusing for Octant users. Instead, only show the
preferred version, and if multiple versions exist, show them in the
summary for a custom resource.

Screen Shot 2020-12-14 at 3 15 05 PM

Screen Shot 2020-12-14 at 3 15 20 PM

Which issue(s) this PR fixes

Release note:

Only show preferred version of custom resources```

@bryanl bryanl requested a review from a team December 14, 2020 20:15
@bryanl bryanl self-assigned this Dec 14, 2020
@wwitzel3 wwitzel3 added this to In progress in 0.17 via automation Dec 15, 2020
@wwitzel3 wwitzel3 moved this from In progress to Review in progress in 0.17 Dec 15, 2020
0.17 automation moved this from Review in progress to Reviewer approved Dec 15, 2020
@wwitzel3
Copy link
Contributor

This looks good to me, @GuessWhoSamFoo if you have a moment to try it out, I'd like your feedback here as well.

0.17 automation moved this from Reviewer approved to Review in progress Dec 16, 2020
Copy link
Contributor

@wwitzel3 wwitzel3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I missed a thing, can you add a changelog entry for this. Thank you.

@bryanl bryanl force-pushed the preferred-custom-resource-version branch from ca60a72 to d717e2b Compare December 16, 2020 17:02
dependabot bot and others added 8 commits December 16, 2020 12:03
Signed-off-by: Milan Klanjsek <[email protected]>
When a CRD has multiple defined versions, they are all shown. This is
distracting and confusing for Octant users. Instead only show the
preferred version, and if multiple versions exist, show them in the
summary for a custom resource.

Signed-off-by: bryanl <[email protected]>
@bryanl bryanl force-pushed the preferred-custom-resource-version branch from d717e2b to ae257ae Compare December 16, 2020 17:03
@GuessWhoSamFoo
Copy link
Contributor

Something weird happened on the rebase, but the core changes look fine to me.

@wwitzel3 wwitzel3 self-requested a review December 16, 2020 18:37
0.17 automation moved this from Review in progress to Reviewer approved Dec 16, 2020
@bryanl bryanl merged commit dcb1018 into master Dec 16, 2020
0.17 automation moved this from Reviewer approved to Done Dec 16, 2020
@bryanl bryanl deleted the preferred-custom-resource-version branch December 16, 2020 18:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
No open projects
0.17
  
Done
Development

Successfully merging this pull request may close these issues.

Duplicate resources for CRDs with multiple conversionReviewVersions
4 participants