Skip to content

Commit

Permalink
Merge pull request konflux-ci#299 from johnbieren/rel711
Browse files Browse the repository at this point in the history
feat(RHTAPREL-711): add shortnames to CRDs
  • Loading branch information
johnbieren authored Nov 14, 2023
2 parents 9bf5bb7 + 18e2775 commit 9eb7793
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/v1alpha1/release_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ type ValidationInfo struct {
}

// +kubebuilder:object:root=true
// +kubebuilder:resource:shortName=rel
// +kubebuilder:subresource:status
// +kubebuilder:printcolumn:name="Snapshot",type=string,JSONPath=`.spec.snapshot`
// +kubebuilder:printcolumn:name="ReleasePlan",type=string,JSONPath=`.spec.releasePlan`
Expand Down
1 change: 1 addition & 0 deletions api/v1alpha1/releaseplan_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ type ReleasePlanStatus struct {
}

// +kubebuilder:object:root=true
// +kubebuilder:resource:shortName=rp
// +kubebuilder:subresource:status
// +kubebuilder:printcolumn:name="Application",type=string,JSONPath=`.spec.application`
// +kubebuilder:printcolumn:name="Target",type=string,JSONPath=`.spec.target`
Expand Down
1 change: 1 addition & 0 deletions api/v1alpha1/releaseplanadmission_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ type ReleasePlanAdmissionStatus struct {
}

// +kubebuilder:object:root=true
// +kubebuilder:resource:shortName=rpa
// +kubebuilder:subresource:status
// +kubebuilder:printcolumn:name="Environment",type=string,JSONPath=`.spec.environment`
// +kubebuilder:printcolumn:name="Origin",type=string,JSONPath=`.spec.origin`
Expand Down
1 change: 1 addition & 0 deletions api/v1alpha1/releaseserviceconfig_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ type ReleaseServiceConfigStatus struct {
}

//+kubebuilder:object:root=true
//+kubebuilder:resource:shortName=rsc
//+kubebuilder:subresource:status

// ReleaseServiceConfig is the Schema for the releaseserviceconfigs API
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ spec:
kind: ReleasePlanAdmission
listKind: ReleasePlanAdmissionList
plural: releaseplanadmissions
shortNames:
- rpa
singular: releaseplanadmission
scope: Namespaced
versions:
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/appstudio.redhat.com_releaseplans.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ spec:
kind: ReleasePlan
listKind: ReleasePlanList
plural: releaseplans
shortNames:
- rp
singular: releaseplan
scope: Namespaced
versions:
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/appstudio.redhat.com_releases.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ spec:
kind: Release
listKind: ReleaseList
plural: releases
shortNames:
- rel
singular: release
scope: Namespaced
versions:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ spec:
kind: ReleaseServiceConfig
listKind: ReleaseServiceConfigList
plural: releaseserviceconfigs
shortNames:
- rsc
singular: releaseserviceconfig
scope: Namespaced
versions:
Expand Down

0 comments on commit 9eb7793

Please sign in to comment.