code: func setConfigFromSecret(cfg *Config) error {
  	secretName := cfg.Global.SecretName
  	secretNamespace := cfg.Global.SecretNamespace
  
  	k8sClient, err := createKubernetesClient()
  	if err != nil {
  		return fmt.Errorf("failed to get kubernetes client: %v", err)
  	}
  
  	secret, err := k8sClient.CoreV1().Secrets(secretNamespace).Get(secretName, metav1.GetOptions{})
  	if err != nil {
  		klog.Warningf("Cannot get secret %s in namespace %s. error: %q", secretName, secretNamespace, err)
  		return err
  	}
  
  	if content, ok := secret.Data["clouds.conf"]; ok {
  		err = gcfg.ReadStringInto(cfg, string(content))
  		if err != nil {
  			klog.Errorf("Cannot parse data from the secret.")
  			return fmt.Errorf("cannot parse data from the secret")
  		}
  		return nil
  	}
  
  	klog.Errorf("Cannot find \"clouds.conf\" key in the secret.")
  	return fmt.Errorf("cannot find \"clouds.conf\" key in the secret")
  }
docs: // setConfigFromSecret allows setting up the config from k8s secret