diff --git a/.github/workflows/validate-federation-interpreters.yaml b/.github/workflows/validate-federation-interpreters.yaml new file mode 100644 index 00000000..bbcd7812 --- /dev/null +++ b/.github/workflows/validate-federation-interpreters.yaml @@ -0,0 +1,40 @@ +name: Validate Federation Interpreters + +on: + pull_request: + paths: + - '.github/workflows/validate-federation-interpreters.yaml' + - 'config/federation/**' + - 'test/federation-interpreters/**' + - 'Taskfile.yaml' + push: + branches: + - main + paths: + - '.github/workflows/validate-federation-interpreters.yaml' + - 'config/federation/**' + - 'test/federation-interpreters/**' + - 'Taskfile.yaml' + +permissions: + contents: read + +jobs: + run-federation-interpreters: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v7 + + - name: Install Task + uses: arduino/setup-task@c0bc642852239c2689f73f4ea6459c29405f3c52 # v3.0.0 + with: + version: 3.x + repo-token: ${{ secrets.GITHUB_TOKEN }} + + - uses: actions/setup-go@v7 + with: + go-version-file: test/federation-interpreters/go.mod + cache-dependency-path: test/federation-interpreters/go.sum + + - name: Run the interpreter scripts against fixtures + run: task test-federation-interpreters diff --git a/Taskfile.test-infra.yml b/Taskfile.test-infra.yml index cb2b3e6f..9805f71e 100644 --- a/Taskfile.test-infra.yml +++ b/Taskfile.test-infra.yml @@ -1067,6 +1067,11 @@ tasks: - | {{.KUSTOMIZE}} build --load-restrictor LoadRestrictionsNone config/crd/downstream | \ kubectl --kubeconfig {{.KARMADA_KUBECONFIG}} --context karmada-apiserver apply -f - + # Gateway API kinds are federated through the hub too. Production's hub + # carries these CRDs out of band, so apply the same set the edge gets. + - | + kubectl --kubeconfig {{.KARMADA_KUBECONFIG}} --context karmada-apiserver apply --server-side=true --force-conflicts \ + -f config/tools/envoy-gateway-downstream/charts/gateway-helm-{{.ENVOY_GATEWAY_VERSION}}/gateway-helm/charts/crds/crds/gatewayapi-crds.yaml # ServingLocation is federated through the hub too, and the locations # service, not config/crd/downstream, owns its CRD. - | @@ -1111,7 +1116,7 @@ tasks: vars: # Scenarios authored against this env's cluster names and downstream path. # Older fixtures targeting the previous cluster names are excluded here. - DEFAULT_SCENARIOS: extension-server-smoke waf-enforcement waf-section-scoping branded-error-page connector-offline-503 atomic-reject-isolation oidc-missing-secret-isolation networkservice-endpoints networkservice-late-vpc-record misdirected-request + DEFAULT_SCENARIOS: extension-server-smoke waf-enforcement waf-section-scoping branded-error-page connector-offline-503 atomic-reject-isolation oidc-missing-secret-isolation networkservice-endpoints networkservice-late-vpc-record misdirected-request federated-status-pending # CLI_ARGS (after --) wins; else SCENARIOS env; else the default set. SELECTED: '{{.CLI_ARGS | default .SCENARIOS | default .DEFAULT_SCENARIOS}}' deps: @@ -1138,7 +1143,8 @@ tasks: {{.CHAINSAW}} test "$dir" \ --parallel 1 \ --cluster {{.UPSTREAM_CLUSTER}}={{.TMP_DIR}}/.kind-{{.UPSTREAM_CLUSTER}}.yaml \ - --cluster {{.DOWNSTREAM_CLUSTER}}={{.TMP_DIR}}/.kind-{{.DOWNSTREAM_CLUSTER}}.yaml + --cluster {{.DOWNSTREAM_CLUSTER}}={{.TMP_DIR}}/.kind-{{.DOWNSTREAM_CLUSTER}}.yaml \ + --cluster karmada={{.TMP_DIR}}/karmada-{{.UPSTREAM_CLUSTER}}/karmada-apiserver.config done test-e2e: diff --git a/Taskfile.yaml b/Taskfile.yaml index ae4b2d6e..cec7a3c1 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -83,6 +83,12 @@ tasks: fi silent: false + test-federation-interpreters: + desc: Run the Karmada resource-interpreter scripts in config/federation against fixtures in Karmada's own Lua VM (no cluster) + dir: test/federation-interpreters + cmds: + - go test -count=1 ./... {{.CLI_ARGS}} + generate: desc: Run code generation (deepcopy, defaults) deps: diff --git a/config/federation/README.md b/config/federation/README.md index edf7eda8..05576bcb 100644 --- a/config/federation/README.md +++ b/config/federation/README.md @@ -31,6 +31,19 @@ downstream cluster within seconds. the behavior that caused real "false offline" incidents and is now exercised directly. +The interpreter rules also decide what a federated resource's status means on +the hub. A condition such as `Programmed` is `True` only when every cluster the +hub has dispatched the resource to reports it `True`. A cluster the scheduler +has chosen but not yet dispatched to is not counted until its copy exists. If +any placed cluster reports `False`, the hub reports `False` with that cluster's +reason and names the cluster in the message. Otherwise the hub reports +`Unknown` with reason `Pending` and names every cluster it is still waiting +on. The set of placed clusters is the +set the propagation policy selects with `infra.datum.net/gateways=enabled`, so +no cluster name appears in a script. To drain a cluster, remove that label +from its hub `Cluster` object. `task test-federation-interpreters` runs every +script against fixtures in Karmada's own Lua VM. + Not here: the per-location policies that deliver a cell its own identity. Every resource in the policy above goes to *every* labelled edge cluster, and a location must reach exactly the one cell that serves it. Karmada has no diff --git a/config/federation/resourceinterpreters.yaml b/config/federation/resourceinterpreters.yaml index 44d92953..900d6cc2 100644 --- a/config/federation/resourceinterpreters.yaml +++ b/config/federation/resourceinterpreters.yaml @@ -1,7 +1,4 @@ -# Future test coverage for resource interpreters can leverage the test framework -# once it's merged. -# -# See: https://github.com/karmada-io/karmada/pull/6938 +# A deployment repository carries a copy of this file. Keep the two identical. --- apiVersion: config.karmada.io/v1alpha1 kind: ResourceInterpreterCustomization @@ -13,7 +10,109 @@ spec: kind: Gateway customizations: statusAggregation: - luaScript: > + luaScript: | + local function conditionByType(conds, typ) + if conds == nil then + return nil + end + for _, c in ipairs(conds) do + if c.type == typ then + return c + end + end + return nil + end + + local function typesOf(statusItems, pick) + local seen, out = {}, {} + for _, it in ipairs(statusItems) do + local conds = nil + if it.status ~= nil then + conds = pick(it.status) + end + if conds ~= nil then + for _, c in ipairs(conds) do + if c.type ~= nil and not seen[c.type] then + seen[c.type] = true + out[#out + 1] = c.type + end + end + end + end + return out + end + + local function aggregateCondition(statusItems, pick, typ) + local total = #statusItems + local waiting, falses = {}, {} + local first, latest = nil, nil + for _, it in ipairs(statusItems) do + local c = nil + if it.status ~= nil then + c = conditionByType(pick(it.status), typ) + end + if c ~= nil and c.lastTransitionTime ~= nil and (latest == nil or c.lastTransitionTime > latest) then + latest = c.lastTransitionTime + end + if c == nil or c.status == nil or c.status == "Unknown" then + waiting[#waiting + 1] = it.clusterName + else + if first == nil then + first = c + end + if c.status ~= "True" then + falses[#falses + 1] = { cluster = it.clusterName, cond = c } + end + end + end + local out = { type = typ, lastTransitionTime = latest or "1970-01-01T00:00:00Z" } + if first ~= nil then + out.observedGeneration = first.observedGeneration + end + if #falses > 0 then + out.status = "False" + out.reason = falses[1].cond.reason + local msg = falses[1].cluster .. ": " .. (falses[1].cond.message or "") + if #falses > 1 then + local others = {} + for i = 2, #falses do + others[#others + 1] = falses[i].cluster + end + msg = msg .. " (also " .. table.concat(others, ", ") .. ")" + end + out.message = msg + elseif #waiting > 0 then + out.status = "Unknown" + out.reason = "Pending" + out.message = "Waiting on " .. table.concat(waiting, ", ") + else + out.status = "True" + out.reason = first.reason + out.message = typ .. " on " .. total .. " of " .. total .. " clusters" + end + return out + end + + local function aggregateConditions(statusItems, pick) + local out = {} + for _, typ in ipairs(typesOf(statusItems, pick)) do + out[#out + 1] = aggregateCondition(statusItems, pick, typ) + end + return out + end + + local function firstWith(statusItems, pick) + for _, it in ipairs(statusItems) do + if it.status ~= nil then + local v = pick(it.status) + if v ~= nil then + return v + end + end + end + return nil + end + function AggregateStatus(desiredObj, statusItems) if statusItems == nil or #statusItems == 0 then return desiredObj @@ -21,22 +120,62 @@ spec: if desiredObj.status == nil then desiredObj.status = {} end + desiredObj.status.conditions = aggregateConditions(statusItems, function(s) + return s.conditions + end) - local item = statusItems[1] - if item == nil or item.status == nil then - return desiredObj + local function listenerNamed(s, name) + if s.listeners == nil then + return nil + end + for _, l in ipairs(s.listeners) do + if l.name == name then + return l + end + end + return nil end - -- TODO(jreese) implement proper aggregation logic. Would be good to - -- think through how to represent propagation status across clusters. - if item.status.addresses ~= nil then - desiredObj.status.addresses = item.status.addresses + local names, seen, listeners = {}, {}, {} + for _, it in ipairs(statusItems) do + if it.status ~= nil and it.status.listeners ~= nil then + for _, l in ipairs(it.status.listeners) do + if l.name ~= nil and not seen[l.name] then + seen[l.name] = true + names[#names + 1] = l.name + end + end + end end - if item.status.conditions ~= nil then - desiredObj.status.conditions = item.status.conditions + for _, name in ipairs(names) do + local base = firstWith(statusItems, function(s) + return listenerNamed(s, name) + end) + listeners[#listeners + 1] = { + name = name, + supportedKinds = base.supportedKinds, + attachedRoutes = base.attachedRoutes, + conditions = aggregateConditions(statusItems, function(s) + local l = listenerNamed(s, name) + if l == nil then + return nil + end + return l.conditions + end), + } end - if item.status.listeners ~= nil then - desiredObj.status.listeners = item.status.listeners + if #listeners > 0 then + desiredObj.status.listeners = listeners + end + + local addresses = firstWith(statusItems, function(s) + if s.addresses ~= nil and #s.addresses > 0 then + return s.addresses + end + return nil + end) + if addresses ~= nil then + desiredObj.status.addresses = addresses end return desiredObj end @@ -51,7 +190,167 @@ spec: kind: HTTPRoute customizations: statusAggregation: - luaScript: > + luaScript: | + local function conditionByType(conds, typ) + if conds == nil then + return nil + end + for _, c in ipairs(conds) do + if c.type == typ then + return c + end + end + return nil + end + + local function typesOf(statusItems, pick) + local seen, out = {}, {} + for _, it in ipairs(statusItems) do + local conds = nil + if it.status ~= nil then + conds = pick(it.status) + end + if conds ~= nil then + for _, c in ipairs(conds) do + if c.type ~= nil and not seen[c.type] then + seen[c.type] = true + out[#out + 1] = c.type + end + end + end + end + return out + end + + local function aggregateCondition(statusItems, pick, typ) + local total = #statusItems + local waiting, falses = {}, {} + local first, latest = nil, nil + for _, it in ipairs(statusItems) do + local c = nil + if it.status ~= nil then + c = conditionByType(pick(it.status), typ) + end + if c ~= nil and c.lastTransitionTime ~= nil and (latest == nil or c.lastTransitionTime > latest) then + latest = c.lastTransitionTime + end + if c == nil or c.status == nil or c.status == "Unknown" then + waiting[#waiting + 1] = it.clusterName + else + if first == nil then + first = c + end + if c.status ~= "True" then + falses[#falses + 1] = { cluster = it.clusterName, cond = c } + end + end + end + local out = { type = typ, lastTransitionTime = latest or "1970-01-01T00:00:00Z" } + if first ~= nil then + out.observedGeneration = first.observedGeneration + end + if #falses > 0 then + out.status = "False" + out.reason = falses[1].cond.reason + local msg = falses[1].cluster .. ": " .. (falses[1].cond.message or "") + if #falses > 1 then + local others = {} + for i = 2, #falses do + others[#others + 1] = falses[i].cluster + end + msg = msg .. " (also " .. table.concat(others, ", ") .. ")" + end + out.message = msg + elseif #waiting > 0 then + out.status = "Unknown" + out.reason = "Pending" + out.message = "Waiting on " .. table.concat(waiting, ", ") + else + out.status = "True" + out.reason = first.reason + out.message = typ .. " on " .. total .. " of " .. total .. " clusters" + end + return out + end + + local function aggregateConditions(statusItems, pick) + local out = {} + for _, typ in ipairs(typesOf(statusItems, pick)) do + out[#out + 1] = aggregateCondition(statusItems, pick, typ) + end + return out + end + + local function firstWith(statusItems, pick) + for _, it in ipairs(statusItems) do + if it.status ~= nil then + local v = pick(it.status) + if v ~= nil then + return v + end + end + end + return nil + end + + local function refKey(ref, controllerName) + if ref == nil then + ref = {} + end + local parts = { controllerName or "", ref.group or "", ref.kind or "", ref.namespace or "", ref.name or "", ref.sectionName or "" } + if ref.port ~= nil then + parts[#parts + 1] = tostring(ref.port) + else + parts[#parts + 1] = "" + end + return table.concat(parts, "|") + end + + local function aggregateKeyed(statusItems, field, refField) + local function entryWithKey(s, key) + if s[field] == nil then + return nil + end + for _, e in ipairs(s[field]) do + if refKey(e[refField], e.controllerName) == key then + return e + end + end + return nil + end + + local keys, seen = {}, {} + for _, it in ipairs(statusItems) do + if it.status ~= nil and it.status[field] ~= nil then + for _, e in ipairs(it.status[field]) do + local key = refKey(e[refField], e.controllerName) + if not seen[key] then + seen[key] = true + keys[#keys + 1] = key + end + end + end + end + + local out = {} + for _, key in ipairs(keys) do + local base = firstWith(statusItems, function(s) + return entryWithKey(s, key) + end) + local entry = { controllerName = base.controllerName } + entry[refField] = base[refField] + entry.conditions = aggregateConditions(statusItems, function(s) + local e = entryWithKey(s, key) + if e == nil then + return nil + end + return e.conditions + end) + out[#out + 1] = entry + end + return out + end + function AggregateStatus(desiredObj, statusItems) if statusItems == nil or #statusItems == 0 then return desiredObj @@ -59,16 +358,9 @@ spec: if desiredObj.status == nil then desiredObj.status = {} end - - local item = statusItems[1] - if item == nil or item.status == nil then - return desiredObj - end - - -- TODO(jreese) implement proper aggregation logic. Would be good to - -- think through how to represent propagation status across clusters. - if item.status.parents ~= nil then - desiredObj.status.parents = item.status.parents + local parents = aggregateKeyed(statusItems, "parents", "parentRef") + if #parents > 0 then + desiredObj.status.parents = parents end return desiredObj end @@ -83,7 +375,167 @@ spec: kind: BackendTLSPolicy customizations: statusAggregation: - luaScript: > + luaScript: | + local function conditionByType(conds, typ) + if conds == nil then + return nil + end + for _, c in ipairs(conds) do + if c.type == typ then + return c + end + end + return nil + end + + local function typesOf(statusItems, pick) + local seen, out = {}, {} + for _, it in ipairs(statusItems) do + local conds = nil + if it.status ~= nil then + conds = pick(it.status) + end + if conds ~= nil then + for _, c in ipairs(conds) do + if c.type ~= nil and not seen[c.type] then + seen[c.type] = true + out[#out + 1] = c.type + end + end + end + end + return out + end + + local function aggregateCondition(statusItems, pick, typ) + local total = #statusItems + local waiting, falses = {}, {} + local first, latest = nil, nil + for _, it in ipairs(statusItems) do + local c = nil + if it.status ~= nil then + c = conditionByType(pick(it.status), typ) + end + if c ~= nil and c.lastTransitionTime ~= nil and (latest == nil or c.lastTransitionTime > latest) then + latest = c.lastTransitionTime + end + if c == nil or c.status == nil or c.status == "Unknown" then + waiting[#waiting + 1] = it.clusterName + else + if first == nil then + first = c + end + if c.status ~= "True" then + falses[#falses + 1] = { cluster = it.clusterName, cond = c } + end + end + end + local out = { type = typ, lastTransitionTime = latest or "1970-01-01T00:00:00Z" } + if first ~= nil then + out.observedGeneration = first.observedGeneration + end + if #falses > 0 then + out.status = "False" + out.reason = falses[1].cond.reason + local msg = falses[1].cluster .. ": " .. (falses[1].cond.message or "") + if #falses > 1 then + local others = {} + for i = 2, #falses do + others[#others + 1] = falses[i].cluster + end + msg = msg .. " (also " .. table.concat(others, ", ") .. ")" + end + out.message = msg + elseif #waiting > 0 then + out.status = "Unknown" + out.reason = "Pending" + out.message = "Waiting on " .. table.concat(waiting, ", ") + else + out.status = "True" + out.reason = first.reason + out.message = typ .. " on " .. total .. " of " .. total .. " clusters" + end + return out + end + + local function aggregateConditions(statusItems, pick) + local out = {} + for _, typ in ipairs(typesOf(statusItems, pick)) do + out[#out + 1] = aggregateCondition(statusItems, pick, typ) + end + return out + end + + local function firstWith(statusItems, pick) + for _, it in ipairs(statusItems) do + if it.status ~= nil then + local v = pick(it.status) + if v ~= nil then + return v + end + end + end + return nil + end + + local function refKey(ref, controllerName) + if ref == nil then + ref = {} + end + local parts = { controllerName or "", ref.group or "", ref.kind or "", ref.namespace or "", ref.name or "", ref.sectionName or "" } + if ref.port ~= nil then + parts[#parts + 1] = tostring(ref.port) + else + parts[#parts + 1] = "" + end + return table.concat(parts, "|") + end + + local function aggregateKeyed(statusItems, field, refField) + local function entryWithKey(s, key) + if s[field] == nil then + return nil + end + for _, e in ipairs(s[field]) do + if refKey(e[refField], e.controllerName) == key then + return e + end + end + return nil + end + + local keys, seen = {}, {} + for _, it in ipairs(statusItems) do + if it.status ~= nil and it.status[field] ~= nil then + for _, e in ipairs(it.status[field]) do + local key = refKey(e[refField], e.controllerName) + if not seen[key] then + seen[key] = true + keys[#keys + 1] = key + end + end + end + end + + local out = {} + for _, key in ipairs(keys) do + local base = firstWith(statusItems, function(s) + return entryWithKey(s, key) + end) + local entry = { controllerName = base.controllerName } + entry[refField] = base[refField] + entry.conditions = aggregateConditions(statusItems, function(s) + local e = entryWithKey(s, key) + if e == nil then + return nil + end + return e.conditions + end) + out[#out + 1] = entry + end + return out + end + function AggregateStatus(desiredObj, statusItems) if statusItems == nil or #statusItems == 0 then return desiredObj @@ -91,16 +543,9 @@ spec: if desiredObj.status == nil then desiredObj.status = {} end - - local item = statusItems[1] - if item == nil or item.status == nil then - return desiredObj - end - - -- TODO(jreese) implement proper aggregation logic. Would be good to - -- think through how to represent propagation status across clusters. - if item.status.ancestors ~= nil then - desiredObj.status.ancestors = item.status.ancestors + local ancestors = aggregateKeyed(statusItems, "ancestors", "ancestorRef") + if #ancestors > 0 then + desiredObj.status.ancestors = ancestors end return desiredObj end @@ -115,7 +560,109 @@ spec: kind: Backend customizations: statusAggregation: - luaScript: > + luaScript: | + local function conditionByType(conds, typ) + if conds == nil then + return nil + end + for _, c in ipairs(conds) do + if c.type == typ then + return c + end + end + return nil + end + + local function typesOf(statusItems, pick) + local seen, out = {}, {} + for _, it in ipairs(statusItems) do + local conds = nil + if it.status ~= nil then + conds = pick(it.status) + end + if conds ~= nil then + for _, c in ipairs(conds) do + if c.type ~= nil and not seen[c.type] then + seen[c.type] = true + out[#out + 1] = c.type + end + end + end + end + return out + end + + local function aggregateCondition(statusItems, pick, typ) + local total = #statusItems + local waiting, falses = {}, {} + local first, latest = nil, nil + for _, it in ipairs(statusItems) do + local c = nil + if it.status ~= nil then + c = conditionByType(pick(it.status), typ) + end + if c ~= nil and c.lastTransitionTime ~= nil and (latest == nil or c.lastTransitionTime > latest) then + latest = c.lastTransitionTime + end + if c == nil or c.status == nil or c.status == "Unknown" then + waiting[#waiting + 1] = it.clusterName + else + if first == nil then + first = c + end + if c.status ~= "True" then + falses[#falses + 1] = { cluster = it.clusterName, cond = c } + end + end + end + local out = { type = typ, lastTransitionTime = latest or "1970-01-01T00:00:00Z" } + if first ~= nil then + out.observedGeneration = first.observedGeneration + end + if #falses > 0 then + out.status = "False" + out.reason = falses[1].cond.reason + local msg = falses[1].cluster .. ": " .. (falses[1].cond.message or "") + if #falses > 1 then + local others = {} + for i = 2, #falses do + others[#others + 1] = falses[i].cluster + end + msg = msg .. " (also " .. table.concat(others, ", ") .. ")" + end + out.message = msg + elseif #waiting > 0 then + out.status = "Unknown" + out.reason = "Pending" + out.message = "Waiting on " .. table.concat(waiting, ", ") + else + out.status = "True" + out.reason = first.reason + out.message = typ .. " on " .. total .. " of " .. total .. " clusters" + end + return out + end + + local function aggregateConditions(statusItems, pick) + local out = {} + for _, typ in ipairs(typesOf(statusItems, pick)) do + out[#out + 1] = aggregateCondition(statusItems, pick, typ) + end + return out + end + + local function firstWith(statusItems, pick) + for _, it in ipairs(statusItems) do + if it.status ~= nil then + local v = pick(it.status) + if v ~= nil then + return v + end + end + end + return nil + end + function AggregateStatus(desiredObj, statusItems) if statusItems == nil or #statusItems == 0 then return desiredObj @@ -123,16 +670,11 @@ spec: if desiredObj.status == nil then desiredObj.status = {} end - - local item = statusItems[1] - if item == nil or item.status == nil then - return desiredObj - end - - -- TODO(jreese) implement proper aggregation logic. Would be good to - -- think through how to represent propagation status across clusters. - if item.status.conditions ~= nil then - desiredObj.status.conditions = item.status.conditions + local conditions = aggregateConditions(statusItems, function(s) + return s.conditions + end) + if #conditions > 0 then + desiredObj.status.conditions = conditions end return desiredObj end @@ -147,7 +689,167 @@ spec: kind: BackendTrafficPolicy customizations: statusAggregation: - luaScript: > + luaScript: | + local function conditionByType(conds, typ) + if conds == nil then + return nil + end + for _, c in ipairs(conds) do + if c.type == typ then + return c + end + end + return nil + end + + local function typesOf(statusItems, pick) + local seen, out = {}, {} + for _, it in ipairs(statusItems) do + local conds = nil + if it.status ~= nil then + conds = pick(it.status) + end + if conds ~= nil then + for _, c in ipairs(conds) do + if c.type ~= nil and not seen[c.type] then + seen[c.type] = true + out[#out + 1] = c.type + end + end + end + end + return out + end + + local function aggregateCondition(statusItems, pick, typ) + local total = #statusItems + local waiting, falses = {}, {} + local first, latest = nil, nil + for _, it in ipairs(statusItems) do + local c = nil + if it.status ~= nil then + c = conditionByType(pick(it.status), typ) + end + if c ~= nil and c.lastTransitionTime ~= nil and (latest == nil or c.lastTransitionTime > latest) then + latest = c.lastTransitionTime + end + if c == nil or c.status == nil or c.status == "Unknown" then + waiting[#waiting + 1] = it.clusterName + else + if first == nil then + first = c + end + if c.status ~= "True" then + falses[#falses + 1] = { cluster = it.clusterName, cond = c } + end + end + end + local out = { type = typ, lastTransitionTime = latest or "1970-01-01T00:00:00Z" } + if first ~= nil then + out.observedGeneration = first.observedGeneration + end + if #falses > 0 then + out.status = "False" + out.reason = falses[1].cond.reason + local msg = falses[1].cluster .. ": " .. (falses[1].cond.message or "") + if #falses > 1 then + local others = {} + for i = 2, #falses do + others[#others + 1] = falses[i].cluster + end + msg = msg .. " (also " .. table.concat(others, ", ") .. ")" + end + out.message = msg + elseif #waiting > 0 then + out.status = "Unknown" + out.reason = "Pending" + out.message = "Waiting on " .. table.concat(waiting, ", ") + else + out.status = "True" + out.reason = first.reason + out.message = typ .. " on " .. total .. " of " .. total .. " clusters" + end + return out + end + + local function aggregateConditions(statusItems, pick) + local out = {} + for _, typ in ipairs(typesOf(statusItems, pick)) do + out[#out + 1] = aggregateCondition(statusItems, pick, typ) + end + return out + end + + local function firstWith(statusItems, pick) + for _, it in ipairs(statusItems) do + if it.status ~= nil then + local v = pick(it.status) + if v ~= nil then + return v + end + end + end + return nil + end + + local function refKey(ref, controllerName) + if ref == nil then + ref = {} + end + local parts = { controllerName or "", ref.group or "", ref.kind or "", ref.namespace or "", ref.name or "", ref.sectionName or "" } + if ref.port ~= nil then + parts[#parts + 1] = tostring(ref.port) + else + parts[#parts + 1] = "" + end + return table.concat(parts, "|") + end + + local function aggregateKeyed(statusItems, field, refField) + local function entryWithKey(s, key) + if s[field] == nil then + return nil + end + for _, e in ipairs(s[field]) do + if refKey(e[refField], e.controllerName) == key then + return e + end + end + return nil + end + + local keys, seen = {}, {} + for _, it in ipairs(statusItems) do + if it.status ~= nil and it.status[field] ~= nil then + for _, e in ipairs(it.status[field]) do + local key = refKey(e[refField], e.controllerName) + if not seen[key] then + seen[key] = true + keys[#keys + 1] = key + end + end + end + end + + local out = {} + for _, key in ipairs(keys) do + local base = firstWith(statusItems, function(s) + return entryWithKey(s, key) + end) + local entry = { controllerName = base.controllerName } + entry[refField] = base[refField] + entry.conditions = aggregateConditions(statusItems, function(s) + local e = entryWithKey(s, key) + if e == nil then + return nil + end + return e.conditions + end) + out[#out + 1] = entry + end + return out + end + function AggregateStatus(desiredObj, statusItems) if statusItems == nil or #statusItems == 0 then return desiredObj @@ -155,16 +857,9 @@ spec: if desiredObj.status == nil then desiredObj.status = {} end - - local item = statusItems[1] - if item == nil or item.status == nil then - return desiredObj - end - - -- TODO(jreese) implement proper aggregation logic. Would be good to - -- think through how to represent propagation status across clusters. - if item.status.ancestors ~= nil then - desiredObj.status.ancestors = item.status.ancestors + local ancestors = aggregateKeyed(statusItems, "ancestors", "ancestorRef") + if #ancestors > 0 then + desiredObj.status.ancestors = ancestors end return desiredObj end @@ -179,7 +874,167 @@ spec: kind: SecurityPolicy customizations: statusAggregation: - luaScript: > + luaScript: | + local function conditionByType(conds, typ) + if conds == nil then + return nil + end + for _, c in ipairs(conds) do + if c.type == typ then + return c + end + end + return nil + end + + local function typesOf(statusItems, pick) + local seen, out = {}, {} + for _, it in ipairs(statusItems) do + local conds = nil + if it.status ~= nil then + conds = pick(it.status) + end + if conds ~= nil then + for _, c in ipairs(conds) do + if c.type ~= nil and not seen[c.type] then + seen[c.type] = true + out[#out + 1] = c.type + end + end + end + end + return out + end + + local function aggregateCondition(statusItems, pick, typ) + local total = #statusItems + local waiting, falses = {}, {} + local first, latest = nil, nil + for _, it in ipairs(statusItems) do + local c = nil + if it.status ~= nil then + c = conditionByType(pick(it.status), typ) + end + if c ~= nil and c.lastTransitionTime ~= nil and (latest == nil or c.lastTransitionTime > latest) then + latest = c.lastTransitionTime + end + if c == nil or c.status == nil or c.status == "Unknown" then + waiting[#waiting + 1] = it.clusterName + else + if first == nil then + first = c + end + if c.status ~= "True" then + falses[#falses + 1] = { cluster = it.clusterName, cond = c } + end + end + end + local out = { type = typ, lastTransitionTime = latest or "1970-01-01T00:00:00Z" } + if first ~= nil then + out.observedGeneration = first.observedGeneration + end + if #falses > 0 then + out.status = "False" + out.reason = falses[1].cond.reason + local msg = falses[1].cluster .. ": " .. (falses[1].cond.message or "") + if #falses > 1 then + local others = {} + for i = 2, #falses do + others[#others + 1] = falses[i].cluster + end + msg = msg .. " (also " .. table.concat(others, ", ") .. ")" + end + out.message = msg + elseif #waiting > 0 then + out.status = "Unknown" + out.reason = "Pending" + out.message = "Waiting on " .. table.concat(waiting, ", ") + else + out.status = "True" + out.reason = first.reason + out.message = typ .. " on " .. total .. " of " .. total .. " clusters" + end + return out + end + + local function aggregateConditions(statusItems, pick) + local out = {} + for _, typ in ipairs(typesOf(statusItems, pick)) do + out[#out + 1] = aggregateCondition(statusItems, pick, typ) + end + return out + end + + local function firstWith(statusItems, pick) + for _, it in ipairs(statusItems) do + if it.status ~= nil then + local v = pick(it.status) + if v ~= nil then + return v + end + end + end + return nil + end + + local function refKey(ref, controllerName) + if ref == nil then + ref = {} + end + local parts = { controllerName or "", ref.group or "", ref.kind or "", ref.namespace or "", ref.name or "", ref.sectionName or "" } + if ref.port ~= nil then + parts[#parts + 1] = tostring(ref.port) + else + parts[#parts + 1] = "" + end + return table.concat(parts, "|") + end + + local function aggregateKeyed(statusItems, field, refField) + local function entryWithKey(s, key) + if s[field] == nil then + return nil + end + for _, e in ipairs(s[field]) do + if refKey(e[refField], e.controllerName) == key then + return e + end + end + return nil + end + + local keys, seen = {}, {} + for _, it in ipairs(statusItems) do + if it.status ~= nil and it.status[field] ~= nil then + for _, e in ipairs(it.status[field]) do + local key = refKey(e[refField], e.controllerName) + if not seen[key] then + seen[key] = true + keys[#keys + 1] = key + end + end + end + end + + local out = {} + for _, key in ipairs(keys) do + local base = firstWith(statusItems, function(s) + return entryWithKey(s, key) + end) + local entry = { controllerName = base.controllerName } + entry[refField] = base[refField] + entry.conditions = aggregateConditions(statusItems, function(s) + local e = entryWithKey(s, key) + if e == nil then + return nil + end + return e.conditions + end) + out[#out + 1] = entry + end + return out + end + function AggregateStatus(desiredObj, statusItems) if statusItems == nil or #statusItems == 0 then return desiredObj @@ -187,14 +1042,9 @@ spec: if desiredObj.status == nil then desiredObj.status = {} end - - local item = statusItems[1] - if item == nil or item.status == nil then - return desiredObj - end - - if item.status.ancestors ~= nil then - desiredObj.status.ancestors = item.status.ancestors + local ancestors = aggregateKeyed(statusItems, "ancestors", "ancestorRef") + if #ancestors > 0 then + desiredObj.status.ancestors = ancestors end return desiredObj end diff --git a/test/e2e-edge/README.md b/test/e2e-edge/README.md index 4563e9fa..566d922e 100644 --- a/test/e2e-edge/README.md +++ b/test/e2e-edge/README.md @@ -37,6 +37,15 @@ policy and not by some unrelated default. This guards the customer's actual protection, and the risk that a single bad firewall rule wedges the whole listener. +### Programmed means every serving edge +A Gateway's status on the hub is aggregated across every edge it is placed on. +With the only edge's Envoy Gateway held back, a new Gateway must read +`Programmed=Unknown` with reason `Pending` and a message naming that edge, on +the hub and on the customer-facing Gateway. Once the edge is released it must +read `True` with a message counting every edge, and a real request must then +succeed. This guards against a Gateway reporting ready while an edge has not +got it yet, and against a single edge speaking for the whole fleet. + ### Offline backend returns a clean 503 When a backend connector is offline, the customer-facing path must return a real 503 — not hang, and not serve a blank. This is checked as an observed diff --git a/test/e2e-edge/federated-status-pending/chainsaw-test.yaml b/test/e2e-edge/federated-status-pending/chainsaw-test.yaml new file mode 100644 index 00000000..2be6f05f --- /dev/null +++ b/test/e2e-edge/federated-status-pending/chainsaw-test.yaml @@ -0,0 +1,286 @@ +# yaml-language-server: $schema=https://raw.githubusercontent.com/kyverno/chainsaw/main/.schemas/json/test-chainsaw-v1alpha1.json +# +# A Gateway federated through the hub must read Programmed Unknown/Pending +# naming the edge while that edge's Envoy Gateway is held back, then True +# counting every edge once it is released, and then serve a real request. +# +# Cluster names: nso-upstream (control) / nso-downstream (edge) / karmada (hub). +apiVersion: chainsaw.kyverno.io/v1alpha1 +kind: Test +metadata: + name: federated-status-pending +spec: + cluster: nso-upstream + steps: + - name: Federated namespace on the hub + try: + - create: + cluster: karmada + resource: + apiVersion: v1 + kind: Namespace + metadata: + name: ($namespace) + labels: + meta.datumapis.com/upstream-namespace: ($namespace) + meta.datumapis.com/upstream-cluster-name: e2e + - assert: + timeout: 120s + cluster: nso-downstream + resource: + apiVersion: v1 + kind: Namespace + metadata: + name: ($namespace) + + - name: Backend pod and service on the edge + try: + - create: + cluster: nso-downstream + resource: + apiVersion: v1 + kind: Pod + metadata: + name: backend-pod + namespace: ($namespace) + labels: + purpose: backend-pod + spec: + containers: + - name: test-plaintext + image: ghcr.io/mccutchen/go-httpbin:2.18.1 + command: ["/bin/go-httpbin"] + args: ["-host", "0.0.0.0", "-port", "8080"] + resources: + requests: { cpu: 100m, memory: 128Mi } + limits: { cpu: 100m, memory: 128Mi } + - create: + cluster: nso-downstream + resource: + apiVersion: v1 + kind: Service + metadata: + name: backend-service + namespace: ($namespace) + spec: + ports: + - name: http + port: 8080 + targetPort: 8080 + selector: + purpose: backend-pod + + - name: Hold the edge back + try: + - script: + cluster: nso-downstream + timeout: 180s + content: | + kubectl -n datum-downstream-gateway scale deploy/envoy-gateway --replicas=0 + kubectl -n datum-downstream-gateway rollout status deploy/envoy-gateway --timeout=120s + cleanup: + - script: + cluster: nso-downstream + timeout: 300s + content: | + kubectl -n datum-downstream-gateway scale deploy/envoy-gateway --replicas=1 + kubectl -n datum-downstream-gateway wait deploy/envoy-gateway --for=condition=Available --timeout=240s + + - name: A new Gateway reads Pending naming the held edge + try: + - create: + cluster: karmada + resource: + apiVersion: gateway.networking.k8s.io/v1 + kind: Gateway + metadata: + name: test-gateway + namespace: ($namespace) + labels: + meta.datumapis.com/upstream-cluster-name: e2e + spec: + gatewayClassName: datum-downstream-gateway-e2e + listeners: + - protocol: HTTP + port: 80 + name: http-test-e2e + allowedRoutes: + namespaces: + from: Same + hostname: test.e2e.env.datum.net + + - assert: + timeout: 120s + cluster: nso-downstream + resource: + apiVersion: gateway.networking.k8s.io/v1 + kind: Gateway + metadata: + name: test-gateway + namespace: ($namespace) + + - assert: + timeout: 120s + cluster: karmada + resource: + apiVersion: gateway.networking.k8s.io/v1 + kind: Gateway + metadata: + name: test-gateway + namespace: ($namespace) + status: + (conditions[?type == 'Programmed']): + - status: Unknown + reason: Pending + message: Waiting on nso-downstream + + - name: Release the edge and the Gateway reads Programmed on every edge + try: + - script: + cluster: nso-downstream + timeout: 300s + content: | + kubectl -n datum-downstream-gateway scale deploy/envoy-gateway --replicas=1 + kubectl -n datum-downstream-gateway wait deploy/envoy-gateway --for=condition=Available --timeout=240s + + - assert: + timeout: 240s + cluster: karmada + resource: + apiVersion: gateway.networking.k8s.io/v1 + kind: Gateway + metadata: + name: test-gateway + namespace: ($namespace) + status: + (conditions[?type == 'Programmed']): + - status: "True" + reason: Programmed + message: Programmed on 1 of 1 clusters + + - name: Federated HTTPRoute + try: + - create: + cluster: karmada + resource: + apiVersion: gateway.networking.k8s.io/v1 + kind: HTTPRoute + metadata: + name: test-route + namespace: ($namespace) + labels: + meta.datumapis.com/upstream-cluster-name: e2e + spec: + parentRefs: + - name: test-gateway + kind: Gateway + rules: + - matches: + - path: + type: PathPrefix + value: /plaintext + backendRefs: + - name: backend-service + port: 8080 + filters: + - type: URLRewrite + urlRewrite: + path: + type: ReplacePrefixMatch + replacePrefixMatch: / + + - assert: + timeout: 120s + cluster: karmada + resource: + apiVersion: gateway.networking.k8s.io/v1 + kind: HTTPRoute + metadata: + name: test-route + namespace: ($namespace) + status: + parents: + - conditions: + - reason: Accepted + status: "True" + type: Accepted + message: Accepted on 1 of 1 clusters + - reason: ResolvedRefs + status: "True" + type: ResolvedRefs + + - name: Real HTTP 200 through the data plane + try: + - script: + cluster: nso-downstream + skipCommandOutput: true + skipLogOutput: true + content: | + kubectl get svc -n datum-downstream-gateway -l gateway.envoyproxy.io/owning-gatewayclass=datum-downstream-gateway-e2e -o json + outputs: + - name: gatewayService + value: (json_parse($stdout).items | [0]) + + - assert: + cluster: nso-downstream + resource: + apiVersion: v1 + kind: Pod + metadata: + name: backend-pod + namespace: ($namespace) + status: + phase: Running + + - create: + cluster: nso-downstream + resource: + apiVersion: v1 + kind: Pod + metadata: + name: test-pod + namespace: ($namespace) + spec: + containers: + - name: connectivity-test + image: alpine:3.21.3 + command: ["/bin/sh", "-c", "sleep infinity"] + resources: + requests: { cpu: 100m, memory: 128Mi } + limits: { cpu: 100m, memory: 1Gi } + env: + - name: GATEWAY_SERVICE_NAME + value: ($gatewayService.metadata.name) + - name: GATEWAY_SERVICE_NAMESPACE + value: ($gatewayService.metadata.namespace) + lifecycle: + postStart: + exec: + command: ["apk", "add", "curl"] + terminationGracePeriodSeconds: 0 + + - assert: + cluster: nso-downstream + resource: + apiVersion: v1 + kind: Pod + metadata: + name: test-pod + namespace: ($namespace) + status: + phase: Running + + - sleep: + duration: 15s + + - script: + cluster: nso-downstream + timeout: 120s + content: | + kubectl -n $NAMESPACE exec -i test-pod -- sh -c " \ + set -x; \ + for i in 1 2 3 4 5 6; do \ + curl -svf -H 'Host: test.e2e.env.datum.net' http://\${GATEWAY_SERVICE_NAME}.\${GATEWAY_SERVICE_NAMESPACE}.svc.cluster.local/plaintext/status/200 && exit 0; \ + sleep 5; \ + done; \ + exit 1" diff --git a/test/federation-interpreters/gateway_test.go b/test/federation-interpreters/gateway_test.go new file mode 100644 index 00000000..9c097625 --- /dev/null +++ b/test/federation-interpreters/gateway_test.go @@ -0,0 +1,242 @@ +package interpreters + +import ( + "encoding/json" + "fmt" + "testing" + + workv1alpha2 "github.com/karmada-io/karmada/pkg/apis/work/v1alpha2" + "github.com/karmada-io/karmada/pkg/resourceinterpreter/customized/declarative/luavm" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" +) + +const gatewayRule = "gateway.networking.k8s.io-gateway" + +type listenerFix struct { + name string + programmed string + attachedRoutes int +} + +func cond(typ, status string, i int) map[string]any { + reason := map[string]string{"True": "Programmed", "False": "NoResources", "Unknown": "Pending"}[status] + if typ == "Accepted" { + reason = "Accepted" + } + return map[string]any{ + "type": typ, "status": status, "reason": reason, "message": "from member", + "observedGeneration": int64(1), "lastTransitionTime": fmt.Sprintf("2026-01-0%dT00:00:00Z", i), + } +} + +func gatewayStatus(i int, programmed string, listeners ...listenerFix) map[string]any { + conds := []any{cond("Accepted", "True", i)} + if programmed != "" { + conds = append(conds, cond("Programmed", programmed, i)) + } + status := map[string]any{ + "addresses": []any{map[string]any{"type": "IPAddress", "value": "192.0.2.1"}}, + "conditions": conds, + } + var ls []any + for _, l := range listeners { + ls = append(ls, map[string]any{ + "name": l.name, + "supportedKinds": []any{map[string]any{"group": "gateway.networking.k8s.io", "kind": "HTTPRoute"}}, + "attachedRoutes": int64(l.attachedRoutes), + "conditions": []any{cond("Programmed", l.programmed, i)}, + }) + } + if ls != nil { + status["listeners"] = ls + } + return status +} + +func gatewayItems(t *testing.T, programmed ...string) []workv1alpha2.AggregatedStatusItem { + t.Helper() + var out []workv1alpha2.AggregatedStatusItem + for i, p := range programmed { + out = append(out, item(fmt.Sprintf("edge-%c", 'a'+i), gatewayStatus(i+1, p))) + } + return out +} + +func runGateway(t *testing.T, items []workv1alpha2.AggregatedStatusItem) *unstructured.Unstructured { + t.Helper() + rule := loadRules(t)[gatewayRule] + return aggregate(t, luavm.New(false, 1), rule, desired(rule), items) +} + +func programmed(obj *unstructured.Unstructured) map[string]any { + return condition(obj, []string{"status", "conditions"}, "Programmed") +} + +func TestGateway_AllTrue(t *testing.T) { + got := runGateway(t, gatewayItems(t, "True", "True", "True")) + c := programmed(got) + require.NotNil(t, c) + assert.Equal(t, "True", c["status"]) + assert.Equal(t, "Programmed", c["reason"]) + assert.Equal(t, "Programmed on 3 of 3 clusters", c["message"]) + assert.Equal(t, "2026-01-03T00:00:00Z", c["lastTransitionTime"]) + addrs, _, _ := unstructured.NestedSlice(got.Object, "status", "addresses") + require.Len(t, addrs, 1) + assert.Equal(t, "192.0.2.1", addrs[0].(map[string]any)["value"]) +} + +func TestGateway_OneFalse(t *testing.T) { + c := programmed(runGateway(t, gatewayItems(t, "True", "False", "True"))) + require.NotNil(t, c) + assert.Equal(t, "False", c["status"]) + assert.Equal(t, "NoResources", c["reason"]) + assert.Equal(t, "edge-b: from member", c["message"]) +} + +func TestGateway_TwoFalse(t *testing.T) { + c := programmed(runGateway(t, gatewayItems(t, "True", "False", "False"))) + require.NotNil(t, c) + assert.Equal(t, "False", c["status"]) + assert.Equal(t, "edge-b: from member (also edge-c)", c["message"]) +} + +func TestGateway_OneNoStatus(t *testing.T) { + items := gatewayItems(t, "True", "True") + items = append(items, item("edge-c", nil)) + c := programmed(runGateway(t, items)) + require.NotNil(t, c) + assert.Equal(t, "Unknown", c["status"]) + assert.Equal(t, "Pending", c["reason"]) + assert.Equal(t, "Waiting on edge-c", c["message"]) +} + +func TestGateway_OneEmptyStatus(t *testing.T) { + items := gatewayItems(t, "True", "True") + items = append(items, item("edge-c", map[string]any{})) + c := programmed(runGateway(t, items)) + require.NotNil(t, c) + assert.Equal(t, "Unknown", c["status"]) + assert.Equal(t, "Pending", c["reason"]) + assert.Equal(t, "Waiting on edge-c", c["message"]) +} + +func TestGateway_OneUnknown(t *testing.T) { + c := programmed(runGateway(t, gatewayItems(t, "True", "Unknown", "True"))) + require.NotNil(t, c) + assert.Equal(t, "Unknown", c["status"]) + assert.Equal(t, "Pending", c["reason"]) + assert.Equal(t, "Waiting on edge-b", c["message"]) +} + +func TestGateway_MissingConditionType(t *testing.T) { + got := runGateway(t, gatewayItems(t, "True", "", "True")) + c := programmed(got) + require.NotNil(t, c) + assert.Equal(t, "Unknown", c["status"]) + assert.Equal(t, "Waiting on edge-b", c["message"]) + a := condition(got, []string{"status", "conditions"}, "Accepted") + require.NotNil(t, a) + assert.Equal(t, "True", a["status"]) + assert.Equal(t, "Accepted on 3 of 3 clusters", a["message"]) +} + +func TestGateway_SingleCluster(t *testing.T) { + c := programmed(runGateway(t, gatewayItems(t, "True"))) + require.NotNil(t, c) + assert.Equal(t, "True", c["status"]) + assert.Equal(t, "Programmed on 1 of 1 clusters", c["message"]) +} + +func listener(obj *unstructured.Unstructured, name string) map[string]any { + ls, _, _ := unstructured.NestedSlice(obj.Object, "status", "listeners") + for _, l := range ls { + if m := l.(map[string]any); m["name"] == name { + return m + } + } + return nil +} + +func listenerCondition(l map[string]any, typ string) map[string]any { + return condition(&unstructured.Unstructured{Object: map[string]any{"l": l}}, []string{"l", "conditions"}, typ) +} + +func TestGateway_ListenerMissingOnOne(t *testing.T) { + items := []workv1alpha2.AggregatedStatusItem{ + item("edge-a", gatewayStatus(1, "True", listenerFix{"http", "True", 1}, listenerFix{"https", "True", 1})), + item("edge-b", gatewayStatus(2, "True", listenerFix{"http", "True", 1})), + } + got := runGateway(t, items) + https := listener(got, "https") + require.NotNil(t, https) + c := listenerCondition(https, "Programmed") + require.NotNil(t, c) + assert.Equal(t, "Unknown", c["status"]) + assert.Equal(t, "Waiting on edge-b", c["message"]) + http := listener(got, "http") + require.NotNil(t, http) + assert.Equal(t, "True", listenerCondition(http, "Programmed")["status"]) + assert.Equal(t, "Programmed on 2 of 2 clusters", listenerCondition(http, "Programmed")["message"]) +} + +func TestGateway_ListenerAttachedRoutesFromFirst(t *testing.T) { + items := []workv1alpha2.AggregatedStatusItem{ + item("edge-a", gatewayStatus(1, "True", listenerFix{"http", "True", 2})), + item("edge-b", gatewayStatus(2, "True", listenerFix{"http", "True", 5})), + } + http := listener(runGateway(t, items), "http") + require.NotNil(t, http) + assert.EqualValues(t, 2, http["attachedRoutes"]) + assert.Len(t, http["supportedKinds"], 1) +} + +func TestGateway_EmptyConditionsRoundTrip(t *testing.T) { + items := []workv1alpha2.AggregatedStatusItem{ + item("edge-a", map[string]any{"conditions": []any{}}), + item("edge-b", map[string]any{"conditions": []any{}}), + } + got := runGateway(t, items) + raw, err := json.Marshal(got.Object) + require.NoError(t, err) + assert.NotContains(t, string(raw), `"conditions":{}`) + _, found, _ := unstructured.NestedFieldNoCopy(got.Object, "status", "conditions") + assert.False(t, found, "an empty list is dropped by the VM, never emitted as an object") +} + +func TestGateway_ObservedGenerationFromFirst(t *testing.T) { + a := gatewayStatus(1, "True") + a["conditions"].([]any)[1].(map[string]any)["observedGeneration"] = int64(4) + b := gatewayStatus(2, "True") + b["conditions"].([]any)[1].(map[string]any)["observedGeneration"] = int64(7) + c := programmed(runGateway(t, []workv1alpha2.AggregatedStatusItem{item("edge-a", a), item("edge-b", b)})) + require.NotNil(t, c) + assert.EqualValues(t, 4, c["observedGeneration"]) +} + +func TestGateway_EmptyList(t *testing.T) { + rule := loadRules(t)[gatewayRule] + want := desired(rule) + got := aggregate(t, luavm.New(false, 1), rule, desired(rule), nil) + assert.Equal(t, want, got.Object) +} + +func TestGateway_AllWaitingStillCarriesLastTransitionTime(t *testing.T) { + a := gatewayStatus(1, "Unknown") + a["conditions"].([]any)[1].(map[string]any)["lastTransitionTime"] = "1970-01-01T00:00:00Z" + b := gatewayStatus(2, "Unknown") + c := programmed(runGateway(t, []workv1alpha2.AggregatedStatusItem{item("edge-a", a), item("edge-b", b)})) + require.NotNil(t, c) + assert.Equal(t, "Unknown", c["status"]) + assert.Equal(t, "Waiting on edge-a, edge-b", c["message"]) + assert.Equal(t, "2026-01-02T00:00:00Z", c["lastTransitionTime"]) +} + +func TestGateway_NoReportedTimeFallsBackToEpoch(t *testing.T) { + c := programmed(runGateway(t, []workv1alpha2.AggregatedStatusItem{ + item("edge-a", map[string]any{"conditions": []any{map[string]any{"type": "Programmed", "status": "Unknown"}}}), + })) + require.NotNil(t, c) + assert.Equal(t, "1970-01-01T00:00:00Z", c["lastTransitionTime"]) +} diff --git a/test/federation-interpreters/go.mod b/test/federation-interpreters/go.mod new file mode 100644 index 00000000..e236492c --- /dev/null +++ b/test/federation-interpreters/go.mod @@ -0,0 +1,90 @@ +module go.datum.net/network-services-operator/test/federation-interpreters + +go 1.26.7 + +toolchain go1.27.3 + +require ( + github.com/karmada-io/karmada v1.19.0 + github.com/stretchr/testify v1.12.1 + k8s.io/apimachinery v0.36.4 + sigs.k8s.io/yaml v1.6.0 +) + +require ( + github.com/beorn7/perks v1.0.1 // indirect + github.com/blang/semver/v4 v4.0.0 // indirect + github.com/cespare/xxhash/v2 v2.3.0 // indirect + github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect + github.com/emicklei/go-restful/v3 v3.13.0 // indirect + github.com/evanphx/json-patch/v5 v5.9.11 // indirect + github.com/fsnotify/fsnotify v1.10.1 // indirect + github.com/fxamacker/cbor/v2 v2.9.2 // indirect + github.com/go-logr/logr v1.4.3 // indirect + github.com/go-openapi/jsonpointer v0.23.1 // indirect + github.com/go-openapi/jsonreference v0.21.6 // indirect + github.com/go-openapi/swag v0.26.0 // indirect + github.com/go-openapi/swag/cmdutils v0.26.0 // indirect + github.com/go-openapi/swag/conv v0.26.0 // indirect + github.com/go-openapi/swag/fileutils v0.26.0 // indirect + github.com/go-openapi/swag/jsonname v0.26.0 // indirect + github.com/go-openapi/swag/jsonutils v0.26.0 // indirect + github.com/go-openapi/swag/loading v0.26.0 // indirect + github.com/go-openapi/swag/mangling v0.26.0 // indirect + github.com/go-openapi/swag/netutils v0.26.0 // indirect + github.com/go-openapi/swag/stringutils v0.26.0 // indirect + github.com/go-openapi/swag/typeutils v0.26.0 // indirect + github.com/go-openapi/swag/yamlutils v0.26.0 // indirect + github.com/google/gnostic-models v0.7.1 // indirect + github.com/google/uuid v1.6.0 // indirect + github.com/inconshreveable/mousetrap v1.1.0 // indirect + github.com/json-iterator/go v1.1.12 // indirect + github.com/kr/pretty v0.3.1 // indirect + github.com/kr/text v0.2.0 // indirect + github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect + github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee // indirect + github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect + github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect + github.com/prometheus/client_golang v1.23.2 // indirect + github.com/prometheus/client_model v0.6.2 // indirect + github.com/prometheus/common v0.68.1 // indirect + github.com/prometheus/procfs v0.20.1 // indirect + github.com/rogpeppe/go-internal v1.14.1 // indirect + github.com/spf13/cobra v1.10.2 // indirect + github.com/spf13/pflag v1.0.10 // indirect + github.com/tidwall/gjson v1.18.0 // indirect + github.com/tidwall/match v1.1.1 // indirect + github.com/tidwall/pretty v1.2.1 // indirect + github.com/tidwall/sjson v1.2.5 // indirect + github.com/x448/float16 v0.8.4 // indirect + github.com/yuin/gopher-lua v1.1.1 // indirect + go.opentelemetry.io/otel v1.44.0 // indirect + go.opentelemetry.io/otel/trace v1.44.0 // indirect + go.yaml.in/yaml/v2 v2.4.4 // indirect + go.yaml.in/yaml/v3 v3.0.5 // indirect + golang.org/x/net v0.56.0 // indirect + golang.org/x/oauth2 v0.36.0 // indirect + golang.org/x/sync v0.21.0 // indirect + golang.org/x/sys v0.46.0 // indirect + golang.org/x/term v0.44.0 // indirect + golang.org/x/text v0.39.0 // indirect + golang.org/x/time v0.15.0 // indirect + gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect + google.golang.org/protobuf v1.36.12-0.20260120151049-f2248ac996af // indirect + gopkg.in/evanphx/json-patch.v4 v4.13.0 // indirect + gopkg.in/inf.v0 v0.9.1 // indirect + k8s.io/api v0.36.4 // indirect + k8s.io/apiextensions-apiserver v0.36.4 // indirect + k8s.io/apiserver v0.36.4 // indirect + k8s.io/client-go v0.36.4 // indirect + k8s.io/component-base v0.36.4 // indirect + k8s.io/klog/v2 v2.140.0 // indirect + k8s.io/kube-openapi v0.0.0-20260520065146-aa012df4f4af // indirect + k8s.io/utils v0.0.0-20260507154919-ff6756f316d2 // indirect + layeh.com/gopher-json v0.0.0-20201124131017-552bb3c4c3bf // indirect + sigs.k8s.io/controller-runtime v0.24.1 // indirect + sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730 // indirect + sigs.k8s.io/mcs-api v0.1.0 // indirect + sigs.k8s.io/randfill v1.0.0 // indirect + sigs.k8s.io/structured-merge-diff/v6 v6.4.0 // indirect +) diff --git a/test/federation-interpreters/go.sum b/test/federation-interpreters/go.sum new file mode 100644 index 00000000..3563d1d6 --- /dev/null +++ b/test/federation-interpreters/go.sum @@ -0,0 +1,672 @@ +cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= +github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78/go.mod h1:LmzpDX56iTiv29bbRTIsUNlaFfuhWRQBWjQdVyAevI8= +github.com/Azure/go-autorest/autorest v0.9.0/go.mod h1:xyHB1BMZT0cuDHU7I0+g046+BFDTQ8rEZB0s4Yfa6bI= +github.com/Azure/go-autorest/autorest/adal v0.5.0/go.mod h1:8Z9fGy2MpX0PvDjB1pEgQTmVqjGhiHBW7RJJEciWzS0= +github.com/Azure/go-autorest/autorest/date v0.1.0/go.mod h1:plvfp3oPSKwf2DNjlBjWF/7vwR+cUD/ELuzDCXwHUVA= +github.com/Azure/go-autorest/autorest/mocks v0.1.0/go.mod h1:OTyCOPRA2IgIlWxVYxBee2F5Gr4kF2zd2J5cFRaIDN0= +github.com/Azure/go-autorest/autorest/mocks v0.2.0/go.mod h1:OTyCOPRA2IgIlWxVYxBee2F5Gr4kF2zd2J5cFRaIDN0= +github.com/Azure/go-autorest/logger v0.1.0/go.mod h1:oExouG+K6PryycPJfVSxi/koC6LSNgds39diKLz7Vrc= +github.com/Azure/go-autorest/tracing v0.5.0/go.mod h1:r/s2XiOKccPW3HrqB+W0TQzfbtp2fGCgRFtBroKn4Dk= +github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= +github.com/Masterminds/semver/v3 v3.4.0 h1:Zog+i5UMtVoCU8oKka5P7i9q9HgrJeGzI9SA1Xbatp0= +github.com/Masterminds/semver/v3 v3.4.0/go.mod h1:4V+yj/TJE1HU9XfppCwVMZq3I84lprf4nC11bSS5beM= +github.com/NYTimes/gziphandler v0.0.0-20170623195520-56545f4a5d46/go.mod h1:3wb06e3pkSAbeQ52E9H9iFoQsEEwGN64994WTCIhntQ= +github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= +github.com/PuerkitoBio/purell v1.0.0/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= +github.com/PuerkitoBio/purell v1.1.0/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= +github.com/PuerkitoBio/purell v1.1.1/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= +github.com/PuerkitoBio/urlesc v0.0.0-20160726150825-5bd2802263f2/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE= +github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE= +github.com/agnivade/levenshtein v1.0.1/go.mod h1:CURSv5d9Uaml+FovSIICkLbAUZ9S4RqaHDIsdSBg7lM= +github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= +github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= +github.com/alessio/shellescape v1.2.2/go.mod h1:PZAiSCk0LJaZkiCSkPv8qIobYglO3FPpyFjDCtHLS30= +github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883/go.mod h1:rCTlJbsFo29Kk6CurOXKm700vrz8f0KW0JNfpkRJY/8= +github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8= +github.com/asaskevich/govalidator v0.0.0-20180720115003-f9ffefc3facf/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY= +github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY= +github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= +github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= +github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= +github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= +github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= +github.com/blang/semver v3.5.0+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk= +github.com/blang/semver/v4 v4.0.0 h1:1PFHFE6yCCTv8C1TeyNNarDzntLi7wMI5i/pzqYIsAM= +github.com/blang/semver/v4 v4.0.0/go.mod h1:IbckMUScFkM3pff0VJDNKRiT6TG/YpiHIM2yvyW5YoQ= +github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= +github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= +github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= +github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= +github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8= +github.com/coreos/bbolt v1.3.2/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk= +github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= +github.com/coreos/go-etcd v2.0.0+incompatible/go.mod h1:Jez6KQU2B/sWsbdaef3ED8NzMklzPG4d5KIOhIy30Tk= +github.com/coreos/go-oidc v2.1.0+incompatible/go.mod h1:CgnwVTmzoESiwO9qyAFEMiHoZ1nMCKZlZ9V6mm3/LKc= +github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= +github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= +github.com/coreos/go-systemd v0.0.0-20180511133405-39ca1b05acc7/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= +github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= +github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= +github.com/coreos/pkg v0.0.0-20180108230652-97fdf19511ea/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= +github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= +github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE= +github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= +github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g= +github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY= +github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= +github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= +github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no= +github.com/docker/docker v0.7.3-0.20190327010347-be7ac8be2ae0/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= +github.com/docker/go-units v0.3.3/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= +github.com/docker/go-units v0.4.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= +github.com/docker/spdystream v0.0.0-20160310174837-449fdfce4d96/go.mod h1:Qh8CwZgvJUkLughtfhJv5dyTYa91l1fOUCrgjqmcifM= +github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815/go.mod h1:WwZ+bS3ebgob9U8Nd0kOddGdZWjyMGR8Wziv+TBNwSE= +github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= +github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= +github.com/elazarl/goproxy v0.0.0-20180725130230-947c36da3153/go.mod h1:/Zj4wYkgs4iZTTu3o/KG3Itv/qCCa8VVMlb3i9OVuzc= +github.com/emicklei/go-restful v0.0.0-20170410110728-ff4f55a20633/go.mod h1:otzb+WCGbkyDHkqmQmT5YD2WR4BBwUdeQoFo8l/7tVs= +github.com/emicklei/go-restful v2.9.5+incompatible/go.mod h1:otzb+WCGbkyDHkqmQmT5YD2WR4BBwUdeQoFo8l/7tVs= +github.com/emicklei/go-restful/v3 v3.13.0 h1:C4Bl2xDndpU6nJ4bc1jXd+uTmYPVUwkD6bFY/oTyCes= +github.com/emicklei/go-restful/v3 v3.13.0/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRry+4bhvbpWn3mrbc= +github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= +github.com/evanphx/json-patch v4.2.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= +github.com/evanphx/json-patch v4.5.0+incompatible h1:ouOWdg56aJriqS0huScTkVXPC5IcNrDCXZ6OoTAWu7M= +github.com/evanphx/json-patch v4.5.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= +github.com/evanphx/json-patch/v5 v5.0.0/go.mod h1:G79N1coSVB93tBe7j6PhzjmR3/2VvlbKOFpnXhI9Bw4= +github.com/evanphx/json-patch/v5 v5.9.11 h1:/8HVnzMq13/3x9TPvjG08wUGqBTmZBsCWzjTM0wiaDU= +github.com/evanphx/json-patch/v5 v5.9.11/go.mod h1:3j+LviiESTElxA4p3EMKAB9HXj3/XEtnUf6OZxqIQTM= +github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= +github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= +github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= +github.com/fsnotify/fsnotify v1.10.1 h1:b0/UzAf9yR5rhf3RPm9gf3ehBPpf0oZKIjtpKrx59Ho= +github.com/fsnotify/fsnotify v1.10.1/go.mod h1:TLheqan6HD6GBK6PrDWyDPBaEV8LspOxvPSjC+bVfgo= +github.com/fxamacker/cbor/v2 v2.9.2 h1:X4Ksno9+x3cz0TZv69ec1hxP/+tymuR8PXQJyDwfh78= +github.com/fxamacker/cbor/v2 v2.9.2/go.mod h1:vM4b+DJCtHn+zz7h3FFp/hDAI9WNWCsZj23V5ytsSxQ= +github.com/ghodss/yaml v0.0.0-20150909031657-73d445a93680/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= +github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= +github.com/globalsign/mgo v0.0.0-20180905125535-1ca0a4f7cbcb/go.mod h1:xkRDCp4j0OGD1HRkm4kmhM+pmpv3AKq5SU7GMg4oO/Q= +github.com/globalsign/mgo v0.0.0-20181015135952-eeefdecb41b8/go.mod h1:xkRDCp4j0OGD1HRkm4kmhM+pmpv3AKq5SU7GMg4oO/Q= +github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= +github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= +github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= +github.com/go-logr/logr v0.1.0/go.mod h1:ixOQHD9gLJUVQQ2ZOR7zLEifBX6tGkNJF4QyIY7sIas= +github.com/go-logr/logr v1.4.3 h1:CjnDlHq8ikf6E492q6eKboGOC0T8CDaOvkHCIg8idEI= +github.com/go-logr/logr v1.4.3/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= +github.com/go-logr/zapr v0.1.0/go.mod h1:tabnROwaDl0UNxkVeFRbY8bwB37GwRv0P8lg6aAiEnk= +github.com/go-logr/zapr v1.3.0 h1:XGdV8XW8zdwFiwOA2Dryh1gj2KRQyOOoNmBy4EplIcQ= +github.com/go-logr/zapr v1.3.0/go.mod h1:YKepepNBd1u/oyhd/yQmtjVXmm9uML4IXUgMOwR8/Gg= +github.com/go-openapi/analysis v0.0.0-20180825180245-b006789cd277/go.mod h1:k70tL6pCuVxPJOHXQ+wIac1FUrvNkHolPie/cLEU6hI= +github.com/go-openapi/analysis v0.17.0/go.mod h1:IowGgpVeD0vNm45So8nr+IcQ3pxVtpRoBWb8PVZO0ik= +github.com/go-openapi/analysis v0.18.0/go.mod h1:IowGgpVeD0vNm45So8nr+IcQ3pxVtpRoBWb8PVZO0ik= +github.com/go-openapi/analysis v0.19.2/go.mod h1:3P1osvZa9jKjb8ed2TPng3f0i/UY9snX6gxi44djMjk= +github.com/go-openapi/analysis v0.19.5/go.mod h1:hkEAkxagaIvIP7VTn8ygJNkd4kAYON2rCu0v0ObL0AU= +github.com/go-openapi/errors v0.17.0/go.mod h1:LcZQpmvG4wyF5j4IhA73wkLFQg+QJXOQHVjmcZxhka0= +github.com/go-openapi/errors v0.18.0/go.mod h1:LcZQpmvG4wyF5j4IhA73wkLFQg+QJXOQHVjmcZxhka0= +github.com/go-openapi/errors v0.19.2/go.mod h1:qX0BLWsyaKfvhluLejVpVNwNRdXZhEbTA4kxxpKBC94= +github.com/go-openapi/jsonpointer v0.0.0-20160704185906-46af16f9f7b1/go.mod h1:+35s3my2LFTysnkMfxsJBAMHj/DoqoB9knIWoYG/Vk0= +github.com/go-openapi/jsonpointer v0.17.0/go.mod h1:cOnomiV+CVVwFLk0A/MExoFMjwdsUdVpsRhURCKh+3M= +github.com/go-openapi/jsonpointer v0.18.0/go.mod h1:cOnomiV+CVVwFLk0A/MExoFMjwdsUdVpsRhURCKh+3M= +github.com/go-openapi/jsonpointer v0.19.2/go.mod h1:3akKfEdA7DF1sugOqz1dVQHBcuDBPKZGEoHC/NkiQRg= +github.com/go-openapi/jsonpointer v0.19.3/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= +github.com/go-openapi/jsonpointer v0.23.1 h1:1HBACs7XIwR2RcmItfdSFlALhGbe6S92p0ry4d1GWg4= +github.com/go-openapi/jsonpointer v0.23.1/go.mod h1:iWRmZTrGn7XwYhtPt/fvdSFj1OfNBngqRT2UG3BxSqY= +github.com/go-openapi/jsonreference v0.0.0-20160704190145-13c6e3589ad9/go.mod h1:W3Z9FmVs9qj+KR4zFKmDPGiLdk1D9Rlm7cyMvf57TTg= +github.com/go-openapi/jsonreference v0.17.0/go.mod h1:g4xxGn04lDIRh0GJb5QlpE3HfopLOL6uZrK/VgnsK9I= +github.com/go-openapi/jsonreference v0.18.0/go.mod h1:g4xxGn04lDIRh0GJb5QlpE3HfopLOL6uZrK/VgnsK9I= +github.com/go-openapi/jsonreference v0.19.2/go.mod h1:jMjeRr2HHw6nAVajTXJ4eiUwohSTlpa0o73RUL1owJc= +github.com/go-openapi/jsonreference v0.19.3/go.mod h1:rjx6GuL8TTa9VaixXglHmQmIL98+wF9xc8zWvFonSJ8= +github.com/go-openapi/jsonreference v0.21.6 h1:NZ5nGfnaM1n4I43Xjm1e5/M2GjOwQwndQz22uhxwD+Y= +github.com/go-openapi/jsonreference v0.21.6/go.mod h1:xzbgtQ3ZbWxvET3AxdzCJlJt6vkovbf+IfSPJjD0tUY= +github.com/go-openapi/loads v0.17.0/go.mod h1:72tmFy5wsWx89uEVddd0RjRWPZm92WRLhf7AC+0+OOU= +github.com/go-openapi/loads v0.18.0/go.mod h1:72tmFy5wsWx89uEVddd0RjRWPZm92WRLhf7AC+0+OOU= +github.com/go-openapi/loads v0.19.0/go.mod h1:72tmFy5wsWx89uEVddd0RjRWPZm92WRLhf7AC+0+OOU= +github.com/go-openapi/loads v0.19.2/go.mod h1:QAskZPMX5V0C2gvfkGZzJlINuP7Hx/4+ix5jWFxsNPs= +github.com/go-openapi/loads v0.19.4/go.mod h1:zZVHonKd8DXyxyw4yfnVjPzBjIQcLt0CCsn0N0ZrQsk= +github.com/go-openapi/runtime v0.0.0-20180920151709-4f900dc2ade9/go.mod h1:6v9a6LTXWQCdL8k1AO3cvqx5OtZY/Y9wKTgaoP6YRfA= +github.com/go-openapi/runtime v0.19.0/go.mod h1:OwNfisksmmaZse4+gpV3Ne9AyMOlP1lt4sK4FXt0O64= +github.com/go-openapi/runtime v0.19.4/go.mod h1:X277bwSUBxVlCYR3r7xgZZGKVvBd/29gLDlFGtJ8NL4= +github.com/go-openapi/spec v0.0.0-20160808142527-6aced65f8501/go.mod h1:J8+jY1nAiCcj+friV/PDoE1/3eeccG9LYBs0tYvLOWc= +github.com/go-openapi/spec v0.17.0/go.mod h1:XkF/MOi14NmjsfZ8VtAKf8pIlbZzyoTvZsdfssdxcBI= +github.com/go-openapi/spec v0.18.0/go.mod h1:XkF/MOi14NmjsfZ8VtAKf8pIlbZzyoTvZsdfssdxcBI= +github.com/go-openapi/spec v0.19.2/go.mod h1:sCxk3jxKgioEJikev4fgkNmwS+3kuYdJtcsZsD5zxMY= +github.com/go-openapi/spec v0.19.3/go.mod h1:FpwSN1ksY1eteniUU7X0N/BgJ7a4WvBFVA8Lj9mJglo= +github.com/go-openapi/strfmt v0.17.0/go.mod h1:P82hnJI0CXkErkXi8IKjPbNBM6lV6+5pLP5l494TcyU= +github.com/go-openapi/strfmt v0.18.0/go.mod h1:P82hnJI0CXkErkXi8IKjPbNBM6lV6+5pLP5l494TcyU= +github.com/go-openapi/strfmt v0.19.0/go.mod h1:+uW+93UVvGGq2qGaZxdDeJqSAqBqBdl+ZPMF/cC8nDY= +github.com/go-openapi/strfmt v0.19.3/go.mod h1:0yX7dbo8mKIvc3XSKp7MNfxw4JytCfCD6+bY1AVL9LU= +github.com/go-openapi/swag v0.0.0-20160704191624-1d0bd113de87/go.mod h1:DXUve3Dpr1UfpPtxFw+EFuQ41HhCWZfha5jSVRG7C7I= +github.com/go-openapi/swag v0.17.0/go.mod h1:AByQ+nYG6gQg71GINrmuDXCPWdL640yX49/kXLo40Tg= +github.com/go-openapi/swag v0.18.0/go.mod h1:AByQ+nYG6gQg71GINrmuDXCPWdL640yX49/kXLo40Tg= +github.com/go-openapi/swag v0.19.2/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= +github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= +github.com/go-openapi/swag v0.26.0 h1:GVDXCmfvhfu1BxiHo8/FA+BbKmhecHnG3varjON5/RI= +github.com/go-openapi/swag v0.26.0/go.mod h1:82g3193sZJRbocs7bNCqGfIgq8pkuwVwCfhKIRlEQF0= +github.com/go-openapi/swag/cmdutils v0.26.0 h1:iowihOcvq7y4egO8cOq0dmfohz6wfeQ63U1EnuhO2TU= +github.com/go-openapi/swag/cmdutils v0.26.0/go.mod h1:Sm1MVFMkF6guJJ+pQqHnQA3N0j9qALV3NxzDSv6bETM= +github.com/go-openapi/swag/conv v0.26.0 h1:5yGGsPYI1ZCva93U0AoKi/iZrNhaJEjr324YVsiD89I= +github.com/go-openapi/swag/conv v0.26.0/go.mod h1:tpAmIL7X58VPnHHiSO4uE3jBeRamGsFsfdDeDtb5ECE= +github.com/go-openapi/swag/fileutils v0.26.0 h1:WJoPRvsA7QRiiWluowkLJa9jaYR7FCuxmDvnCgaRRxU= +github.com/go-openapi/swag/fileutils v0.26.0/go.mod h1:0WDJ7lp67eNjPMO50wAWYlKvhOb6CQ37rzR7wrgI8Tc= +github.com/go-openapi/swag/jsonname v0.26.0 h1:gV1NFX9M8avo0YSpmWogqfQISigCmpaiNci8cGECU5w= +github.com/go-openapi/swag/jsonname v0.26.0/go.mod h1:urBBR8bZNoDYGr653ynhIx+gTeIz0ARZxHkAPktJK2M= +github.com/go-openapi/swag/jsonutils v0.26.0 h1:FawFML2iAXsPqmERscuMPIHmFsoP1tOqWkxBaKNMsnA= +github.com/go-openapi/swag/jsonutils v0.26.0/go.mod h1:2VmA0CJlyFqgawOaPI9psnjFDqzyivIqLYN34t9p91E= +github.com/go-openapi/swag/jsonutils/fixtures_test v0.26.0 h1:apqeINu/ICHouqiRZbyFvuDge5jCmmLTqGQ9V95EaOM= +github.com/go-openapi/swag/jsonutils/fixtures_test v0.26.0/go.mod h1:AyM6QT8uz5IdKxk5akv0y6u4QvcL9GWERt0Jx/F/R8Y= +github.com/go-openapi/swag/loading v0.26.0 h1:Apg6zaKhCJurpJer0DCxq99qwmhFddBhaMX7kilDcko= +github.com/go-openapi/swag/loading v0.26.0/go.mod h1:dBxQ/6V2uBaAQdevN18VELE6xSpJWZxLX4txe12JwDg= +github.com/go-openapi/swag/mangling v0.26.0 h1:Du2YC4YLA/Y5m/YKQd7AnY5qq0wRKSFZTTt8ktFaXcQ= +github.com/go-openapi/swag/mangling v0.26.0/go.mod h1:jifS7W9vbg+pw63bT+GI53otluMQL3CeemuyCHKwVx0= +github.com/go-openapi/swag/netutils v0.26.0 h1:CmZp+ZT7HrmFwrC3GdGsXBq2+42T1bjKBapcqVpIs3c= +github.com/go-openapi/swag/netutils v0.26.0/go.mod h1:5iK+Ok3ZohWWex1C50BFTPexi03UaPwjW4Oj8kgrpwo= +github.com/go-openapi/swag/stringutils v0.26.0 h1:qZQngLxs5s7SLijc3N2ZO+fUq2o8LjuWAASSrJuh+xg= +github.com/go-openapi/swag/stringutils v0.26.0/go.mod h1:sWn5uY+QIIspwPhvgnqJsH8xqFT2ZbYcvbcFanRyhFE= +github.com/go-openapi/swag/typeutils v0.26.0 h1:2kdEwdiNWy+JJdOvu5MA2IIg2SylWAFuuyQIKYybfq4= +github.com/go-openapi/swag/typeutils v0.26.0/go.mod h1:oovDuIUvTrEHVMqWilQzKzV4YlSKgyZmFh7AlfABNVE= +github.com/go-openapi/swag/yamlutils v0.26.0 h1:H7O8l/8NJJQ/oiReEN+oMpnGMyt8G0hl460nRZxhLMQ= +github.com/go-openapi/swag/yamlutils v0.26.0/go.mod h1:1evKEGAtP37Pkwcc7EWMF0hedX0/x3Rkvei2wtG/TbU= +github.com/go-openapi/testify/enable/yaml/v2 v2.4.2 h1:5zRca5jw7lzVREKCZVNBpysDNBjj74rBh0N2BGQbSR0= +github.com/go-openapi/testify/enable/yaml/v2 v2.4.2/go.mod h1:XVevPw5hUXuV+5AkI1u1PeAm27EQVrhXTTCPAF85LmE= +github.com/go-openapi/testify/v2 v2.5.1 h1:TMdhCaw8fUNraVSf3Omoob1dO/AzBfhtFAPW0an6sBo= +github.com/go-openapi/testify/v2 v2.5.1/go.mod h1:SgsVHtfooshd0tublTtJ50FPKhujf47YRqauXXOUxfw= +github.com/go-openapi/validate v0.18.0/go.mod h1:Uh4HdOzKt19xGIGm1qHf/ofbX1YQ4Y+MYsct2VUrAJ4= +github.com/go-openapi/validate v0.19.2/go.mod h1:1tRCw7m3jtI8eNWEEliiAqUIcBztB2KDnRCRMUi7GTA= +github.com/go-openapi/validate v0.19.5/go.mod h1:8DJv2CVJQ6kGNpFW6eV9N3JviE1C85nY1c2z52x1Gk4= +github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= +github.com/go-task/slim-sprig/v3 v3.0.0 h1:sUs3vkvUymDpBKi3qH1YSqBQk9+9D/8M2mN1vB6EwHI= +github.com/go-task/slim-sprig/v3 v3.0.0/go.mod h1:W848ghGpv3Qj3dhTPRyJypKRiqCdHZiAzKg9hl15HA8= +github.com/gobuffalo/flect v0.2.0/go.mod h1:W3K3X9ksuZfir8f/LrfVtWmCDQFfayuylOJ7sz/Fj80= +github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= +github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4= +github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= +github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= +github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/protobuf v0.0.0-20161109072736-4bd1920723d7/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= +github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= +github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= +github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= +github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= +github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= +github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= +github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= +github.com/google/gnostic-models v0.7.1 h1:SisTfuFKJSKM5CPZkffwi6coztzzeYUhc3v4yxLWH8c= +github.com/google/gnostic-models v0.7.1/go.mod h1:whL5G0m6dmc5cPxKc5bdKdEN3UjI7OUGxBlw57miDrQ= +github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= +github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= +github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= +github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= +github.com/google/gofuzz v1.1.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= +github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0= +github.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= +github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= +github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= +github.com/google/pprof v0.0.0-20260507013755-92041b743c96 h1:YDDnaZ9afWajDboPMt9Vikqca/yWAX7KAxVzb4lJU1M= +github.com/google/pprof v0.0.0-20260507013755-92041b743c96/go.mod h1:MxpfABSjhmINe3F1It9d+8exIHFvUqtLIRCdOGNXqiI= +github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= +github.com/googleapis/gnostic v0.0.0-20170729233727-0c5108395e2d/go.mod h1:sJBsCZ4ayReDTBIg8b9dl28c5xFWyhBTVRp3pOg5EKY= +github.com/googleapis/gnostic v0.1.0/go.mod h1:sJBsCZ4ayReDTBIg8b9dl28c5xFWyhBTVRp3pOg5EKY= +github.com/googleapis/gnostic v0.3.1/go.mod h1:on+2t9HRStVgn95RSsFWFz+6Q0Snyqv1awfrALZdbtU= +github.com/gophercloud/gophercloud v0.1.0/go.mod h1:vxM41WHh5uqHVBMZHzuwNOHh8XEoIEcSTewFxm1c5g8= +github.com/gorilla/websocket v0.0.0-20170926233335-4201258b820c/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= +github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= +github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA= +github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= +github.com/grpc-ecosystem/go-grpc-middleware v1.0.1-0.20190118093823-f849b5445de4/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= +github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= +github.com/grpc-ecosystem/grpc-gateway v1.9.0/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= +github.com/grpc-ecosystem/grpc-gateway v1.9.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= +github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= +github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= +github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= +github.com/imdario/mergo v0.3.5/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= +github.com/imdario/mergo v0.3.9/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= +github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= +github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= +github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= +github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= +github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= +github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= +github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/json-iterator/go v1.1.8/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= +github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= +github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= +github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= +github.com/karmada-io/karmada v1.19.0 h1:J3DO/5Ji0/iH5UmRMyKAEoKI+/Q0F1MVn/j5wdWgwgk= +github.com/karmada-io/karmada v1.19.0/go.mod h1:cK+kwclk9BVmtjCW/io7kMNtrfxjRdT494UAVtMOsNw= +github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= +github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= +github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/klauspost/compress v1.18.0 h1:c/Cqfb0r+Yi+JtIEq73FWXVkRonBlf0CRNYc8Zttxdo= +github.com/klauspost/compress v1.18.0/go.mod h1:2Pp+KzxcywXVXMr50+X0Q/Lsb43OQHYWRCY2AiWywWQ= +github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= +github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= +github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= +github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= +github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= +github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= +github.com/kr/pty v1.1.5/go.mod h1:9r2w37qlBe7rQ6e1fg1S/9xpWHSnaqNdHD3WcMdbPDA= +github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= +github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= +github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= +github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= +github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= +github.com/mailru/easyjson v0.0.0-20160728113105-d5b7844b561a/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= +github.com/mailru/easyjson v0.0.0-20180823135443-60711f1a8329/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= +github.com/mailru/easyjson v0.0.0-20190312143242-1de009706dbe/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= +github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= +github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= +github.com/mailru/easyjson v0.7.0/go.mod h1:KAzv3t3aY1NaHWoQz1+4F1ccyAH66Jk7yos7ldAVICs= +github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= +github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= +github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= +github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= +github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= +github.com/mattn/go-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= +github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= +github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= +github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= +github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= +github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= +github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= +github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= +github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee h1:W5t00kpgFdJifH4BDsTlE89Zl93FEloxaWZfGcifgq8= +github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= +github.com/munnerz/goautoneg v0.0.0-20120707110453-a547fc61f48d/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= +github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA= +github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= +github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= +github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f/go.mod h1:ZdcZmHo+o7JKHSa8/e818NopupXU1YMK5fe1lsApnBw= +github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= +github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= +github.com/olekukonko/tablewriter v0.0.0-20170122224234-a0225b3f23b5/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= +github.com/onsi/ginkgo v0.0.0-20170829012221-11459a886d9c/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= +github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= +github.com/onsi/ginkgo v1.11.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= +github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk= +github.com/onsi/ginkgo v1.14.0 h1:2mOpI4JVVPBN+WQRa0WKH2eXR+Ey+uK4n7Zj0aYpIQA= +github.com/onsi/ginkgo v1.14.0/go.mod h1:iSB4RoI2tjJc9BBv4NKIKWKya62Rps+oPG/Lv9klQyY= +github.com/onsi/ginkgo/v2 v2.31.0 h1:GtuJos5DFUV9EerYJo8RhYxosYNGvOdDE5haKq6Grfs= +github.com/onsi/ginkgo/v2 v2.31.0/go.mod h1:+aXOY+vzZ5mu2iI2HpTZUPmM//oQfsNFX6gU9kNcA44= +github.com/onsi/gomega v0.0.0-20170829124025-dcabb60a477c/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA= +github.com/onsi/gomega v1.7.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= +github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= +github.com/onsi/gomega v1.8.1/go.mod h1:Ho0h+IUsWyvy1OpqCwxlQ/21gkhVunqlU8fDGcoTdcA= +github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= +github.com/onsi/gomega v1.42.0 h1:CJby8u36xb7v34W78F8WKvqTQP7PCMIPB78IVDB73l4= +github.com/onsi/gomega v1.42.0/go.mod h1:M/Uqpu/8qTjtzCLUA2zJHX9Iilrau25x1PdoSRbWh5A= +github.com/pborman/uuid v1.2.0/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k= +github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= +github.com/pelletier/go-toml v1.7.0/go.mod h1:vwGMzjaWMwyfHwgIBhI2YUM4fB6nL6lVAvS1LBMMhTE= +github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= +github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= +github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= +github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= +github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/pquerna/cachecontrol v0.0.0-20171018203845-0dec1b30a021/go.mod h1:prYjPmNq4d1NPVmpShWobRqXY3q7Vp+80DqgxxUrUIA= +github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= +github.com/prometheus/client_golang v0.9.3/go.mod h1:/TN21ttK/J9q6uSwhBd54HahCDft0ttaMvbicHlPoso= +github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= +github.com/prometheus/client_golang v1.23.2 h1:Je96obch5RDVy3FDMndoUsjAhG5Edi49h0RJWRi/o0o= +github.com/prometheus/client_golang v1.23.2/go.mod h1:Tb1a6LWHB3/SPIzCoaDXI4I8UHKeFTEQ1YCr+0Gyqmg= +github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= +github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/client_model v0.6.2 h1:oBsgwpGs7iVziMvrGhE53c/GrLUsZdHnqNwqPLxwZyk= +github.com/prometheus/client_model v0.6.2/go.mod h1:y3m2F6Gdpfy6Ut/GBsUqTWZqCUvMVzSfMLjcu6wAwpE= +github.com/prometheus/common v0.0.0-20181113130724-41aa239b4cce/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= +github.com/prometheus/common v0.4.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= +github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= +github.com/prometheus/common v0.68.1 h1:omjRRl4QP4komogpXuhfeOiisQg7xdy8VM1UY+pStaY= +github.com/prometheus/common v0.68.1/go.mod h1:ZzL3f6u94qUxh9p+tJTrF+FvBS1XXbbRAZCQkytAL0Y= +github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= +github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= +github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= +github.com/prometheus/procfs v0.0.11/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= +github.com/prometheus/procfs v0.20.1 h1:XwbrGOIplXW/AU3YhIhLODXMJYyC1isLFfYCsTEycfc= +github.com/prometheus/procfs v0.20.1/go.mod h1:o9EMBZGRyvDrSPH1RqdxhojkuXstoe4UlK79eF5TGGo= +github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= +github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= +github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= +github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0tI/otEQ= +github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7so1lCWt35ZSgc= +github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g= +github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= +github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= +github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= +github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= +github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= +github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= +github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= +github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= +github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= +github.com/spf13/afero v1.2.2/go.mod h1:9ZxEEn6pIJ8Rxe320qSDBk6AsU0r9pR7Q4OcevTdifk= +github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= +github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= +github.com/spf13/cobra v0.0.5/go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tLCHU= +github.com/spf13/cobra v1.0.0/go.mod h1:/6GTrnGXV9HjY+aR4k0oJ5tcvakLuG6EuKReYlHNrgE= +github.com/spf13/cobra v1.10.2 h1:DMTTonx5m65Ic0GOoRY2c16WCbHxOOw6xxezuLaBpcU= +github.com/spf13/cobra v1.10.2/go.mod h1:7C1pvHqHw5A4vrJfjNwvOdzYu0Gml16OCs2GRiTUUS4= +github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= +github.com/spf13/pflag v0.0.0-20170130214245-9ff6c6923cff/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= +github.com/spf13/pflag v1.0.1/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= +github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= +github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= +github.com/spf13/pflag v1.0.9/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= +github.com/spf13/pflag v1.0.10 h1:4EBh2KAYBwaONj6b2Ye1GiHfwjqyROoF4RwYO+vPwFk= +github.com/spf13/pflag v1.0.10/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= +github.com/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DMA2s= +github.com/spf13/viper v1.4.0/go.mod h1:PTJ7Z/lr49W6bUbkmS1V3by4uWynFiR9p7+dSq/yZzE= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE= +github.com/stretchr/objx v0.5.3 h1:jmXUvGomnU1o3W/V5h2VEradbpJDwGrzugQQvL0POH4= +github.com/stretchr/objx v0.5.3/go.mod h1:rDQraq+vQZU7Fde9LOZLr8Tax6zZvy4kuNKF+QYS+U0= +github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= +github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= +github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= +github.com/stretchr/testify v1.12.1 h1:EuwCh5fleGS7H32xRwO3wRGT7DxrDhLAT6FF8MpWDWE= +github.com/stretchr/testify v1.12.1/go.mod h1:MDEgiDPPsNp5cuIrHPPCyornHKgEVbtFUmoNlxoYthg= +github.com/tidwall/gjson v1.14.2/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk= +github.com/tidwall/gjson v1.18.0 h1:FIDeeyB800efLX89e5a8Y0BNH+LOngJyGrIWxG2FKQY= +github.com/tidwall/gjson v1.18.0/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk= +github.com/tidwall/match v1.1.1 h1:+Ho715JplO36QYgwN9PGYNhgZvoUSc9X2c80KVTi+GA= +github.com/tidwall/match v1.1.1/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM= +github.com/tidwall/pretty v1.0.0/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk= +github.com/tidwall/pretty v1.2.0/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU= +github.com/tidwall/pretty v1.2.1 h1:qjsOFOWWQl+N3RsoF5/ssm1pHmJJwhjlSbZ51I6wMl4= +github.com/tidwall/pretty v1.2.1/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU= +github.com/tidwall/sjson v1.2.5 h1:kLy8mja+1c9jlljvWTlSazM7cKDRfJuR/bOJhcY5NcY= +github.com/tidwall/sjson v1.2.5/go.mod h1:Fvgq9kS/6ociJEDnK0Fk1cpYF4FIW6ZF7LAe+6jwd28= +github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= +github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= +github.com/ugorji/go v1.1.4/go.mod h1:uQMGLiO92mf5W77hV/PUCpI3pbzQx3CRekS0kk+RGrc= +github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0= +github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= +github.com/vektah/gqlparser v1.1.2/go.mod h1:1ycwN7Ij5njmMkPPAOaRFY4rET2Enx7IkVv3vaXspKw= +github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM= +github.com/x448/float16 v0.8.4/go.mod h1:14CWIYCyZA/cWjXOioeEpHeN/83MdbZDRQHoFcYsOfg= +github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= +github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q= +github.com/yuin/gopher-lua v1.1.1 h1:kYKnWBjvbNP4XLT3+bPEwAXJx262OhaHDWDVOPjL46M= +github.com/yuin/gopher-lua v1.1.1/go.mod h1:GBR0iDaNXjAgGg9zfCvksxSRnQx76gclCIb7kdAd1Pw= +go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= +go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= +go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738/go.mod h1:dnLIgRNXwCJa5e+c6mIZCrds/GIG4ncV9HhK5PX7jPg= +go.mongodb.org/mongo-driver v1.0.3/go.mod h1:u7ryQJ+DOzQmeO7zB6MHyr8jkEQvC8vH7qLUO4lqsUM= +go.mongodb.org/mongo-driver v1.1.1/go.mod h1:u7ryQJ+DOzQmeO7zB6MHyr8jkEQvC8vH7qLUO4lqsUM= +go.mongodb.org/mongo-driver v1.1.2/go.mod h1:u7ryQJ+DOzQmeO7zB6MHyr8jkEQvC8vH7qLUO4lqsUM= +go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= +go.opentelemetry.io/otel v1.44.0 h1:JjwHmHpA4iZ3wBxluu2fbbE7j4kqlE8jXyAyPXH7HqU= +go.opentelemetry.io/otel v1.44.0/go.mod h1:BMgjTHL9WPRlRjL2oZCBTL4whCGtXch2H4BhOPIAyYc= +go.opentelemetry.io/otel/trace v1.44.0 h1:jxF5CsGYCe74MCRx2X4g7WsY/VBKRqqpNvXlX/6gtIk= +go.opentelemetry.io/otel/trace v1.44.0/go.mod h1:oLl1jrMQAVo6v3GAggN+1VH9VIz9iUSvW53sW1Q8PIE= +go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= +go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= +go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= +go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= +go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= +go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= +go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= +go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= +go.uber.org/zap v1.28.0 h1:IZzaP1Fv73/T/pBMLk4VutPl36uNC+OSUh3JLG3FIjo= +go.uber.org/zap v1.28.0/go.mod h1:rDLpOi171uODNm/mxFcuYWxDsqWSAVkFdX4XojSKg/Q= +go.yaml.in/yaml/v2 v2.4.4 h1:tuyd0P+2Ont/d6e2rl3be67goVK4R6deVxCUX5vyPaQ= +go.yaml.in/yaml/v2 v2.4.4/go.mod h1:gMZqIpDtDqOfM0uNfy0SkpRhvUryYH0Z6wdMYcacYXQ= +go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg= +go.yaml.in/yaml/v3 v3.0.5 h1:N6y/pJk8buWs9NY5ERU2HSMfm+IuD/OtfdAnq6kESPw= +go.yaml.in/yaml/v3 v3.0.5/go.mod h1:HVTZu1O7/Vkt2N+BFy8Zza+lnLsABggaTM2ZpNIGuKg= +golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/crypto v0.0.0-20190211182817-74369b46fc67/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.0.0-20190320223903-b7391e95e576/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.0.0-20190611184440-5c40567a22f8/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190617133340-57b3e21c3d56/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20200220183623-bac4c82f6975/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= +golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/mod v0.37.0 h1:vF1DjpVEshcIqoEaauuHebaLk1O1forxjxBaVn884JQ= +golang.org/x/mod v0.37.0/go.mod h1:m8S8VeM9r4dzDwjrKO0a1sZP3YjeMamRRlD+fmR2Q/0= +golang.org/x/net v0.0.0-20170114055629-f2499483f923/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181005035420-146acd28ed58/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190320064053-1272bf9dcd53/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190522155817-f3200d17e092/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= +golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20191004110552-13f9640d40b9/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.56.0 h1:Rw8j/hFzGvJUZwNBXnAtf5sVDVt+65SK2C7IxCxZt5o= +golang.org/x/net v0.56.0/go.mod h1:D3Ku6r+V6JROoZK144D2XfMHFcMq/0zSfLelVTCFKec= +golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= +golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.36.0 h1:peZ/1z27fi9hUOFCAZaHyrpWG5lwe0RJEEEeH0ThlIs= +golang.org/x/oauth2 v0.36.0/go.mod h1:YDBUJMTkDnJS+A4BP4eZBjCqtokkg1hODuPjwiGPO7Q= +golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.21.0 h1:HLII4xRRTtCRkxYp4HNFF0Js/Og6q2i++KXbg0gHCwM= +golang.org/x/sync v0.21.0/go.mod h1:9xrNwdLfx4jkKbNva9FpL6vEN7evnE43NNNJQ2LF3+0= +golang.org/x/sys v0.0.0-20170830134202-bb24a47a89ea/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190209173611-3b5209105503/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190321052220-f7bb7a8bee54/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190616124812-15dcb6c0061f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191022100944-742c48ecaeb7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200519105757-fe76b779f299/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.46.0 h1:noSf2Fq6F8DBgS+LysIkx7rIExoNHJsxOAtPp4rthXw= +golang.org/x/sys v0.46.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw= +golang.org/x/term v0.44.0 h1:0rLvDRCtNj0gZkyIXhCyOb2OAzEhLVqc4B+hrsBhrmc= +golang.org/x/term v0.44.0/go.mod h1:7ze4MdzUzLXpSAoFP1H0bOI9aXDqveSvatT5vKcFh2Y= +golang.org/x/text v0.0.0-20160726164857-2910a502d2bf/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.39.0 h1:UbZz4pLOvn600D6Oh6GGEI6VAmndrEBLv8/6BEXzyus= +golang.org/x/text v0.39.0/go.mod h1:3UwRclnC2g0TU9x8PZiyfOajCd1zaUNHF9cvqcQZ+ZM= +golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.15.0 h1:bbrp8t3bGUeFOx08pvsMYRTCVSMk89u4tKbNOZbp88U= +golang.org/x/time v0.15.0/go.mod h1:Y4YMaQmXwGQZoFaVFk4YpCt4FLQMYKZe9oeV/f4MSno= +golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20181011042414-1f849cf54d09/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190125232054-d66bd3c5d5a6/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= +golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190614205625-5aca471b1d59/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190617190820-da514acc4774/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190920225731-5eefd052ad72/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.47.0 h1:7Kn5x/d1svx/PzryTsqeoZN4TZwqeH5pGWjefhLi/1Q= +golang.org/x/tools v0.47.0/go.mod h1:dFHnyTvFWY212G+h7ZY4Vsp/K3U4/7W9TyVaAul8uCA= +golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gomodules.xyz/jsonpatch/v2 v2.0.1/go.mod h1:IhYNNY4jnS53ZnfE4PAmpKtDpTCj1JFXc+3mwe7XcUU= +gomodules.xyz/jsonpatch/v2 v2.4.0 h1:Ci3iUJyx9UeRx7CeFN8ARgGbkESwJK+KB9lLcWxY/Zw= +gomodules.xyz/jsonpatch/v2 v2.4.0/go.mod h1:AH3dM2RI6uoBZxn3LVrfvJ3E0/9dG4cSrbuBJT4moAY= +google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= +google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= +google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= +google.golang.org/grpc v1.21.0/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= +google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.23.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= +google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= +google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= +google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= +google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= +google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.36.12-0.20260120151049-f2248ac996af h1:+5/Sw3GsDNlEmu7TfklWKPdQ0Ykja5VEmq2i817+jbI= +google.golang.org/protobuf v1.36.12-0.20260120151049-f2248ac996af/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco= +gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/cheggaaa/pb.v1 v1.0.25/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw= +gopkg.in/evanphx/json-patch.v4 v4.13.0 h1:czT3CmqEaQ1aanPc5SdlgQrrEIb8w/wwCvWWnfEbYzo= +gopkg.in/evanphx/json-patch.v4 v4.13.0/go.mod h1:p8EYWUEYMpynmqDbY58zCKCFZw8pRWMG4EsWvDvM72M= +gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= +gopkg.in/inf.v0 v0.9.1 h1:73M5CoZyi3ZLMOyDlQh031Cx6N9NDJ2Vvfl76EDAgDc= +gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw= +gopkg.in/natefinch/lumberjack.v2 v2.0.0/go.mod h1:l0ndWWf7gzL7RNwBG7wST/UCcT4T24xpD6X8LsfU/+k= +gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= +gopkg.in/square/go-jose.v2 v2.2.2/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI= +gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= +gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= +gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v3 v3.0.0-20190905181640-827449938966/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.0-20200121175148-a6ecf24a6d71/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gotest.tools v2.2.0+incompatible/go.mod h1:DsYFclhRJ6vuDpmuTbkuFWG+y2sxOXAzmJt81HFBacw= +honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +k8s.io/api v0.18.2/go.mod h1:SJCWI7OLzhZSvbY7U8zwNl9UA4o1fizoug34OV/2r78= +k8s.io/api v0.18.4/go.mod h1:lOIQAKYgai1+vz9J7YcDZwC26Z0zQewYOGWdyIPUUQ4= +k8s.io/api v0.36.4 h1:RxrvqCL6vgH5/+UnTeu1IIFqYmGfy0hnyrod1rn35Oo= +k8s.io/api v0.36.4/go.mod h1:S2B3orCFBDhrgyWbLeuKcT2QdHIpQesBkCYSlWtwUOw= +k8s.io/apiextensions-apiserver v0.18.2/go.mod h1:q3faSnRGmYimiocj6cHQ1I3WpLqmDgJFlKL37fC4ZvY= +k8s.io/apiextensions-apiserver v0.18.4/go.mod h1:NYeyeYq4SIpFlPxSAB6jHPIdvu3hL0pc36wuRChybio= +k8s.io/apiextensions-apiserver v0.36.4 h1:SfvCVt+4CqKWvzuVytYDT5g9hyb9MztoiYELIkPVrFc= +k8s.io/apiextensions-apiserver v0.36.4/go.mod h1:JT9V2Ju7ys1FY4zbSpmX9XOvKB3/BwsODc4hFQEa+Xo= +k8s.io/apimachinery v0.18.2/go.mod h1:9SnR/e11v5IbyPCGbvJViimtJ0SwHG4nfZFjU77ftcA= +k8s.io/apimachinery v0.18.4/go.mod h1:OaXp26zu/5J7p0f92ASynJa1pZo06YlV9fG7BoWbCko= +k8s.io/apimachinery v0.36.4 h1:PT2UzkupGuAx/+xT5XjiMJ1WGpY3fn9/hdAvjweRet4= +k8s.io/apimachinery v0.36.4/go.mod h1:p2I2dipt7JHG+quVwQ1d02d28O4GdDi77RByQ13MTpk= +k8s.io/apiserver v0.18.2/go.mod h1:Xbh066NqrZO8cbsoenCwyDJ1OSi8Ag8I2lezeHxzwzw= +k8s.io/apiserver v0.18.4/go.mod h1:q+zoFct5ABNnYkGIaGQ3bcbUNdmPyOCoEBcg51LChY8= +k8s.io/apiserver v0.36.4 h1:AtKjaf2eUiX5G6TfF2IOlhuUuvMsHh49Ivr1+4fZ2gA= +k8s.io/apiserver v0.36.4/go.mod h1:RyiGghXP67hb0Ll+7iLJ6GGv2JpEzCn7ljbiA+L3cJ0= +k8s.io/client-go v0.18.2/go.mod h1:Xcm5wVGXX9HAA2JJ2sSBUn3tCJ+4SVlCbl2MNNv+CIU= +k8s.io/client-go v0.18.4/go.mod h1:f5sXwL4yAZRkAtzOxRWUhA/N8XzGCb+nPZI8PfobZ9g= +k8s.io/client-go v0.36.4 h1:MDvfDNvMSt0Br94SK8neviVlwL9qifw9B26hJCpD1K0= +k8s.io/client-go v0.36.4/go.mod h1:pNK4WKELbwlEDvtbE8l22lEZL5THYF61H5EealokZmA= +k8s.io/code-generator v0.18.2/go.mod h1:+UHX5rSbxmR8kzS+FAv7um6dtYrZokQvjHpDSYRVkTc= +k8s.io/code-generator v0.18.4/go.mod h1:TgNEVx9hCyPGpdtCWA34olQYLkh3ok9ar7XfSsr8b6c= +k8s.io/component-base v0.18.2/go.mod h1:kqLlMuhJNHQ9lz8Z7V5bxUUtjFZnrypArGl58gmDfUM= +k8s.io/component-base v0.18.4/go.mod h1:7jr/Ef5PGmKwQhyAz/pjByxJbC58mhKAhiaDu0vXfPk= +k8s.io/component-base v0.36.4 h1:tz75yC2xgq3kd7vPdBtR8do5iMx0OHf6Zd1kuaxDB84= +k8s.io/component-base v0.36.4/go.mod h1:DCwb306U8ou89NNAp45Csuy8ok+1rp1ELDVPhzN5AWc= +k8s.io/gengo v0.0.0-20190128074634-0689ccc1d7d6/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0= +k8s.io/gengo v0.0.0-20200114144118-36b2048a9120/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0= +k8s.io/klog v0.0.0-20181102134211-b9b56d5dfc92/go.mod h1:Gq+BEi5rUBO/HRz0bTSXDUcqjScdoY3a9IHpCEIOOfk= +k8s.io/klog v0.3.0/go.mod h1:Gq+BEi5rUBO/HRz0bTSXDUcqjScdoY3a9IHpCEIOOfk= +k8s.io/klog v1.0.0/go.mod h1:4Bi6QPql/J/LkTDqv7R/cd3hPo4k2DG6Ptcz060Ez5I= +k8s.io/klog/v2 v2.0.0/go.mod h1:PBfzABfn139FHAV07az/IF9Wp1bkk3vpT2XSJ76fSDE= +k8s.io/klog/v2 v2.140.0 h1:Tf+J3AH7xnUzZyVVXhTgGhEKnFqye14aadWv7bzXdzc= +k8s.io/klog/v2 v2.140.0/go.mod h1:o+/RWfJ6PwpnFn7OyAG3QnO47BFsymfEfrz6XyYSSp0= +k8s.io/kube-openapi v0.0.0-20200121204235-bf4fb3bd569c/go.mod h1:GRQhZsXIAJ1xR0C9bd8UpWHZ5plfAS9fzPjJuQ6JL3E= +k8s.io/kube-openapi v0.0.0-20200410145947-61e04a5be9a6/go.mod h1:GRQhZsXIAJ1xR0C9bd8UpWHZ5plfAS9fzPjJuQ6JL3E= +k8s.io/kube-openapi v0.0.0-20260520065146-aa012df4f4af h1:zLXA2Irn14q2/06WMkxViyr7YCPUO2lJ0QYE9Juy5vA= +k8s.io/kube-openapi v0.0.0-20260520065146-aa012df4f4af/go.mod h1:V/QaCUYDa+0QpcHhVVc5l99Uz56wEMEXBSj9oCDkNDY= +k8s.io/utils v0.0.0-20200324210504-a9aa75ae1b89/go.mod h1:sZAwmy6armz5eXlNoLmJcl4F1QuKu7sr+mFQ0byX7Ew= +k8s.io/utils v0.0.0-20200603063816-c1c6865ac451/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= +k8s.io/utils v0.0.0-20260507154919-ff6756f316d2 h1:wU4tMEhLGgIbLvXQb1cfN+EcM0wf7zC6CPF+C79jroc= +k8s.io/utils v0.0.0-20260507154919-ff6756f316d2/go.mod h1:xDxuJ0whA3d0I4mf/C4ppKHxXynQ+fxnkmQH0vTHnuk= +layeh.com/gopher-json v0.0.0-20201124131017-552bb3c4c3bf h1:rRz0YsF7VXj9fXRF6yQgFI7DzST+hsI3TeFSGupntu0= +layeh.com/gopher-json v0.0.0-20201124131017-552bb3c4c3bf/go.mod h1:ivKkcY8Zxw5ba0jldhZCYYQfGdb2K6u9tbYK1AwMIBc= +sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.0.7/go.mod h1:PHgbrJT7lCHcxMU+mDHEm+nx46H4zuuHZkDP6icnhu0= +sigs.k8s.io/cluster-api v1.7.1 h1:JkMAbAMzBM+WBHxXLTJXTiCisv1PAaHRzld/3qrmLYY= +sigs.k8s.io/cluster-api v1.7.1/go.mod h1:V9ZhKLvQtsDODwjXOKgbitjyCmC71yMBwDcMyNNIov0= +sigs.k8s.io/controller-runtime v0.6.1/go.mod h1:XRYBPdbf5XJu9kpS84VJiZ7h/u1hF3gEORz0efEja7A= +sigs.k8s.io/controller-runtime v0.24.1 h1:miPEwrmirImAvgME1L9qebGHrOnGJoVmVdtOU9fRfo4= +sigs.k8s.io/controller-runtime v0.24.1/go.mod h1:vFkfY5fGt5xAC/sKb8IBFKgWPNKG9OUG29dR8Y2wImw= +sigs.k8s.io/controller-tools v0.3.0/go.mod h1:enhtKGfxZD1GFEoMgP8Fdbu+uKQ/cq1/WGJhdVChfvI= +sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730 h1:IpInykpT6ceI+QxKBbEflcR5EXP7sU1kvOlxwZh5txg= +sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730/go.mod h1:mdzfpAEoE6DHQEN0uh9ZbOCuHbLK5wOm7dK4ctXE9Tg= +sigs.k8s.io/kind v0.8.1/go.mod h1:oNKTxUVPYkV9lWzY6CVMNluVq8cBsyq+UgPJdvA3uu4= +sigs.k8s.io/mcs-api v0.1.0 h1:edDbg0oRGfXw8TmZjKYep06LcJLv/qcYLidejnUp0PM= +sigs.k8s.io/mcs-api v0.1.0/go.mod h1:gGiAryeFNB4GBsq2LBmVqSgKoobLxt+p7ii/WG5QYYw= +sigs.k8s.io/randfill v1.0.0 h1:JfjMILfT8A6RbawdsK2JXGBR5AQVfd+9TbzrlneTyrU= +sigs.k8s.io/randfill v1.0.0/go.mod h1:XeLlZ/jmk4i1HRopwe7/aU3H5n1zNUcX6TM94b3QxOY= +sigs.k8s.io/structured-merge-diff/v3 v3.0.0-20200116222232-67a7b8c61874/go.mod h1:PlARxl6Hbt/+BC80dRLi1qAmnMqwqDg62YvvVkZjemw= +sigs.k8s.io/structured-merge-diff/v3 v3.0.0/go.mod h1:PlARxl6Hbt/+BC80dRLi1qAmnMqwqDg62YvvVkZjemw= +sigs.k8s.io/structured-merge-diff/v6 v6.4.0 h1:qmp2e3ZfFi1/jJbDGpD4mt3wyp6PE1NfKHCYLqgNQJo= +sigs.k8s.io/structured-merge-diff/v6 v6.4.0/go.mod h1:M3W8sfWvn2HhQDIbGWj3S099YozAsymCo/wrT5ohRUE= +sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o= +sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc= +sigs.k8s.io/yaml v1.6.0 h1:G8fkbMSAFqgEFgh4b1wmtzDnioxFCUgTZhlbj5P9QYs= +sigs.k8s.io/yaml v1.6.0/go.mod h1:796bPqUfzR/0jLAl6XjHl3Ck7MiyVv8dbTdyT3/pMf4= diff --git a/test/federation-interpreters/harness_test.go b/test/federation-interpreters/harness_test.go new file mode 100644 index 00000000..8973d170 --- /dev/null +++ b/test/federation-interpreters/harness_test.go @@ -0,0 +1,95 @@ +package interpreters + +import ( + "encoding/json" + "os" + "strings" + "testing" + + configv1alpha1 "github.com/karmada-io/karmada/pkg/apis/config/v1alpha1" + workv1alpha2 "github.com/karmada-io/karmada/pkg/apis/work/v1alpha2" + "github.com/karmada-io/karmada/pkg/resourceinterpreter/customized/declarative/luavm" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" + "k8s.io/apimachinery/pkg/runtime" + "sigs.k8s.io/yaml" +) + +const rulesFile = "../../config/federation/resourceinterpreters.yaml" + +func loadRules(t *testing.T) map[string]*configv1alpha1.ResourceInterpreterCustomization { + t.Helper() + raw, err := os.ReadFile(rulesFile) + require.NoError(t, err) + rules := map[string]*configv1alpha1.ResourceInterpreterCustomization{} + for _, doc := range strings.Split(string(raw), "\n---\n") { + if strings.TrimSpace(stripComments(doc)) == "" { + continue + } + rule := &configv1alpha1.ResourceInterpreterCustomization{} + require.NoError(t, yaml.UnmarshalStrict([]byte(doc), rule)) + rules[rule.Name] = rule + } + return rules +} + +func stripComments(doc string) string { + var out []string + for _, line := range strings.Split(doc, "\n") { + if !strings.HasPrefix(strings.TrimSpace(line), "#") { + out = append(out, line) + } + } + return strings.Join(out, "\n") +} + +func desired(rule *configv1alpha1.ResourceInterpreterCustomization) map[string]any { + return map[string]any{ + "apiVersion": rule.Spec.Target.APIVersion, + "kind": rule.Spec.Target.Kind, + "metadata": map[string]any{"name": "x", "namespace": "ns-a", "generation": int64(1)}, + } +} + +func item(cluster string, status map[string]any) workv1alpha2.AggregatedStatusItem { + it := workv1alpha2.AggregatedStatusItem{ClusterName: cluster, Applied: true} + if status != nil { + raw, err := json.Marshal(status) + if err != nil { + panic(err) + } + it.Status = &runtime.RawExtension{Raw: raw} + } + return it +} + +func aggregate(t *testing.T, vm *luavm.VM, rule *configv1alpha1.ResourceInterpreterCustomization, desired map[string]any, items []workv1alpha2.AggregatedStatusItem) *unstructured.Unstructured { + t.Helper() + got, err := vm.AggregateStatus(&unstructured.Unstructured{Object: desired}, items, rule.Spec.Customizations.StatusAggregation.LuaScript) + require.NoError(t, err) + return got +} + +func condition(obj *unstructured.Unstructured, path []string, typ string) map[string]any { + conds, _, _ := unstructured.NestedSlice(obj.Object, path...) + for _, c := range conds { + if cond, ok := c.(map[string]any); ok && cond["type"] == typ { + return cond + } + } + return nil +} + +func TestEveryRuleLoadsAndAggregatesAnEmptyList(t *testing.T) { + rules := loadRules(t) + require.Len(t, rules, 6) + vm := luavm.New(false, 1) + for name, rule := range rules { + t.Run(name, func(t *testing.T) { + require.NotNil(t, rule.Spec.Customizations.StatusAggregation) + got := aggregate(t, vm, rule, desired(rule), nil) + assert.Equal(t, rule.Spec.Target.Kind, got.GetKind()) + }) + } +} diff --git a/test/federation-interpreters/httproute_test.go b/test/federation-interpreters/httproute_test.go new file mode 100644 index 00000000..b6eaf189 --- /dev/null +++ b/test/federation-interpreters/httproute_test.go @@ -0,0 +1,121 @@ +package interpreters + +import ( + "testing" + + workv1alpha2 "github.com/karmada-io/karmada/pkg/apis/work/v1alpha2" + "github.com/karmada-io/karmada/pkg/resourceinterpreter/customized/declarative/luavm" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" +) + +const ( + httpRouteRule = "gateway.networking.k8s.io-httproute" + edgeController = "gateway.envoyproxy.io/datum-downstream-gateway" +) + +type parentFix struct { + name string + accepted string + resolvedRefs string +} + +func routeStatus(i int, parents ...parentFix) map[string]any { + var ps []any + for _, p := range parents { + accepted := cond("Accepted", p.accepted, i) + resolved := cond("ResolvedRefs", p.resolvedRefs, i) + resolved["reason"] = map[string]string{"True": "ResolvedRefs", "False": "BackendNotFound", "Unknown": "Pending"}[p.resolvedRefs] + ps = append(ps, map[string]any{ + "parentRef": map[string]any{"group": "gateway.networking.k8s.io", "kind": "Gateway", "name": p.name, "namespace": "ns-a"}, + "controllerName": edgeController, + "conditions": []any{accepted, resolved}, + }) + } + status := map[string]any{} + if ps != nil { + status["parents"] = ps + } + return status +} + +func runRoute(t *testing.T, items []workv1alpha2.AggregatedStatusItem) *unstructured.Unstructured { + t.Helper() + rule := loadRules(t)[httpRouteRule] + return aggregate(t, luavm.New(false, 1), rule, desired(rule), items) +} + +func parent(obj *unstructured.Unstructured, name string) map[string]any { + ps, _, _ := unstructured.NestedSlice(obj.Object, "status", "parents") + for _, p := range ps { + if m := p.(map[string]any); m["parentRef"].(map[string]any)["name"] == name { + return m + } + } + return nil +} + +func parentCondition(p map[string]any, typ string) map[string]any { + return condition(&unstructured.Unstructured{Object: map[string]any{"p": p}}, []string{"p", "conditions"}, typ) +} + +func TestHTTPRoute_AllTrue(t *testing.T) { + got := runRoute(t, []workv1alpha2.AggregatedStatusItem{ + item("edge-a", routeStatus(1, parentFix{"gw-a", "True", "True"})), + item("edge-b", routeStatus(2, parentFix{"gw-a", "True", "True"})), + }) + p := parent(got, "gw-a") + require.NotNil(t, p) + assert.Equal(t, edgeController, p["controllerName"]) + c := parentCondition(p, "Accepted") + require.NotNil(t, c) + assert.Equal(t, "True", c["status"]) + assert.Equal(t, "Accepted on 2 of 2 clusters", c["message"]) +} + +func TestHTTPRoute_OneFalse(t *testing.T) { + got := runRoute(t, []workv1alpha2.AggregatedStatusItem{ + item("edge-a", routeStatus(1, parentFix{"gw-a", "True", "True"})), + item("edge-b", routeStatus(2, parentFix{"gw-a", "True", "False"})), + }) + c := parentCondition(parent(got, "gw-a"), "ResolvedRefs") + require.NotNil(t, c) + assert.Equal(t, "False", c["status"]) + assert.Equal(t, "BackendNotFound", c["reason"]) + assert.Equal(t, "edge-b: from member", c["message"]) +} + +func TestHTTPRoute_ParentMissingOnOne(t *testing.T) { + got := runRoute(t, []workv1alpha2.AggregatedStatusItem{ + item("edge-a", routeStatus(1, parentFix{"gw-a", "True", "True"})), + item("edge-b", routeStatus(2)), + }) + p := parent(got, "gw-a") + require.NotNil(t, p) + c := parentCondition(p, "Accepted") + require.NotNil(t, c) + assert.Equal(t, "Unknown", c["status"]) + assert.Equal(t, "Pending", c["reason"]) + assert.Equal(t, "Waiting on edge-b", c["message"]) +} + +func TestHTTPRoute_TwoParents(t *testing.T) { + got := runRoute(t, []workv1alpha2.AggregatedStatusItem{ + item("edge-a", routeStatus(1, parentFix{"gw-a", "True", "True"}, parentFix{"gw-b", "False", "True"})), + item("edge-b", routeStatus(2, parentFix{"gw-a", "True", "True"}, parentFix{"gw-b", "True", "True"})), + }) + ps, _, _ := unstructured.NestedSlice(got.Object, "status", "parents") + require.Len(t, ps, 2) + assert.Equal(t, "gw-a", ps[0].(map[string]any)["parentRef"].(map[string]any)["name"]) + assert.Equal(t, "gw-b", ps[1].(map[string]any)["parentRef"].(map[string]any)["name"]) + assert.Equal(t, "True", parentCondition(parent(got, "gw-a"), "Accepted")["status"]) + assert.Equal(t, "False", parentCondition(parent(got, "gw-b"), "Accepted")["status"]) + assert.Equal(t, "edge-a: from member", parentCondition(parent(got, "gw-b"), "Accepted")["message"]) +} + +func TestHTTPRoute_EmptyList(t *testing.T) { + rule := loadRules(t)[httpRouteRule] + got := aggregate(t, luavm.New(false, 1), rule, desired(rule), nil) + assert.Equal(t, desired(rule), got.Object) +} diff --git a/test/federation-interpreters/policies_test.go b/test/federation-interpreters/policies_test.go new file mode 100644 index 00000000..c8a8c57d --- /dev/null +++ b/test/federation-interpreters/policies_test.go @@ -0,0 +1,112 @@ +package interpreters + +import ( + "testing" + + workv1alpha2 "github.com/karmada-io/karmada/pkg/apis/work/v1alpha2" + "github.com/karmada-io/karmada/pkg/resourceinterpreter/customized/declarative/luavm" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" +) + +var ancestorRules = []string{ + "gateway.networking.k8s.io-backendtlspolicy", + "gateway.envoyproxy.io-backendtrafficpolicy", + "gateway.envoyproxy.io-securitypolicy", +} + +func ancestorStatus(i int, accepted string) map[string]any { + if accepted == "" { + return map[string]any{} + } + return map[string]any{"ancestors": []any{map[string]any{ + "ancestorRef": map[string]any{"group": "gateway.networking.k8s.io", "kind": "Gateway", "name": "gw-a", "namespace": "ns-a"}, + "controllerName": edgeController, + "conditions": []any{cond("Accepted", accepted, i)}, + }}} +} + +func runRule(t *testing.T, name string, items []workv1alpha2.AggregatedStatusItem) *unstructured.Unstructured { + t.Helper() + rule := loadRules(t)[name] + require.NotNil(t, rule, name) + return aggregate(t, luavm.New(false, 1), rule, desired(rule), items) +} + +func ancestorCondition(obj *unstructured.Unstructured, typ string) map[string]any { + as, _, _ := unstructured.NestedSlice(obj.Object, "status", "ancestors") + if len(as) == 0 { + return nil + } + return condition(&unstructured.Unstructured{Object: map[string]any{"a": as[0]}}, []string{"a", "conditions"}, typ) +} + +func TestAncestorPolicies_AllTrue(t *testing.T) { + for _, name := range ancestorRules { + t.Run(name, func(t *testing.T) { + got := runRule(t, name, []workv1alpha2.AggregatedStatusItem{ + item("edge-a", ancestorStatus(1, "True")), item("edge-b", ancestorStatus(2, "True")), + }) + c := ancestorCondition(got, "Accepted") + require.NotNil(t, c) + assert.Equal(t, "True", c["status"]) + assert.Equal(t, "Accepted on 2 of 2 clusters", c["message"]) + }) + } +} + +func TestAncestorPolicies_OneFalse(t *testing.T) { + for _, name := range ancestorRules { + t.Run(name, func(t *testing.T) { + got := runRule(t, name, []workv1alpha2.AggregatedStatusItem{ + item("edge-a", ancestorStatus(1, "True")), item("edge-b", ancestorStatus(2, "False")), + }) + c := ancestorCondition(got, "Accepted") + require.NotNil(t, c) + assert.Equal(t, "False", c["status"]) + assert.Equal(t, "edge-b: from member", c["message"]) + }) + } +} + +func TestAncestorPolicies_AncestorMissingOnOne(t *testing.T) { + for _, name := range ancestorRules { + t.Run(name, func(t *testing.T) { + got := runRule(t, name, []workv1alpha2.AggregatedStatusItem{ + item("edge-a", ancestorStatus(1, "True")), item("edge-b", ancestorStatus(2, "")), + }) + c := ancestorCondition(got, "Accepted") + require.NotNil(t, c) + assert.Equal(t, "Unknown", c["status"]) + assert.Equal(t, "Pending", c["reason"]) + assert.Equal(t, "Waiting on edge-b", c["message"]) + }) + } +} + +const backendRule = "gateway.envoyproxy.io-backend" + +func backendStatus(i int, accepted string) map[string]any { + return map[string]any{"conditions": []any{cond("Accepted", accepted, i)}} +} + +func TestBackend_AllTrue(t *testing.T) { + got := runRule(t, backendRule, []workv1alpha2.AggregatedStatusItem{ + item("edge-a", backendStatus(1, "True")), item("edge-b", backendStatus(2, "True")), + }) + c := condition(got, []string{"status", "conditions"}, "Accepted") + require.NotNil(t, c) + assert.Equal(t, "True", c["status"]) + assert.Equal(t, "Accepted on 2 of 2 clusters", c["message"]) +} + +func TestBackend_OneNoStatus(t *testing.T) { + got := runRule(t, backendRule, []workv1alpha2.AggregatedStatusItem{ + item("edge-a", backendStatus(1, "True")), item("edge-b", nil), + }) + c := condition(got, []string{"status", "conditions"}, "Accepted") + require.NotNil(t, c) + assert.Equal(t, "Unknown", c["status"]) + assert.Equal(t, "Waiting on edge-b", c["message"]) +}