INNER CODE UNIT · Python

invalidControlledLabels

kubeovn/kube-ovn · hack/e2e_control.py:124

    invalidControlledLabels = sorted(controlledLabels - knownControlledLabels)
    if invalidControlledLabels:
        return rejectedDecision(command, "controlled label provenance is invalid")
    controlledGroups = {
        label.removeprefix("e2e:")
        for label in controlledLabels
        if label != "e2e:full"
    }
    command = {
        **command,
        "requestedGroups": canonicalRequestedGroups(
            set(command["requestedGroups"]) | controlledGroups,
            command["full"] or "e2e:full" in controlledLabels,
        ),
        "full": command["full"] or "e2e:full" in controlledLabels,
    }
    eventComment = event.get("comment", {})
    eventUser = eventComment.get("user", {})

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…