gameplane / docs
EXTEND

Modules & Sources

Install game capabilities from trusted catalogs, operate source synchronization, and move safely between module versions and digests.

Modules & Sourcesv0.414 MIN

Modules are the catalog’s install unit — this page covers reading the merged catalog and configuring the sources it’s built from.

Module provenance and signatures matter

A module is executable infrastructure content. Treat provenance, signatures, digest pinning, and source credentials as security controls.

Read the module catalog

Available, installed, verified, policy-blocked, and update-ready states explain what can be deployed and why.

Review supported game capabilitiesReview supported game capabilities before deploying a template.
Prefer signed, verified releasesPrefer signed, verified releases and preserve the selected digest.
Check dependent serversUse upgrade, rollback, and uninstall only after checking dependent servers.

The dashboard’s Modules page displays the merged catalog across all configured module sources. Each source indexes a registry, Git repository, archive, or upload bucket, and the operator continuously syncs the latest available modules into the cluster’s catalog. Individual modules enter the catalog in one of five states:

  • Available — indexed by a source but not yet installed.
  • Installed — present in the cluster; ready to instantiate into GameServers.
  • Verified — cryptographically signed and integrity-checked.
  • Failed — install or signature verification failed (shown as a generic failed status; check the source’s verification policy and the Module’s error reason).
  • Update — the pinned version is unavailable but a newer one exists; upgrade is offered.

The state diagram below shows the phases of a Module resource while the operator pulls and applies a version.

stateDiagram-v2
    [*] --> Pending: WaitingForCatalog or NoVersionAvailable
    Pending --> Pulling: catalog entry and version found
    Pulling --> Ready: bundle verified and GameTemplate applied
    Pending --> Failed: SourceNotFound, SourceConfig, VerifyConfig, VersionUnavailable
    Ready --> Failed: SourceNotFound, SourceConfig, VerifyConfig, VersionUnavailable
    Pulling --> Failed: PullFailed, SignatureInvalid, DigestMismatch, IncompatibleOperator, ApplyTemplate
    Failed --> Pulling: spec change (retries at the same generation stay Failed)
    Ready --> Pulling: spec.version or spec.digest changed

Configure module sources

Sources can represent OCI, Git, archive, upload, or registry-backed discovery with sync status and credentials.

Use Kubernetes SecretsUse Kubernetes Secrets for registry tokens and private source keys.
Set sync interval and monitorSet a reasonable sync interval and investigate stale or failed states.
Apply source policiesApply source allow-lists and verification policy consistently across clusters.

A ModuleSource is a cluster-scoped CRD that points to one module store and declares credentials, refresh timing, and policy constraints. The operator reconciles each source on a configurable interval (default: 1 hour) and maintains a Synced condition reflecting the last pull. If a sync fails, the condition captures the error.

The chart’s defaultModuleSource picks one of two backends via type: OCI registry (pull pre-built, cosign-signed bundles — recommended for production) or Git repository (index the GameplanePanel/module repo directly for rapid iteration). A separate uploadModuleSource block (enabled by default) accepts modules uploaded through the dashboard, stored as ConfigMaps in the operator namespace.

Disable the default if you manage ModuleSource resources via GitOps, or create additional sources to index private registries or custom catalogs. The ModuleSource CRD also supports HTTP (tar.gz/zip archives) and local directory backends for specialized use cases.

The flowchart below shows how a module moves from its store, through the catalog, into a GameTemplate and a GameServer.

flowchart LR
  author["Module author<br/>gp-module init / validate / package"] --> store
  subgraph store["Module stores"]
    oci["OCI registry"]
    git["git repository"]
    http["HTTP archive"]
    local["local directory"]
    upload["upload ConfigMaps"]
  end
  store --> ms["ModuleSource controller<br/>modsrc.Fetcher indexes,<br/>status.modules + digests"]
  ms --> catalog["Dashboard catalog<br/>(API /modules)"]
  catalog -- install --> mod["Module CR"]
  mod --> mc["Module controller<br/>pulls bundle"]
  mc --> gt["GameTemplate<br/>(managed-by=Module)"]
  mc --> loc["&lt;template&gt;-locales ConfigMap"]
  kubectl["kubectl apply"] --> gt
  gt --> gs["GameServer"]
  gs --> agent["Agent sidecar<br/>GAMEPLANE_CAPABILITIES"]

Author and publish modules

Available since v0.3.0

Module authoring features (gp-module CLI, web Module Builder, and related APIs) are available since v0.3.0. For v0.2.0, import pre-built modules from official registries or upload bundles directly.

Package metadata, templates, assets, and compatibility as versioned OCI content with a reproducible release process.

MODULE RELEASE LOOP
01   Validate schema, templates, capabilities, and supported versions
02   Build, sign, push, then verify the exact OCI digest
03   Sync the source, install, deploy a canary, and test rollback

Since v0.3.0, Gameplane ships a unified toolkit for authoring and publishing:

  • gp-module CLI — scaffold, validate offline, preview runtime config, and package modules for distribution.
  • Web Dashboard Module Builder — a visual 3-step wizard for building modules directly in the cluster.

The gp-module command covers:

  • init — scaffold a module from an archetype (SteamCMD, Java, or generic).
  • validate — lint metadata, CRD schemas, image digests, ports, and environment configuration.
  • preview — simulate server creation, evaluating dynamic memory limits and variable precedence.
  • package — enforce asset size limits (icon ≤ 512 KiB, bundle ≤ 1 MiB) and push to an OCI registry.
  • i18n extract and i18n stamp — generate the English reference locales/en.json and record reviewed translations (v0.4.0).

The web Module Builder guides you through preset selection, container image pinning (with digest verification), port and storage configuration, and one-click installation into an upload source.

Once packaged, you’ll sign modules with Cosign using your cluster’s key, push the signed OCI artifact to a registry, and create or update the corresponding ModuleSource to index it. The operator pulls the latest modules on the next sync interval; the dashboard renders them in the catalog and allows install/upgrade/rollback workflows.