Json: struct field readyReplicas has json tag but is not exported
type MeshStatus struct {// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster// Important: Run "make" to regenerate code after modifying this fileAvailableReplicas int `json:"available_
·
type MeshStatus struct {
// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
// Important: Run "make" to regenerate code after modifying this file
AvailableReplicas int `json:"available_replicas,omitempty"`
readyReplicas int `json:"ready_replicas,omitempty"`
Replicas int `json:"replicas,omitempty"`
}
错误: struct field readyReplicas has json tag but is not exported
导致错误的原因 readyReplicas
开头没有大写 ReadyReplicas
更多推荐
所有评论(0)