mirror of
https://github.com/dsx-ai-factory/nvke.git
synced 2026-12-07 04:35:58 +08:00
The repository was renamed from dsx-ai-factory/nke to dsx-ai-factory/nvke on 2026-10-10. Its id is unchanged, so guards, rulesets, environments and the OIDC subject carried over, and GitHub redirects the old URLs. The tree still named the old repository where the name is a contract rather than a URL: the module lines of the 12 Go modules and about 1,700 import lines, the proto go_package (embedded in node_agent.pb.go, regenerated here), both THIRD_PARTY_NOTICES.md files (regenerated), the lint local-prefix and depguard entries, ldflags, the go-licenses ignore lists, the documented repository URLs and gh commands, and the ghcr.io/dsx-ai-factory/nke image paths in workflows, the chart default and the e2e defaults. Only the organisation and repository segments change. Directories, identifiers, binary, image, chart, package, label, namespace and environment variable names, the CODEOWNERS team slugs and CHANGELOG.md stay as they are. Closes #1448 Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
38 lines
1.4 KiB
Go
38 lines
1.4 KiB
Go
// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
// Command openapi-compat compares api/openapi.yaml against a published baseline
|
|
// and fails when the change is backward incompatible.
|
|
//
|
|
// `make -C controller generate-check` already proves the committed Go matches
|
|
// the specification. It says nothing about whether the specification change
|
|
// itself is safe: a removed field, a narrowed type or a newly required property
|
|
// regenerates perfectly and breaks every existing client. This is the layer
|
|
// above that.
|
|
//
|
|
// The baseline is a published controller/api version tag, not the merge base.
|
|
// The tag is what a consumer can actually pin (`go get
|
|
// github.com/dsx-ai-factory/nvke/controller/api@v0.0.17`), so it is the only ref
|
|
// against which "backward compatible" means anything to them.
|
|
//
|
|
// Everything that is not provably compatible fails. A missing baseline, an
|
|
// unparsable specification, an unreadable report and an unrecognized report
|
|
// shape are all errors, never silent passes -- a compatibility gate that cannot
|
|
// run has not found the change compatible.
|
|
package main
|
|
|
|
import (
|
|
"context"
|
|
"errors"
|
|
"flag"
|
|
"fmt"
|
|
"os"
|
|
)
|
|
|
|
func main() {
|
|
if err := run(context.Background(), os.Args[1:], os.Stdout); err != nil && !errors.Is(err, flag.ErrHelp) {
|
|
fmt.Fprintf(os.Stderr, "openapi-compat: %v\n", err)
|
|
os.Exit(1)
|
|
}
|
|
}
|