cluster-api
cluster-api copied to clipboard
v1beta1#ClusterStatus: some fields are missing ",omitempty"
Hello, it appears most fields in ClusterStatus
type have omitempty json tag. https://pkg.go.dev/sigs.k8s.io/cluster-api/api/v1beta1#ClusterStatus except for ControlPlaneReady
and InfrastructureReady
.
This prevents us from zeroing the .Status
field on ClusterObject
(which also has ,omitempty
) and have a clean json result. https://pkg.go.dev/sigs.k8s.io/cluster-api/api/v1beta1#Cluster
Is this intentional? /kind support /area api cc: @reetasingh