code: func (s *ServerV1) V2() *ServerV2 {
  	labels := make(map[string]CommandLabelV2, len(s.CmdLabels))
  	for key := range s.CmdLabels {
  		val := s.CmdLabels[key]
  		labels[key] = CommandLabelV2{
  			Period:  Duration(val.Period),
  			Result:  val.Result,
  			Command: val.Command,
  		}
  	}
  	return &ServerV2{
  		Kind:    s.Kind,
  		Version: V2,
  		Metadata: Metadata{
  			Name:      s.ID,
  			Namespace: ProcessNamespace(s.Namespace),
  			Labels:    s.Labels,
  		},
  		Spec: ServerSpecV2{
  			Addr:      s.Addr,
  			Hostname:  s.Hostname,
  			CmdLabels: labels,
  		},
  	}
  }
docs: // V2 returns V2 version of the resource