package validation

import (
	"github.com/openshift/origin/pkg/cmd/server/api"
)

func ValidateAllInOneConfig(master *api.MasterConfig, node *api.NodeConfig) ValidationResults {
	validationResults := ValidationResults{}

	validationResults.Append(ValidateMasterConfig(master).Prefix("masterConfig"))

	validationResults.Append(ValidateNodeConfig(node).Prefix("nodeConfig"))

	// Validation between the configs

	return validationResults
}
