package mutatefuncs

import (
	"github.com/upbound/provider-azure/apis/containerservice/v1beta1"

	azurenetworkv1beta1 "github.com/upbound/provider-azure/apis/network/v1beta1"
)

func MutateAKSNodePool(current, expected *v1beta1.KubernetesClusterNodePool) error {
	current.Labels = expected.Labels
	current.Annotations = expected.Annotations

	current.Spec = expected.Spec

	return nil
}

// MutateAzureDNSRecord create a dns record managed by Azure DNS
func MutateAzureDNSRecord(current, expected *azurenetworkv1beta1.DNSARecord) error {
	current.Labels = expected.Labels
	current.Annotations = expected.Annotations

	current.Spec.ResourceSpec = expected.Spec.ResourceSpec
	current.Spec.ForProvider = expected.Spec.ForProvider

	return nil

}
