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

Feat: add definition crd #58

Merged
merged 1 commit into from
Mar 6, 2023
Merged

Feat: add definition crd #58

merged 1 commit into from
Mar 6, 2023

Conversation

FogDong
Copy link
Member

@FogDong FogDong commented Mar 3, 2023

Add definition crd. Currently only stores template and type in spec. In the long term, maybe we need to add verion in status.

@FogDong FogDong requested a review from Somefive as a code owner March 3, 2023 03:40
@codecov
Copy link

codecov bot commented Mar 3, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.01 🎉

Comparison is base (9ff31b2) 89.95% compared to head (ddf4805) 89.96%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #58      +/-   ##
==========================================
+ Coverage   89.95%   89.96%   +0.01%     
==========================================
  Files          60       61       +1     
  Lines        2060     2063       +3     
==========================================
+ Hits         1853     1856       +3     
  Misses        151      151              
  Partials       56       56              
Flag Coverage Δ
unit-test 89.96% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
apis/oam/v1alpha1/register.go 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor

@wonderflow wonderflow left a comment

Choose a reason for hiding this comment

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

we must provide a better name avoid make it too general

- additionalPrinterColumns:
- jsonPath: .spec.type
name: TYPE
type: string
Copy link
Contributor

Choose a reason for hiding this comment

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

please also omit the timestamp.

Copy link
Member Author

Choose a reason for hiding this comment

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

There is no timestamp in the spec, do you mean to omit the type?

Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com>
@FogDong FogDong merged commit 24722c2 into kubevela:main Mar 6, 2023
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

Successfully merging this pull request may close these issues.

None yet

3 participants