fluxcd

package
v0.4.27 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HelmReleaseKindFilter = kyamls.Filter{
		Kinds: []string{"helm.toolkit.fluxcd.io/v2beta1/HelmRelease"},
	}
)

Functions

func SetChartVersion

func SetChartVersion(node *yaml.RNode, path, version string) error

SetChartVersion sets the helm chart version

Types

type ChartVersion

type ChartVersion struct {
	Chart         string
	Version       string
	SourceRefName string
}

ChartVersion represents a helm chart release version metadata from an Fluxcd HelmRelease resource

func GetChartVersion

func GetChartVersion(node *yaml.RNode, path string) *ChartVersion

GetChartVersion gets the ChartVersion from the given YAML file

func (*ChartVersion) Key

func (v *ChartVersion) Key() string

Key returns a unique key for the helm chart version

func (*ChartVersion) String

func (v *ChartVersion) String() string

String returns the string summary of the helm chart version

type HelmReleaseFilter

type HelmReleaseFilter struct {
	Chart         gitops.TextFilter
	SourceRefName gitops.TextFilter
}

HelmReleaseFilter filter for helm releases

func (*HelmReleaseFilter) AddFlags

func (o *HelmReleaseFilter) AddFlags(cmd *cobra.Command)

func (*HelmReleaseFilter) Matches

func (o *HelmReleaseFilter) Matches(v *ChartVersion) bool

Matches return true if the app version matches the filter

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL