func ImageForEtcd(e *v1alpha1.EtcdCluster) string {
	version := v1alpha1.DefaultEtcdVersion
	if e.Spec.Version != "" {
		version = e.Spec.Version
	}

	repo := v1alpha1.DefaultRepository

	if e.Spec.Repository != "" {
		repo = e.Spec.Repository
	}

	return fmt.Sprintf("%s:v%s", repo, version)
}
// ImageForEtcd returns the image address based on etcd version and repository
ImageForEtcd returns the image address based on etcd version and repository
// ImageForEtcd returns the image address based on etcd version and repository
func ImageForEtcd(e *v1alpha1.EtcdCluster) string {
	version := v1alpha1.DefaultEtcdVersion
	if e.Spec.Version != "" {
		version = e.Spec.Version
	}
	repo := v1alpha1.DefaultRepository
	if e.Spec.Repository != "" {
		repo = e.Spec.Repository
	}
	return fmt.Sprintf("%s:v%s", repo, version)
}
func ImageForEtcd ( e * v1alpha1 . EtcdCluster ) string { version := v1alpha1 . DefaultEtcdVersion if e . Spec . Version != " " { version = e . Spec . Version } repo := v1alpha1 . DefaultRepository if e . Spec . Repository != " " { repo = e . Spec . Repository } return fmt . Sprintf ( " " , repo , version ) }
ImageForEtcd returns the image address based on etcd version and repository
ImageForEtcd returns the image address based on etcd version and repository