code: func (o *SetResourcesOptions) Validate() error {
  	var err error
  	if o.All && len(o.Selector) > 0 {
  		return fmt.Errorf("cannot set --all and --selector at the same time")
  	}
  	if len(o.Limits) == 0 && len(o.Requests) == 0 {
  		return fmt.Errorf("you must specify an update to requests or limits (in the form of --requests/--limits)")
  	}
  
  	o.ResourceRequirements, err = generateversioned.HandleResourceRequirementsV1(map[string]string{"limits": o.Limits, "requests": o.Requests})
  	if err != nil {
  		return err
  	}
  
  	return nil
  }
docs: // Validate makes sure that provided values in ResourcesOptions are valid