watches

package
v1.39.1 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: Apache-2.0 Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const WatchesFile = "watches.yaml"

Variables

This section is empty.

Functions

This section is empty.

Types

type Watch

type Watch struct {
	schema.GroupVersionKind `json:",inline"`
	ChartDir                string               `json:"chart"`
	WatchDependentResources *bool                `json:"watchDependentResources,omitempty"`
	OverrideValues          map[string]string    `json:"overrideValues,omitempty"`
	Selector                metav1.LabelSelector `json:"selector"`
	ReconcilePeriod         metav1.Duration      `json:"reconcilePeriod,omitempty"`
	DryRunOption            string               `json:"dryRunOption,omitempty"`
}

Watch defines options for configuring a watch for a Helm-based custom resource.

func Load

func Load(path string) ([]Watch, error)

Load loads a slice of Watches from the watch file at `path`. For each entry in the watches file, it verifies the configuration. If an error is encountered loading the file or verifying the configuration, it will be returned.

func LoadReader

func LoadReader(reader io.Reader) ([]Watch, error)

LoadReader loads a slice of Watches from the provided reader. For each entry in the watches file, it verifies the configuration. If an error is encountered reading or verifying the configuration, it will be returned.

func (*Watch) UnmarshalYAML deprecated

func (w *Watch) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML unmarshals an individual watch from the Helm watches.yaml file into a Watch struct.

Deprecated: This function is no longer used internally to unmarshal watches.yaml data. To ensure the correct defaults are applied when loading watches.yaml, use Load() or LoadReader() instead of this function and/or yaml.Unmarshal().

Jump to

Keyboard shortcuts

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