No description
  • Go 44%
  • JavaScript 40.1%
  • Just 6.4%
  • HTML 5.9%
  • Dockerfile 3.6%
Find a file
2026-11-25 11:35:46 +01:00
console initial 2026-11-25 11:35:46 +01:00
console.go initial 2026-11-25 11:35:46 +01:00
definition.yaml initial 2026-11-25 11:35:46 +01:00
definition_test.go initial 2026-11-25 11:35:46 +01:00
Dockerfile initial 2026-11-25 11:35:46 +01:00
go.mod initial 2026-11-25 11:35:46 +01:00
go.sum initial 2026-11-25 11:35:46 +01:00
harbor-plugin initial 2026-11-25 11:35:46 +01:00
Justfile initial 2026-11-25 11:35:46 +01:00
LICENSE initial 2026-11-25 11:35:46 +01:00
main.go initial 2026-11-25 11:35:46 +01:00
mise.toml initial 2026-11-25 11:35:46 +01:00
plugin.go initial 2026-11-25 11:35:46 +01:00
plugin_test.go initial 2026-11-25 11:35:46 +01:00
README.md initial 2026-11-25 11:35:46 +01:00

Harbor

Harbor Registry

A Fundament plugin named harbor, scaffolded with functl plugin create.

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 Apache-2.0
console.go Embeds the console UI assets
console/ Console UI pages

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.

go mod tidy      # needs network access, or a warm module cache
just build
just test

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

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

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. The rules that ship are only what Helm itself needs to install a release; uncomment the commented blocks for the kinds of object your chart creates.
  • plugin.go: point repoURL, chartName and chartVersion at the chart you install, and list its CRDs in expectedCRDs.
  • 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 Apache-2.0, and LICENSE holds its text. If that file says TODO, functl plugin create had no text for the licence you chose -- paste it in, or re-create with one of MIT, Apache-2.0, GPL-3.0-only or EUPL-1.2.

Publish

Publishing a standalone plugin is not supported yet. Today a plugin definition is published from inside the Fundament monorepo with just plugin-publish, which requires the plugin to live under plugins/ and to have a catalog entry in the appstore. Until functl plugin publish exists, you can build and run this plugin, but not install it into a Fundament cluster.

Docs

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