Skip to content

Commit

Permalink
fix: correct json tag last_transition_time to lastTransitionTime
Browse files Browse the repository at this point in the history
  • Loading branch information
zoumo committed Aug 15, 2023
1 parent e1c57e5 commit 78e438c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apis/apps/v1alpha1/collaset_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ type CollaSetCondition struct {
Status corev1.ConditionStatus `json:"status,omitempty"`

// Last time the condition transitioned from one status to another.
LastTransitionTime metav1.Time `json:"last_transition_time,omitempty"`
LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`

// The reason for the condition's last transition.
Reason string `json:"reason,omitempty"`
Expand Down
2 changes: 1 addition & 1 deletion config/crd/bases/apps.kafed.io_collasets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ spec:
current state.
items:
properties:
last_transition_time:
lastTransitionTime:
description: Last time the condition transitioned from one status
to another.
format: date-time
Expand Down

0 comments on commit 78e438c

Please sign in to comment.