Skip to content

Commit

Permalink
feat(tfrun): make Retries column integer
Browse files Browse the repository at this point in the history
  • Loading branch information
corrieriluca committed Sep 21, 2023
1 parent 41139c7 commit 20ca3cb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions api/v1alpha1/terraformrun_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ type TerraformRunLayer struct {
type TerraformRunStatus struct {
Conditions []metav1.Condition `json:"conditions,omitempty"`
State string `json:"state,omitempty"`
Retries int `json:"retries,omitempty"`
Retries int `json:"retries"`
LastRun string `json:"lastRun,omitempty"`
RunnerPod string `json:"runnerPod,omitempty"`
}
Expand All @@ -47,7 +47,7 @@ type TerraformRunStatus struct {
// +kubebuilder:resource:shortName=runs;run;tfruns;tfrun;
// +kubebuilder:subresource:status
// +kubebuilder:printcolumn:name="State",type=string,JSONPath=`.status.state`
// +kubebuilder:printcolumn:name="Retries",type=string,JSONPath=`.status.retries`
// +kubebuilder:printcolumn:name="Retries",type=integer,JSONPath=`.status.retries`
// +kubebuilder:printcolumn:name="Created On",type=string,JSONPath=`.metadata.creationTimestamp`
// +kubebuilder:printcolumn:name="Runner Pod",type=string,JSONPath=`.status.runnerPod`
// TerraformRun is the Schema for the terraformRuns API
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ spec:
type: string
- jsonPath: .status.retries
name: Retries
type: string
type: integer
- jsonPath: .metadata.creationTimestamp
name: Created On
type: string
Expand Down Expand Up @@ -142,6 +142,8 @@ spec:
type: string
state:
type: string
required:
- retries
type: object
type: object
served: true
Expand Down
4 changes: 3 additions & 1 deletion manifests/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2783,7 +2783,7 @@ spec:
type: string
- jsonPath: .status.retries
name: Retries
type: string
type: integer
- jsonPath: .metadata.creationTimestamp
name: Created On
type: string
Expand Down Expand Up @@ -2870,6 +2870,8 @@ spec:
type: string
state:
type: string
required:
- retries
type: object
type: object
served: true
Expand Down

0 comments on commit 20ca3cb

Please sign in to comment.