code: func (secretCredentialManager *SecretCredentialManager) GetCredential(server string) (*Credential, error) {
  	err := secretCredentialManager.updateCredentialsMap()
  	if err != nil {
  		statusErr, ok := err.(*apierrors.StatusError)
  		if (ok && statusErr.ErrStatus.Code != http.StatusNotFound) || !ok {
  			return nil, err
  		}
  		// Handle secrets deletion by finding credentials from cache
  		klog.Warningf("secret %q not found in namespace %q", secretCredentialManager.SecretName, secretCredentialManager.SecretNamespace)
  	}
  
  	credential, found := secretCredentialManager.Cache.GetCredential(server)
  	if !found {
  		klog.Errorf("credentials not found for server %q", server)
  		return nil, ErrCredentialsNotFound
  	}
  	return &credential, nil
  }
docs: // GetCredential returns credentials for the given vCenter Server.
  // GetCredential returns error if Secret is not added.
  // GetCredential return error is the secret doesn't contain any credentials.