Add shortNames to api resources
Signed-off-by: abhinav454 <43758739+abhinav454@users.noreply.github.com>
This commit is contained in:
parent
e0e5672ef3
commit
ae24285596
|
@ -211,6 +211,7 @@ func (in *GitRepository) GetInterval() metav1.Duration {
|
|||
// +genclient
|
||||
// +genclient:Namespaced
|
||||
// +kubebuilder:object:root=true
|
||||
// +kubebuilder:resource:shortName=gitrepo
|
||||
// +kubebuilder:subresource:status
|
||||
// +kubebuilder:printcolumn:name="URL",type=string,JSONPath=`.spec.url`
|
||||
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].status",description=""
|
||||
|
|
|
@ -171,6 +171,7 @@ func (in *HelmChart) GetInterval() metav1.Duration {
|
|||
// +genclient
|
||||
// +genclient:Namespaced
|
||||
// +kubebuilder:object:root=true
|
||||
// +kubebuilder:resource:shortName=hc
|
||||
// +kubebuilder:subresource:status
|
||||
// +kubebuilder:printcolumn:name="Chart",type=string,JSONPath=`.spec.chart`
|
||||
// +kubebuilder:printcolumn:name="Version",type=string,JSONPath=`.spec.version`
|
||||
|
|
|
@ -150,6 +150,7 @@ func (in *HelmRepository) GetInterval() metav1.Duration {
|
|||
// +genclient
|
||||
// +genclient:Namespaced
|
||||
// +kubebuilder:object:root=true
|
||||
// +kubebuilder:resource:shortName=helmrepo
|
||||
// +kubebuilder:subresource:status
|
||||
// +kubebuilder:printcolumn:name="URL",type=string,JSONPath=`.spec.url`
|
||||
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].status",description=""
|
||||
|
|
|
@ -13,6 +13,8 @@ spec:
|
|||
kind: GitRepository
|
||||
listKind: GitRepositoryList
|
||||
plural: gitrepositories
|
||||
shortNames:
|
||||
- gitrepo
|
||||
singular: gitrepository
|
||||
scope: Namespaced
|
||||
versions:
|
||||
|
|
|
@ -13,6 +13,8 @@ spec:
|
|||
kind: HelmChart
|
||||
listKind: HelmChartList
|
||||
plural: helmcharts
|
||||
shortNames:
|
||||
- hc
|
||||
singular: helmchart
|
||||
scope: Namespaced
|
||||
versions:
|
||||
|
|
|
@ -13,6 +13,8 @@ spec:
|
|||
kind: HelmRepository
|
||||
listKind: HelmRepositoryList
|
||||
plural: helmrepositories
|
||||
shortNames:
|
||||
- helmrepo
|
||||
singular: helmrepository
|
||||
scope: Namespaced
|
||||
versions:
|
||||
|
|
Loading…
Reference in New Issue