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 bryanliles@gmail.com

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
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.

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
Bumps [actions/setup-node](https://github.com/actions/setup-node) from v2.1.2 to v2.1.3.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](actions/setup-node@v2.1.2...27082ce)

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Milan Klanjsek <mklanjsek@pivotal.io>
Signed-off-by: Milan Klanjsek <mklanjsek@pivotal.io>
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 <bryanliles@gmail.com>
@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
@bryanl bryanl merged commit dcb1018 into master 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
None yet
Development

Successfully merging this pull request may close these issues.

Duplicate resources for CRDs with multiple conversionReviewVersions
4 participants