...

Package fluxcd

import "edge-infra.dev/third_party/k8s/fluxcd"
Overview
Index

Overview ▾

Package fluxcd provides access to the embedded vendored manifests for installing FluxCD to K8s clusters. This package only provides a single function for loading the embedded manifests, and all other functionality should be implemented in the appropriate `pkg/` directory.

func LoadManifests

func LoadManifests(opts ...Option) ([]*unstructured.Unstructured, error)

LoadManifests reads the manifests from the embedded byte mapping containing vendored FluxCD installation manifests and our Kustomize patches + targets, runs 'kustomize build' based on the provided options and then decodes the data into K8s objects that can be applied to the K8s API using controller-runtime's client. If no options are provided, it will render the fluxcd/helm-controller and fluxcd/kustomize-controller and their dependencies, as they are the only FluxCD components used in Edge.

func OnlyKustomizeController

func OnlyKustomizeController() func(*options)

OnlyKustomizeController will cause only fluxcd/kustomize-controller and its dependencies to be rendered.

type Option

Option is the public functional option interface

type Option func(*options)