code: func completeRotation(clock clockwork.Clock, ca services.CertAuthority) error {
  	rotation := ca.GetRotation()
  	signingKeys := ca.GetSigningKeys()
  	checkingKeys := ca.GetCheckingKeys()
  	keyPairs := ca.GetTLSKeyPairs()
  
  	signingKeys = signingKeys[:1]
  	checkingKeys = checkingKeys[:1]
  	keyPairs = keyPairs[:1]
  
  	rotation.Started = time.Time{}
  	rotation.State = services.RotationStateStandby
  	rotation.Phase = services.RotationPhaseStandby
  	rotation.LastRotated = clock.Now()
  	rotation.Mode = ""
  	rotation.Schedule = services.RotationSchedule{}
  
  	ca.SetSigningKeys(signingKeys)
  	ca.SetCheckingKeys(checkingKeys)
  	ca.SetTLSKeyPairs(keyPairs)
  	ca.SetRotation(rotation)
  	return nil
  }
docs: // completeRotation completes the certificate authority rotation.