Add shortNames to api resources

Signed-off-by: abhinav454 <43758739+abhinav454@users.noreply.github.com>
This commit is contained in:
abhinav454 2021-04-15 09:03:56 -04:00
parent e0e5672ef3
commit ae24285596
6 changed files with 9 additions and 0 deletions

View File

@ -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=""

View File

@ -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`

View File

@ -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=""

View File

@ -13,6 +13,8 @@ spec:
kind: GitRepository
listKind: GitRepositoryList
plural: gitrepositories
shortNames:
- gitrepo
singular: gitrepository
scope: Namespaced
versions:

View File

@ -13,6 +13,8 @@ spec:
kind: HelmChart
listKind: HelmChartList
plural: helmcharts
shortNames:
- hc
singular: helmchart
scope: Namespaced
versions:

View File

@ -13,6 +13,8 @@ spec:
kind: HelmRepository
listKind: HelmRepositoryList
plural: helmrepositories
shortNames:
- helmrepo
singular: helmrepository
scope: Namespaced
versions: