Writes and verify image

This commit is contained in:
2026-04-04 02:45:46 +08:00
parent 9cb593ffc0
commit 4f490ab37e
20 changed files with 596 additions and 65 deletions

View File

@@ -190,10 +190,7 @@ func matchesNode(osu *monov1alpha1.OSUpgrade, nodeName string, nodeLabels labels
return true
}
// Cheap fallback in case you temporarily target by explicit hostname-ish labels only.
return nodeName != "" && selector.Matches(labels.Set{
"kubernetes.io/hostname": nodeName,
})
return false
}
func statusPhase(st *monov1alpha1.OSUpgradeStatus) string {

View File

@@ -69,7 +69,7 @@ Supported formats:
}
}
var cfg *monov1alpha1.MonoKSConfig // or value, depending on your API
var cfg *monov1alpha1.MonoKSConfig
switch {
case strings.TrimSpace(envFile) != "":