Skip to content

Commit

Permalink
chore: Add printcolumn for CDStageDeploy object (#116)
Browse files Browse the repository at this point in the history
Signed-off-by: Sergiy Kulanov <[email protected]>
  • Loading branch information
SergK committed Sep 9, 2024
1 parent 28d2c19 commit d5641e6
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
3 changes: 3 additions & 0 deletions api/v1/cdstagedeploy_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ type CDStageDeployStatus struct {
// +kubebuilder:subresource:status
// +kubebuilder:resource:shortName=csd,path=cdstagedeployments
// +kubebuilder:storageversion
// +kubebuilder:printcolumn:name="Pipeline",type="string",JSONPath=".spec.pipeline",description="Pipeline name"
// +kubebuilder:printcolumn:name="Stage",type="string",JSONPath=".spec.stage",description="Stage name"
// +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.status",description="Pipeline status"

// CDStageDeploy is the Schema for the CDStageDeployments API.
type CDStageDeploy struct {
Expand Down
15 changes: 14 additions & 1 deletion config/crd/bases/v2.edp.epam.com_cdstagedeployments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,20 @@ spec:
singular: cdstagedeploy
scope: Namespaced
versions:
- name: v1
- additionalPrinterColumns:
- description: Pipeline name
jsonPath: .spec.pipeline
name: Pipeline
type: string
- description: Stage name
jsonPath: .spec.stage
name: Stage
type: string
- description: Pipeline status
jsonPath: .status.status
name: Status
type: string
name: v1
schema:
openAPIV3Schema:
description: CDStageDeploy is the Schema for the CDStageDeployments API.
Expand Down
15 changes: 14 additions & 1 deletion deploy-templates/crds/v2.edp.epam.com_cdstagedeployments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,20 @@ spec:
singular: cdstagedeploy
scope: Namespaced
versions:
- name: v1
- additionalPrinterColumns:
- description: Pipeline name
jsonPath: .spec.pipeline
name: Pipeline
type: string
- description: Stage name
jsonPath: .spec.stage
name: Stage
type: string
- description: Pipeline status
jsonPath: .status.status
name: Status
type: string
name: v1
schema:
openAPIV3Schema:
description: CDStageDeploy is the Schema for the CDStageDeployments API.
Expand Down

0 comments on commit d5641e6

Please sign in to comment.