Documentation
¶
Overview ¶
Package gotk carries the Flux toolkit install manifests kure vendors: the manifests.tar.gz asset of one flux2 release, embedded so that gotk-mode bootstrap generation, and the tests that read the toolkit's CustomResourceDefinitions out of it, need no network.
It sits at the module root rather than in pkg/stack/fluxcd because that package and the test helpers its own tests import both read the bundle; a package importing a helper that imports it back is an import cycle.
Index ¶
Constants ¶
const Version = "v2.10.0"
Version is the flux2 release whose manifests.tar.gz asset is embedded. It is pinned to the github.com/fluxcd/flux2/v2 module version in kure's go.mod, so the controllers the bundle installs are the ones whose API types kure compiles against; pkg/stack/fluxcd's TestVendoredPinsMatchGoMod fails when the two differ, or when a controller image tag in the bundle differs from the matching fluxcd/<controller>/api require. The archive itself is not fingerprinted, so replacing it stays on the refresh procedure. To refresh after a flux2 bump:
- Bump github.com/fluxcd/flux2/v2 (and the fluxcd/* controller APIs, which move together) in go.mod.
- Download the matching asset from the flux2 release page: https://github.com/fluxcd/flux2/releases/download/{version}/manifests.tar.gz
- Replace internal/gotk/manifests.tar.gz with it.
- Update this constant, and the version named in pkg/stack/fluxcd/README.md ("currently **vX.Y.Z**").
- Run the tests under internal/ and pkg/stack/fluxcd.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.