server: Also write state=Done annotation initially
Some MCD refactoring in:
will be nicer if these annotations all
exist and are in sync initially.
@@ -66,6 +66,7 @@ func getNodeAnnotation(conf string) (string, error) {
nodeAnnotations := map[string]string{
daemon.CurrentMachineConfigAnnotationKey: conf,
daemon.DesiredMachineConfigAnnotationKey: conf,
+ daemon.MachineConfigDaemonStateAnnotationKey: daemon.MachineConfigDaemonStateDone,
}
contents, err := json.Marshal(nodeAnnotations)
if err != nil {
