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: client.go
    path of file: ./repos/kubeedge/cloud/pkg/common/client
    
    the code of the file until where you have to start completion: /*
Copyright 2021 The KubeEdge Authors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed unde
    
func InitKubeEdgeClient(config *cloudcoreConfig.KubeAPIConfig) {
	initOnce.Do(func() {
		kubeConfig, err := clientcmd.BuildConfigFromFlags(config.Master, config.KubeConfig)
		if err != nil {
			klog.Errorf("Failed to build config, err: %v", err)
			os.Exit(1)
		}
		kubeConfig.QPS = float32(config.QPS)
		kubeConfig.Burst = int(config.Burst)

		KubeConfig = kubeConfig

		dynamicClient = dynamic.NewForConfigOrDie(kubeConfig)

		kubeConfig.ContentType = runtime.ContentTypeProtobuf
		kubeClient = kubernetes.NewForConfigOrDie(kubeConfig)

		crdKubeConfig := rest.CopyConfig(kubeConfig)
		crdKubeConfig.ContentType = runtime.ContentTypeJSON
		CrdConfig = crdKubeConfig
		crdClient = crdClientset.NewForConfigOrDie(crdKubeConfig)

		authKubeConfig, err = clientcmd.BuildConfigFromFlags(kubeConfig.Host, "")
		if err != nil {
			klog.Errorf("Failed to build config, err: %v", err)
			os.Exit(1)
		}
		authKubeConfig.CAData = kubeConfig.CAData
		authKubeConfig.CAFile = kubeConfig.CAFile
		authKubeConfig.ContentType = runtime.ContentTypeJSON
	})
}