You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: common.go
    path of file: ./repos/istio/tests/integration/pilot/mcs/common
    
    the code of the file until where you have to start completion: //go:build integ
// +build integ

// Copyright Istio Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with th
    
func InstallMCSCRDs(t resource.Context) error {
	params := struct {
		Group   string
		Version string
	}{
		Group:   KubeSettings(t).MCSAPIGroup,
		Version: KubeSettings(t).MCSAPIVersion,
	}

	for _, kind := range []string{"serviceexport", "serviceimport"} {
		// Generate the CRD YAML
		fileName := fmt.Sprintf("mcs-%s-crd.yaml", kind)
		crdTemplate, err := os.ReadFile("../../testdata/" + fileName)
		if err != nil {
			return err
		}
		crdYAML, err := tmpl.Evaluate(string(crdTemplate), params)
		if err != nil {
			return err
		}

		// Make sure the CRD exists in each cluster.
		for _, c := range t.Clusters() {
			crdName := fmt.Sprintf("%ss.%s", kind, params.Group)
			if isCRDInstalled(c, crdName, params.Version) {
				// It's already installed on this cluster - nothing to do.
				continue
			}

			// Add/Update the CRD in this cluster...
			if t.Settings().NoCleanup {
				if err := t.ConfigKube(c).YAML("", crdYAML).Apply(apply.NoCleanup); err != nil {
					return err
				}
			} else {
				if err := t.ConfigKube(c).YAML("", crdYAML).Apply(); err != nil {
					return err
				}
			}
		}
	}
	return nil
}