-
Notifications
You must be signed in to change notification settings - Fork 192
Add core.tanzu.vmware.com/v1alpha2 Capability resource #3836
Add core.tanzu.vmware.com/v1alpha2 Capability resource #3836
Conversation
Codecov Report
@@ Coverage Diff @@
## main #3836 +/- ##
==========================================
- Coverage 46.57% 45.68% -0.89%
==========================================
Files 401 426 +25
Lines 40130 41688 +1558
==========================================
+ Hits 18692 19047 +355
- Misses 19724 20909 +1185
- Partials 1714 1732 +18
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pretty straightforward. LGTM.
@@ -326,6 +326,321 @@ spec: | |||
- results | |||
type: object | |||
type: object | |||
served: false | |||
storage: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question: Just wanna double check that we only want v1alpha2 to be served and stored, correct ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
API group needs bumping because of the new incoming FeatureGate API changes, which means Capability resource should be at v1alpha2 as well. This commit does the following: * Adds new v1alpha2 Capability types which are identical to v1alpha1 types. * Updates CRD manifest with the new version. The v1alpha1 version is no longer served and v1alpha2 is set as the storage version. Since the types are identical and we don't serve v1alpha1 anymore, we don't need a conversion webhook. The controller just reads all existing v1alpha1 resources and writes it back in the new storage version v1alpha2. * Changes capability controller to work on v1alpha2 types. * Updates docs.
3287086
to
39f022b
Compare
API group needs bumping because of the new incoming FeatureGate API changes, which means Capability resource should be at v1alpha2 as well. This commit does the following: * Adds new v1alpha2 Capability types which are identical to v1alpha1 types. * Updates CRD manifest with the new version. The v1alpha1 version is no longer served and v1alpha2 is set as the storage version. Since the types are identical and we don't serve v1alpha1 anymore, we don't need a conversion webhook. The controller just reads all existing v1alpha1 resources and writes it back in the new storage version v1alpha2. * Changes capability controller to work on v1alpha2 types. * Updates docs.
API group needs bumping because of the new incoming FeatureGate API changes, which means Capability resource should be at v1alpha2 as well. This commit does the following: * Adds new v1alpha2 Capability types which are identical to v1alpha1 types. * Updates CRD manifest with the new version. The v1alpha1 version is no longer served and v1alpha2 is set as the storage version. Since the types are identical and we don't serve v1alpha1 anymore, we don't need a conversion webhook. The controller just reads all existing v1alpha1 resources and writes it back in the new storage version v1alpha2. * Changes capability controller to work on v1alpha2 types. * Updates docs.
What this PR does / why we need it
API group needs bumping because of the new incoming FeatureGate API changes, which means Capability resource should be at v1alpha2 as well.
This commit does the following:
Which issue(s) this PR fixes
Fixes #3835
Describe testing done for PR
Release note
Additional information
Special notes for your reviewer