-
Notifications
You must be signed in to change notification settings - Fork 858
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 short name velaapp for application CRD #3816
Conversation
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
Codecov Report
@@ Coverage Diff @@
## master #3816 +/- ##
==========================================
+ Coverage 63.91% 64.04% +0.13%
==========================================
Files 312 312
Lines 29530 29561 +31
==========================================
+ Hits 18874 18933 +59
+ Misses 8204 8182 -22
+ Partials 2452 2446 -6
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Please run make reviewable to fix the ci |
lgtm |
d6825cd
to
e4c6f69
Compare
@@ -82,7 +82,7 @@ type ApplicationSpec struct { | |||
// Application is the Schema for the applications API | |||
// +kubebuilder:storageversion | |||
// +kubebuilder:subresource:status | |||
// +kubebuilder:resource:categories={oam},shortName=app | |||
// +kubebuilder:resource:categories={oam},shortName={app,velaapp} |
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.
why the short name didn't change the CRD file? Does it really work?
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.
go mod tidy
git --no-pager diff
diff --git a/charts/vela-core/crds/core.oam.dev_applications.yaml b/charts/vela-core/crds/core.oam.dev_applications.yaml
index 9d4fc00..82aa353 100644
--- a/charts/vela-core/crds/core.oam.dev_applications.yaml
+++ b/charts/vela-core/crds/core.oam.dev_applications.yaml
@@ -27,7 +27,6 @@ spec:
plural: applications
shortNames:
- app
- - velaapp
singular: application
scope: Namespaced
versions:
diff --git a/charts/vela-minimal/crds/core.oam.dev_applications.yaml b/charts/vela-minimal/crds/core.oam.dev_applications.yaml
index 9d4fc00..82aa353 100644
--- a/charts/vela-minimal/crds/core.oam.dev_applications.yaml
+++ b/charts/vela-minimal/crds/core.oam.dev_applications.yaml
@@ -27,7 +27,6 @@ spec:
plural: applications
shortNames:
- app
- - velaapp
singular: application
scope: Namespaced
versions:
git diff --quiet || (echo `date +%H:%M:%S` [FAIL] please run 'make reviewable' to include all changes && false)
19:35:09 [FAIL] please run make reviewable to include all changes
make: *** [Makefile:57: check-diff] Error 1
This is the result of the last CI which confuse me. It seems that after I have changed the CRD, the CI report the err.
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.
do you run make reviewable
?
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.
the make reviewable
will invoke go generate to generate CRD with the help of controller runtime. If it removes the like in the CRD, maybe that's not take affect to write like that.
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.
have you tested locally, does it really work like this?
我发现了一个比较诡异的问题,我执行 |
有两处 Application spec 要改。 You need to change both v1alpha2 and v1beta1 for application spec. |
Signed-off-by: huangminjie <minjie.huang@daocloud.io>
e4c6f69
to
936da84
Compare
Description of your changes
Add short name velaapp for application CRD (#3797)
I have:
make reviewable
to ensure this PR is ready for review.backport release-x.y
labels to auto-backport this PR if necessary.How has this code been tested
Special notes for your reviewer
@wonderflow