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
|
||||
// +kubebuilder:object:root=true
|
||||
// +kubebuilder:resource:categories={oam},shortName=app
|
||||
// +kubebuilder:resource:categories={oam},shortName={app,velaapp}
|
||||
// +kubebuilder:subresource:status
|
||||
// +kubebuilder:printcolumn:name="COMPONENT",type=string,JSONPath=`.spec.components[*].name`
|
||||
// +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
|
||||
// +kubebuilder:storageversion
|
||||
// +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="TYPE",type=string,JSONPath=`.spec.components[*].type`
|
||||
// +kubebuilder:printcolumn:name="PHASE",type=string,JSONPath=`.status.status`
|
||||
|
|
|
@ -27,6 +27,7 @@ spec:
|
|||
plural: applications
|
||||
shortNames:
|
||||
- app
|
||||
- velaapp
|
||||
singular: application
|
||||
scope: Namespaced
|
||||
versions:
|
||||
|
|
|
@ -27,6 +27,7 @@ spec:
|
|||
plural: applications
|
||||
shortNames:
|
||||
- app
|
||||
- velaapp
|
||||
singular: application
|
||||
scope: Namespaced
|
||||
versions:
|
||||
|
|
|
@ -16,6 +16,7 @@ spec:
|
|||
plural: applications
|
||||
shortNames:
|
||||
- app
|
||||
- velaapp
|
||||
singular: application
|
||||
scope: Namespaced
|
||||
versions:
|
||||
|
|
Loading…
Reference in New Issue