func ClusterURL() reference.ExtractValueFn {
	return func(mg resource.Managed) string {
		c, ok := mg.(*Cluster)
		if !ok {
			return ""
		}
		return strings.TrimPrefix(c.Status.AtProvider.SelfLink, ContainerURIPrefix)
	}
}
ClusterURL extracts the partially qualified URL of a Cluster.
package v1beta2
import (
	"context"
	"strings"
	"sigs.k8s.io/controller-runtime/pkg/client"
	"github.com/crossplane/crossplane-runtime/pkg/errors"
	"github.com/crossplane/crossplane-runtime/pkg/reference"
	resource "github.com/crossplane/crossplane-runtime/pkg/resource"
	"github.com/crossplane/provider-gcp/apis/compute/v1beta1"
)