code: func CreateOrUpdateSecret(client clientset.Interface, secret *v1.Secret) error {
  	if _, err := client.CoreV1().Secrets(secret.ObjectMeta.Namespace).Create(secret); err != nil {
  		if !apierrors.IsAlreadyExists(err) {
  			return errors.Wrap(err, "unable to create secret")
  		}
  
  		if _, err := client.CoreV1().Secrets(secret.ObjectMeta.Namespace).Update(secret); err != nil {
  			return errors.Wrap(err, "unable to update secret")
  		}
  	}
  	return nil
  }
docs: // CreateOrUpdateSecret creates a Secret if the target resource doesn't exist. If the resource exists already, this function will update the resource instead.