// WithClusterAffinity sets affinity for mysql cluster
WithClusterAffinity sets affinity for mysql cluster
// WithClusterAffinity sets affinity for mysql cluster
func WithClusterAffinity(affinity *corev1.Affinity) MySQLClusterOption {
	return func(mc *mysqlv1alpha1.MysqlCluster) error {
		mc.Spec.PodSpec.Affinity = affinity
		return nil
	}
}
func WithClusterAffinity ( affinity * corev1 . Affinity ) MySQLClusterOption { return func ( mc * mysqlv1alpha1 . MysqlCluster ) error { mc . Spec . PodSpec . Affinity = affinity return nil } }
WithClusterAffinity sets affinity for mysql cluster
WithClusterAffinity sets affinity for mysql cluster