internal/

directory
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2026 License: Apache-2.0

Directories

Path Synopsis
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.
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.
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).
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.
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.
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.
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).
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.
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.
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.
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).
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.
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.
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.
store
Package store persists clusters, snapshots and evaluations for the upgradescope server.
Package store persists clusters, snapshots and evaluations for the upgradescope server.
store/storetest
Package storetest pins the behavioral contract of store.Store.
Package storetest pins the behavioral contract of store.Store.
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.
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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL