type ETCD struct {
// TODO: support external etcd.
// StorageMode etcd data storage mode(emptyDir,hostPath, PVC), default "emptyDir"
// +optional
StorageMode string `json:"storageMode,omitempty"`
// If specified StorageMode is PVC, StorageClass must be set.
// +optional
StorageClass string `json:"storageClass,omitempty"`
// If specified StorageMode is PVC, Size must be set.
// +optional
Size string `json:"size,omitempty"`
}
advice spec is
type ETCD struct {
// Storage about etcd data storage config
// +optional
Storage corev1.Volume `json:"storage,omitempty"`
// Servers is config external etcd
// +optional
Servers string `json:"servers,omitempty"`
}
current spec is
advice spec is