mirror of https://github.com/kubevela/kubevela.git
Feat: Add short name velaapp for application CRD (#3816)
Signed-off-by: huangminjie <minjie.huang@daocloud.io>
This commit is contained in:
parent
877ab3909d
commit
d25676a68e
|
@ -87,7 +87,7 @@ type ApplicationSpec struct {
|
||||||
|
|
||||||
// Application is the Schema for the applications API
|
// Application is the Schema for the applications API
|
||||||
// +kubebuilder:object:root=true
|
// +kubebuilder:object:root=true
|
||||||
// +kubebuilder:resource:categories={oam},shortName=app
|
// +kubebuilder:resource:categories={oam},shortName={app,velaapp}
|
||||||
// +kubebuilder:subresource:status
|
// +kubebuilder:subresource:status
|
||||||
// +kubebuilder:printcolumn:name="COMPONENT",type=string,JSONPath=`.spec.components[*].name`
|
// +kubebuilder:printcolumn:name="COMPONENT",type=string,JSONPath=`.spec.components[*].name`
|
||||||
// +kubebuilder:printcolumn:name="TYPE",type=string,JSONPath=`.spec.components[*].type`
|
// +kubebuilder:printcolumn:name="TYPE",type=string,JSONPath=`.spec.components[*].type`
|
||||||
|
|
|
@ -82,7 +82,7 @@ type ApplicationSpec struct {
|
||||||
// Application is the Schema for the applications API
|
// Application is the Schema for the applications API
|
||||||
// +kubebuilder:storageversion
|
// +kubebuilder:storageversion
|
||||||
// +kubebuilder:subresource:status
|
// +kubebuilder:subresource:status
|
||||||
// +kubebuilder:resource:categories={oam},shortName=app
|
// +kubebuilder:resource:categories={oam},shortName={app,velaapp}
|
||||||
// +kubebuilder:printcolumn:name="COMPONENT",type=string,JSONPath=`.spec.components[*].name`
|
// +kubebuilder:printcolumn:name="COMPONENT",type=string,JSONPath=`.spec.components[*].name`
|
||||||
// +kubebuilder:printcolumn:name="TYPE",type=string,JSONPath=`.spec.components[*].type`
|
// +kubebuilder:printcolumn:name="TYPE",type=string,JSONPath=`.spec.components[*].type`
|
||||||
// +kubebuilder:printcolumn:name="PHASE",type=string,JSONPath=`.status.status`
|
// +kubebuilder:printcolumn:name="PHASE",type=string,JSONPath=`.status.status`
|
||||||
|
|
|
@ -27,6 +27,7 @@ spec:
|
||||||
plural: applications
|
plural: applications
|
||||||
shortNames:
|
shortNames:
|
||||||
- app
|
- app
|
||||||
|
- velaapp
|
||||||
singular: application
|
singular: application
|
||||||
scope: Namespaced
|
scope: Namespaced
|
||||||
versions:
|
versions:
|
||||||
|
|
|
@ -27,6 +27,7 @@ spec:
|
||||||
plural: applications
|
plural: applications
|
||||||
shortNames:
|
shortNames:
|
||||||
- app
|
- app
|
||||||
|
- velaapp
|
||||||
singular: application
|
singular: application
|
||||||
scope: Namespaced
|
scope: Namespaced
|
||||||
versions:
|
versions:
|
||||||
|
|
|
@ -16,6 +16,7 @@ spec:
|
||||||
plural: applications
|
plural: applications
|
||||||
shortNames:
|
shortNames:
|
||||||
- app
|
- app
|
||||||
|
- velaapp
|
||||||
singular: application
|
singular: application
|
||||||
scope: Namespaced
|
scope: Namespaced
|
||||||
versions:
|
versions:
|
||||||
|
|
Loading…
Reference in New Issue