Skip to content

Commit

Permalink
change LastTransitionTime to use metav1.Time
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-prindle committed Sep 7, 2018
1 parent bada2f6 commit 4c52cbf
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
1 change: 1 addition & 0 deletions config/crds/pipeline_v1beta1_pipelinerun.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ spec:
items:
properties:
lastTransitionTime:
format: date-time
type: string
message:
type: string
Expand Down
1 change: 1 addition & 0 deletions config/crds/pipeline_v1beta1_taskrun.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ spec:
items:
properties:
lastTransitionTime:
format: date-time
type: string
message:
type: string
Expand Down
4 changes: 1 addition & 3 deletions pkg/apis/pipeline/v1beta1/pipelinerun_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,7 @@ type PipelineRunCondition struct {

Status corev1.ConditionStatus `json:"status"`

// TODO(bobcatfish): when I use `metav1.Time` here I can't figure out
// how to serialize :(
LastTransitionTime string `json:"lastTransitionTime"`
LastTransitionTime metav1.Time `json:"lastTransitionTime"`

Reason string `json:"reason,omitempty"`
Message string `json:"message,omitempty"`
Expand Down
4 changes: 1 addition & 3 deletions pkg/apis/pipeline/v1beta1/taskrun_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,7 @@ type TaskRunCondition struct {

Status corev1.ConditionStatus `json:"status"`

// TODO(bobcatfish): when I use `metav1.Time` here I can't figure out
// how to serialize :(
LastTransitionTime string `json:"lastTransitionTime"`
LastTransitionTime metav1.Time `json:"lastTransitionTime"`

Reason string `json:"reason,omitempty"`
Message string `json:"message,omitempty"`
Expand Down
10 changes: 8 additions & 2 deletions pkg/apis/pipeline/v1beta1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4c52cbf

Please sign in to comment.