Skip to content

Commit 8721122

Browse files
authored
Merge pull request #2087 from josesiqueira/add-crd-categories
Add categories to source-controller CRDs
2 parents fc3cbed + 3bfa984 commit 8721122

19 files changed

Lines changed: 32 additions & 11 deletions

api/v1/bucket_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ func (in *Bucket) GetArtifact() *meta.Artifact {
252252
// +genclient
253253
// +kubebuilder:storageversion
254254
// +kubebuilder:object:root=true
255+
// +kubebuilder:resource:categories=all;fluxcd;fluxcd-sources
255256
// +kubebuilder:subresource:status
256257
// +kubebuilder:printcolumn:name="Endpoint",type=string,JSONPath=`.spec.endpoint`
257258
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description=""

api/v1/externalartifact_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ func (in *ExternalArtifact) GetRequeueAfter() time.Duration {
6969
}
7070

7171
// +kubebuilder:object:root=true
72+
// +kubebuilder:resource:shortName=ea,categories=all;fluxcd;fluxcd-sources
7273
// +kubebuilder:subresource:status
7374
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description=""
7475
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].status",description=""

api/v1/gitrepository_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ func (v *GitRepositoryVerification) VerifyTag() bool {
359359
// +genclient
360360
// +kubebuilder:storageversion
361361
// +kubebuilder:object:root=true
362-
// +kubebuilder:resource:shortName=gitrepo
362+
// +kubebuilder:resource:shortName=gitrepo,categories=all;fluxcd;fluxcd-sources
363363
// +kubebuilder:subresource:status
364364
// +kubebuilder:printcolumn:name="URL",type=string,JSONPath=`.spec.url`
365365
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description=""

api/v1/helmchart_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ func (in *HelmChart) GetValuesFiles() []string {
195195
// +genclient
196196
// +kubebuilder:storageversion
197197
// +kubebuilder:object:root=true
198-
// +kubebuilder:resource:shortName=hc
198+
// +kubebuilder:resource:shortName=hc,categories=all;fluxcd;fluxcd-sources
199199
// +kubebuilder:subresource:status
200200
// +kubebuilder:printcolumn:name="Chart",type=string,JSONPath=`.spec.chart`
201201
// +kubebuilder:printcolumn:name="Version",type=string,JSONPath=`.spec.version`

api/v1/helmrepository_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ func (in *HelmRepository) GetArtifact() *meta.Artifact {
195195
// +genclient
196196
// +kubebuilder:storageversion
197197
// +kubebuilder:object:root=true
198-
// +kubebuilder:resource:shortName=helmrepo
198+
// +kubebuilder:resource:shortName=helmrepo,categories=all;fluxcd;fluxcd-sources
199199
// +kubebuilder:subresource:status
200200
// +kubebuilder:printcolumn:name="URL",type=string,JSONPath=`.spec.url`
201201
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description=""

api/v1/ocirepository_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ func (in *OCIRepository) GetLayerOperation() string {
266266
// +genclient
267267
// +kubebuilder:storageversion
268268
// +kubebuilder:object:root=true
269-
// +kubebuilder:resource:shortName=ocirepo
269+
// +kubebuilder:resource:shortName=ocirepo,categories=all;fluxcd;fluxcd-sources
270270
// +kubebuilder:subresource:status
271271
// +kubebuilder:printcolumn:name="URL",type=string,JSONPath=`.spec.url`
272272
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].status",description=""

api/v1beta1/gitrepository_types.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,6 @@ func (in *GitRepository) GetInterval() metav1.Duration {
266266

267267
// +genclient
268268
// +kubebuilder:object:root=true
269-
// +kubebuilder:resource:shortName=gitrepo
270269
// +kubebuilder:skipversion
271270

272271
// GitRepository is the Schema for the gitrepositories API

api/v1beta1/helmchart_types.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,6 @@ func (in *HelmChart) GetValuesFiles() []string {
232232

233233
// +genclient
234234
// +kubebuilder:object:root=true
235-
// +kubebuilder:resource:shortName=hc
236235
// +kubebuilder:skipversion
237236

238237
// HelmChart is the Schema for the helmcharts API

api/v1beta1/helmrepository_types.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,6 @@ func (in *HelmRepository) GetInterval() metav1.Duration {
182182

183183
// +genclient
184184
// +kubebuilder:object:root=true
185-
// +kubebuilder:resource:shortName=helmrepo
186185
// +kubebuilder:skipversion
187186

188187
// HelmRepository is the Schema for the helmrepositories API

api/v1beta2/gitrepository_types.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,6 @@ func (in *GitRepository) GetArtifact() *meta.Artifact {
286286

287287
// +genclient
288288
// +kubebuilder:object:root=true
289-
// +kubebuilder:resource:shortName=gitrepo
290289
// +kubebuilder:skipversion
291290

292291
// GitRepository is the Schema for the gitrepositories API.

0 commit comments

Comments
 (0)