func (sa *ServiceAccount) createNewResources(ir irtypes.EnhancedIR, supportedKinds []string, targetCluster collecttypes.ClusterMetadata) []runtime.Object {
	objs := []runtime.Object{}
	if common.IsStringPresent(supportedKinds, rbacv1.ServiceAccountKind) {
		irresources := ir.ServiceAccounts
		for _, irresource := range irresources {
			objs = append(objs, sa.createNewResource(irresource))
		}
	} else {
		logrus.Errorf("Could not find a valid resource type in cluster to create a service account.")
	}
	return objs
}
createNewResources creates the runtime objects from the intermediate representation.
package apiresource
import (
	"github.com/konveyor/move2kube/common"
	collecttypes "github.com/konveyor/move2kube/types/collection"
	irtypes "github.com/konveyor/move2kube/types/ir"
	"github.com/sirupsen/logrus"
	rbacv1 "k8s.io/api/rbac/v1"
	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	"k8s.io/apimachinery/pkg/runtime"
	core "k8s.io/kubernetes/pkg/apis/core"
)
type ServiceAccount struct {
}
func (*ServiceAccount) getSupportedKinds() []string {
	return []string{rbacv1.ServiceAccountKind}
}