code: func parseMaxSize(size string) (int64, error) {
  	quantity, err := resource.ParseQuantity(size)
  	if err != nil {
  		return 0, err
  	}
  	maxSize, ok := quantity.AsInt64()
  	if !ok {
  		return 0, fmt.Errorf("invalid max log size")
  	}
  	if maxSize < 0 {
  		return 0, fmt.Errorf("negative max log size %d", maxSize)
  	}
  	return maxSize, nil
  }
docs: // parseMaxSize parses quantity string to int64 max size in bytes.