Documentation
¶
Index ¶
- Constants
- func CreateGitRepo(gitRepoName, gitRepoURL string, opts ...Option) env.Func
- func CreateHelmRelease(name, source, chart string, opts ...Option) env.Func
- func CreateHelmRepository(name, url string, opts ...Option) env.Func
- func CreateKustomization(kustomizationName, sourceRef string, opts ...Option) env.Func
- func DeleteGitRepo(gitRepoName string, opts ...Option) env.Func
- func DeleteHelmRelease(name string, opts ...Option) env.Func
- func DeleteHelmRepo(name string, opts ...Option) env.Func
- func DeleteKustomization(kustomizationName string, opts ...Option) env.Func
- func InstallFlux(opts ...Option) env.Func
- func UninstallFlux(opts ...Option) env.Func
- type Manager
- type Option
- type Opts
- type Source
Constants ¶
const NoFluxInstallationFoundMsg = "flux needs to be installed within a cluster first"
Variables ¶
This section is empty.
Functions ¶
func CreateGitRepo ¶
CreateGitRepo creates a reference to a specific repository, it is a source for Kustomization or HelmRelease
func CreateHelmRelease ¶ added in v0.4.0
CreateHelmRelease is used to point to a specific source (e.g. HelmRepository). The chart parameter is a combination of chart name and path. Chart values could be provided via opts.
func CreateHelmRepository ¶ added in v0.4.0
CreateHelmRepository is used to create a reference to helm repository with charts, it is a source for HelmRelease
func CreateKustomization ¶
CreateKustomization is used to point to a specific source and path for reconciliation
func DeleteGitRepo ¶
DeleteGitRepo removes a specific GitRepository object from the cluster
func DeleteHelmRelease ¶ added in v0.4.0
DeleteHelmRelease removes a specific HelmRelease object from the cluster
func DeleteHelmRepo ¶ added in v0.4.0
DeleteHelmRepo removes a specific HelmRepository object from the cluster
func DeleteKustomization ¶
DeleteKustomization removes a specific Kustomization object from the cluster
func InstallFlux ¶
InstallFlux installs all flux components into the cluster. It is possible to specify a target namespace with flux.WithNamespace(). Default namespace is 'flux-system'
func UninstallFlux ¶
UninstallFlux removes all flux components from a cluster
Types ¶
type Option ¶
type Option func(*Opts)
func WithBranch ¶
WithBranch is used to target a source with a specific branch
func WithCommit ¶
WithCommit is used to target a source with a specific commit SHA
func WithInterval ¶
WithInterval is used to specify how often flux should check for changes in a source
func WithNamespace ¶
WithNamespace If present, the namespace scope for this request (default "flux-system")