code: func convertToRuntimeCapabilities(opts *v1.Capabilities) *runtimeapi.Capability {
  	if opts == nil {
  		return nil
  	}
  
  	capabilities := &runtimeapi.Capability{
  		AddCapabilities:  make([]string, len(opts.Add)),
  		DropCapabilities: make([]string, len(opts.Drop)),
  	}
  	for index, value := range opts.Add {
  		capabilities.AddCapabilities[index] = string(value)
  	}
  	for index, value := range opts.Drop {
  		capabilities.DropCapabilities[index] = string(value)
  	}
  
  	return capabilities
  }
docs: // convertToRuntimeCapabilities converts v1.Capabilities to runtimeapi.Capability.