Skip to content

Commit

Permalink
Add default value for ObservedGeneration
Browse files Browse the repository at this point in the history
  • Loading branch information
sarataha committed Nov 1, 2023
1 parent df0aa8a commit 76bfd03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/v1alpha1/automatedclusterdiscovery_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ type AutomatedClusterDiscovery struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`

Spec AutomatedClusterDiscoverySpec `json:"spec,omitempty"`
Spec AutomatedClusterDiscoverySpec `json:"spec,omitempty"`
// +kubebuilder:default={"observedGeneration":-1}
Status AutomatedClusterDiscoveryStatus `json:"status,omitempty"`
}

Expand Down

0 comments on commit 76bfd03

Please sign in to comment.