Directories
¶
| Path | Synopsis |
|---|---|
|
Package api embeds the published machine-readable contracts so the binary can hand the report schema to MCP clients as a tool output schema.
|
Package api embeds the published machine-readable contracts so the binary can hand the report schema to MCP clients as a tool output schema. |
|
cmd
|
|
|
upgradescope
command
|
|
|
hack
|
|
|
bench/seed
command
Command seed fills a lab apiserver for the agent scale benchmark (hack/bench/agent.sh, #71): KWOK fake nodes that report Ready with a kubelet version, pods placed on them, ConfigMaps, zero-replica Deployments, and Helm release Secrets with real helm.sh/release.v1 payloads (base64 of gzip of JSON) of realistic sizes.
|
Command seed fills a lab apiserver for the agent scale benchmark (hack/bench/agent.sh, #71): KWOK fake nodes that report Ready with a kubelet version, pods placed on them, ConfigMaps, zero-replica Deployments, and Helm release Secrets with real helm.sh/release.v1 payloads (base64 of gzip of JSON) of realistic sizes. |
|
internal
|
|
|
agent
Package agent runs the in-cluster continuous loop: collect → evaluate per target → ClusterReadiness CRD status (always) → push snapshot to the server on content change.
|
Package agent runs the in-cluster continuous loop: collect → evaluate per target → ClusterReadiness CRD status (always) → push snapshot to the server on content change. |
|
codequality
Package codequality renders engine reports as GitLab Code Quality reports (artifacts:reports:codequality), which GitLab shows in the merge request widget and the pipeline's Code Quality tab.
|
Package codequality renders engine reports as GitLab Code Quality reports (artifacts:reports:codequality), which GitLab shows in the merge request widget and the pipeline's Code Quality tab. |
|
codequality/codequalitytest
Package codequalitytest checks GitLab Code Quality reports against what GitLab accepts, for every package that emits one (the CLI's --output gitlab-codequality and the server's /api/v1/gate?format=gitlab-codequality).
|
Package codequalitytest checks GitLab Code Quality reports against what GitLab accepts, for every package that emits one (the CLI's --output gitlab-codequality and the server's /api/v1/gate?format=gitlab-codequality). |
|
collect
Package collect builds an inventory.Inventory from a live cluster (or, in files mode, from rendered manifests).
|
Package collect builds an inventory.Inventory from a live cluster (or, in files mode, from rendered manifests). |
|
crd
Package crd owns the ClusterReadiness custom resource: its embedded CRD manifest, plain JSON-tagged Go types (no codegen), and apply/status logic via the dynamic client.
|
Package crd owns the ClusterReadiness custom resource: its embedded CRD manifest, plain JSON-tagged Go types (no codegen), and apply/status logic via the dynamic client. |
|
crd/apigroup
Package apigroup is the one place the project's Kubernetes API group is spelled: the ClusterReadiness CRD's group and the prefix of every annotation upgradescope reads or writes.
|
Package apigroup is the one place the project's Kubernetes API group is spelled: the ClusterReadiness CRD's group and the prefix of every annotation upgradescope reads or writes. |
|
junit
Package junit renders engine reports as JUnit XML, the test-report format Jenkins (the junit step), GitLab (artifacts:reports:junit) and Azure Pipelines (PublishTestResults) display.
|
Package junit renders engine reports as JUnit XML, the test-report format Jenkins (the junit step), GitLab (artifacts:reports:junit) and Azure Pipelines (PublishTestResults) display. |
|
junit/junittest
Package junittest reads JUnit XML as CI systems do and validates it against the Jenkins JUnit schema (the xUnit plugin's junit-10.xsd, vendored under testdata), for every package that emits JUnit (the CLI's --output junit and the server's /api/v1/gate?format=junit).
|
Package junittest reads JUnit XML as CI systems do and validates it against the Jenkins JUnit schema (the xUnit plugin's junit-10.xsd, vendored under testdata), for every package that emits JUnit (the CLI's --output junit and the server's /api/v1/gate?format=junit). |
|
kb
Package kb loads and indexes the three upgrade-readiness datasets: generated API lifecycle data, the add-on EOL registry, and the hardcoded Kubernetes version-skew policy.
|
Package kb loads and indexes the three upgrade-readiness datasets: generated API lifecycle data, the add-on EOL registry, and the hardcoded Kubernetes version-skew policy. |
|
mcp
Package mcp is upgradescope's Model Context Protocol server: read-only tools that let an AI assistant ask for a cluster's upgrade readiness, its findings, the add-on registry and, against a fleet server, the fleet.
|
Package mcp is upgradescope's Model Context Protocol server: read-only tools that let an AI assistant ask for a cluster's upgrade readiness, its findings, the add-on registry and, against a fleet server, the fleet. |
|
sarif
Package sarif renders engine reports as SARIF 2.1.0 for GitHub code scanning.
|
Package sarif renders engine reports as SARIF 2.1.0 for GitHub code scanning. |
|
sarif/sariftest
Package sariftest checks SARIF documents against what GitHub code scanning accepts, for every package that emits SARIF (the CLI's --output sarif and the server's /api/v1/gate?format=sarif).
|
Package sariftest checks SARIF documents against what GitHub code scanning accepts, for every package that emits SARIF (the CLI's --output sarif and the server's /api/v1/gate?format=sarif). |
|
secretfile
Package secretfile reads a secret from a file and picks up a new value when the file changes: how serve and the agent rotate a token or a webhook URL mounted from a Kubernetes Secret without a restart.
|
Package secretfile reads a secret from a file and picks up a new value when the file changes: how serve and the agent rotate a token or a webhook URL mounted from a Kubernetes Secret without a restart. |
|
server
Package server is the upgradescope continuous-mode server: snapshot ingest, persisted evaluations, a read API, and on-demand what-if re-evaluation.
|
Package server is the upgradescope continuous-mode server: snapshot ingest, persisted evaluations, a read API, and on-demand what-if re-evaluation. |
|
server/notify
Package notify defines the notification seam fired on finding deltas (new blocker, became-ready, add-on entering the EOL window) — never on every snapshot.
|
Package notify defines the notification seam fired on finding deltas (new blocker, became-ready, add-on entering the EOL window) — never on every snapshot. |
|
server/store
Package store persists clusters, snapshots and evaluations for the upgradescope server.
|
Package store persists clusters, snapshots and evaluations for the upgradescope server. |
|
server/store/storetest
Package storetest pins the behavioral contract of store.Store.
|
Package storetest pins the behavioral contract of store.Store. |
|
suppress
Package suppress applies accepted findings to an engine report: ignore rules (from .upgradescope.yaml or ClusterReadiness spec.ignore) and the ignore object annotation (apigroup.IgnoreAnnotation) move findings, or single objects of a finding, into Report.Suppressed with the reason given, so they stop counting toward score and verdict but stay visible.
|
Package suppress applies accepted findings to an engine report: ignore rules (from .upgradescope.yaml or ClusterReadiness spec.ignore) and the ignore object annotation (apigroup.IgnoreAnnotation) move findings, or single objects of a finding, into Report.Suppressed with the reason given, so they stop counting toward score and verdict but stay visible. |
|
textsafe
Package textsafe makes text that a scanned manifest or cluster controls safe to print to a terminal or a CI log.
|
Package textsafe makes text that a scanned manifest or cluster controls safe to print to a terminal or a CI log. |
|
registry/extra.go
|
registry/extra.go |
|
tools
|
|
|
gen-docs
command
Command gen-docs writes upgradescope's shell completions and man pages, rendered from the same cobra command tree the binary runs, so they cannot drift from its flags.
|
Command gen-docs writes upgradescope's shell completions and man pages, rendered from the same cobra command tree the binary runs, so they cannot drift from its flags. |
Click to show internal directories.
Click to hide internal directories.
