No description
  • Go 61.7%
  • TypeScript 21.2%
  • HTML 5.7%
  • Shell 5.5%
  • JavaScript 2.9%
  • Other 3%
Find a file
2026-11-25 13:46:22 +01:00
console Move the plugin to the repo root as rinis-openfsc 2026-11-24 13:17:10 +01:00
console-ui validate manager address and inway address 2026-11-25 10:38:04 +01:00
docs bump version in guide 2026-11-25 10:41:42 +01:00
openfsc-operator set txlog api address for the manager 2026-11-25 13:46:22 +01:00
scripts set default storage class to cluster default 2026-11-24 15:26:38 +01:00
.dockerignore Move the plugin to the repo root as rinis-openfsc 2026-11-24 13:17:10 +01:00
.gitignore set default storage class to cluster default 2026-11-24 15:26:38 +01:00
chart.go Move the plugin to the repo root as rinis-openfsc 2026-11-24 13:17:10 +01:00
config.go set txlog api address for the manager 2026-11-25 13:46:22 +01:00
console.go set default storage class to cluster default 2026-11-24 15:26:38 +01:00
console_test.go set default storage class to cluster default 2026-11-24 15:26:38 +01:00
definition.yaml set txlog api address for the manager 2026-11-25 13:46:22 +01:00
definition_test.go set txlog api address for the manager 2026-11-25 13:46:22 +01:00
Dockerfile Move the plugin to the repo root as rinis-openfsc 2026-11-24 13:17:10 +01:00
go.mod Move the plugin to the repo root as rinis-openfsc 2026-11-24 13:17:10 +01:00
go.sum fix plugin 2026-11-23 15:44:52 +01:00
installer.go Move the plugin to the repo root as rinis-openfsc 2026-11-24 13:17:10 +01:00
installer_test.go Move the plugin to the repo root as rinis-openfsc 2026-11-24 13:17:10 +01:00
Justfile Move the plugin to the repo root as rinis-openfsc 2026-11-24 13:17:10 +01:00
LICENSE Move the plugin to the repo root as rinis-openfsc 2026-11-24 13:17:10 +01:00
logo-dark.svg Move the plugin to the repo root as rinis-openfsc 2026-11-24 13:17:10 +01:00
logo.svg Move the plugin to the repo root as rinis-openfsc 2026-11-24 13:17:10 +01:00
main.go Move the plugin to the repo root as rinis-openfsc 2026-11-24 13:17:10 +01:00
mise.toml Move the plugin to the repo root as rinis-openfsc 2026-11-24 13:17:10 +01:00
plugin.go Move the plugin to the repo root as rinis-openfsc 2026-11-24 13:17:10 +01:00
README.md set default storage class to cluster default 2026-11-24 15:26:38 +01:00

OpenFSC plugin (RINIS)

This is our repo for the Fieldlab of November 2026: the rinis-openfsc Fundament plugin and its openfsc-operator, in one Go module (rinis-oss/open-fsc).

Checkout paths

The docs and scripts use two variables for where the repos are checked out. Set them if yours differ from the defaults:

export PLUGIN_HOME=$HOME/plugin          # this repo
export FUNDAMENT_HOME=$HOME/fundament    # the fundament repo

Docs

Scripts

  • scripts/sandbox-up.sh: start Docker (Colima), the main cluster, the plugin sandbox and the wiring between them (just cluster-start, just plugins cluster-start, just plugin-sandbox-kubeconfig, just plugins sandbox-catalog). Safe to rerun. --fresh also wipes all earlier OpenFSC work in the sandbox and the catalog (both system--rinis-openfsc and the functl plugin dev installation acme-corp--rinis-openfsc), so you can publish and install 1.0.0 again (asks first). Add --remove-images to delete the rinis-openfsc images too, and --reset-platform to reset fundament to its test data (removes your own users, organizations, projects and API keys; slow).
  • scripts/sandbox-down.sh: stop the sandbox and the main cluster gracefully, without deleting them. --colima also stops Docker. Both refuse while functl plugin dev (skaffold dev) runs: stop it with Ctrl-C first.
  • scripts/console-preview/: stand-in Console host for just console-preview / just console-dev.

Layout

Path What it is
definition.yaml The plugin manifest: metadata, RBAC, console menu and components
plugin.go The plugin itself
main.go Hands the plugin to the SDK runtime
Justfile Build, test, lint and image recipes
mise.toml Pinned tool versions (Go, just, skaffold, kubectl)
LICENSE AGPL-3.0
console.go Embeds the console UI assets
console/ Console UI pages (Vite build output of console-ui/)
console-ui/ Console UI source (Vite, vanilla TS)
openfsc-operator/ The openfsc-operator: FSCInstallation CRD, controller, Helm chart

Develop

Tool versions are pinned in mise.toml. With mise installed, mise install gets Go, just, skaffold and kubectl at the versions this project expects. Recipes live in the Justfile; run just --list to see them all.

The plugin and the operator share one Go module (rinis-oss/open-fsc). The plugin embeds the operator's Helm chart (openfsc-operator/chart, see chart.go) and installs it at runtime; the operator image is built separately.

go mod tidy          # needs network access, or a warm module cache
just build           # plugin binary
just operator-build  # operator binary
just test            # Go tests for plugin and operator
just console-build   # console-ui/ → console/
just console-test

Image builds need the docker buildx plugin (with Homebrew and Colima: brew install docker-buildx):

just docker                         # plugin image, linux/amd64, also on an Apple Silicon Mac
PLATFORM=linux/arm64 just docker    # for an arm64 cluster
just operator-docker                # openfsc-operator image

Sandbox

just operator-push builds the operator image and pushes it to the sandbox registry (localhost:5112); set the printed ref as OPERATOR_IMAGE in the PluginInstallation's spec.config before the first install, together with POSTGRES_STORAGE_CLASS: local-path (the console's create page otherwise uses the Fieldlab clusters' ceph-incluster). just test-sandbox checks that the installation reaches Running and that a sample FSCInstallation becomes Active; just test-sandbox-cleanup removes it. just console-preview / just console-dev need a fundament checkout at $FUNDAMENT_HOME (default ~/fundament) for the shared /plugin-ui bundle.

Hot reload

functl plugin dev runs the plugin in the Fundament plugin sandbox and rebuilds it when you save Go or console/ source, go.mod or go.sum. Changes to definition.yaml need a restart of functl plugin dev. Prerequisites: the sandbox cluster, docker, skaffold, kubectl, and a functl auth login session. Set up the sandbox as described in https://github.com/fundament-oss/fundament/blob/master/docs/developer/plugins/testing-plugins-locally.md.

functl plugin dev                  # deletes the dev installation on Ctrl-C
functl plugin dev --no-cleanup     # keeps it after exit
functl plugin dev-down             # removes a leftover dev installation

Config values for spec.config (the keys in definition.yaml's configSchema) come from --set KEY=VALUE (repeatable) or a --config YAML file; --set wins. functl checks them against the schema before building, including required keys.

functl plugin dev --set MY_KEY=value         # MY_KEY declared in configSchema
functl plugin dev --config dev-config.yaml   # MY_KEY: value

Fill in

  • definition.yaml: spec.permissions.rbac decides what the plugin may do in the cluster. It is materialised verbatim as a ClusterRole, so grant only what the plugin uses.
  • spec.menu, spec.customComponents, spec.allowedResources and the files under console/ are one contract. definition_test.go checks that the files referenced actually exist; nothing checks the rest, so change them together.
  • Every TODO marker in this project.

metadata.license says AGPL-3.0, and LICENSE holds its text. Keep the two in step if the licence ever changes.

Publish

Publishing to the Fieldlab marketplace follows https://fieldlab2026.projects.digilab.network/aan-de-slag#plugin. Images go to the Forgejo registry of the openfsc organisation, tagged with metadata.version:

REG=code.digitaledienst.overheid.nl/openfsc
just docker v1.0.0 && just operator-docker v1.0.0
docker tag rinis-openfsc-plugin:v1.0.0   $REG/rinis-openfsc-plugin:v1.0.0
docker tag rinis-openfsc-operator:v1.0.0 $REG/rinis-openfsc-operator:v1.0.0
docker push $REG/rinis-openfsc-operator:v1.0.0
docker push $REG/rinis-openfsc-plugin:v1.0.0
docker buildx imagetools inspect $REG/rinis-openfsc-plugin:v1.0.0   # Digest: sha256:...
FUNCTL_URL=https://fundament-poc.nl functl plugin publish definition.yaml --create --submit \
  --image=$REG/rinis-openfsc-plugin@sha256:<digest>

docker login code.digitaledienst.overheid.nl needs a Forgejo access token with package: read and write. The plugin installs the operator image named in config.go (OPERATOR_IMAGE default), whose tag must equal metadata.version; definition_test.go checks this. Each version publishes once: bump metadata.version and the operator tag together for a new release.

Fundament docs

https://github.com/fundament-oss/fundament/tree/master/docs/developer/plugins