istio: istio.io/istio/operator/pkg/manifest Index | Files

package manifest

import "istio.io/istio/operator/pkg/manifest"

Index

Package Files

shared.go

func GenIOPFromProfile Uses

func GenIOPFromProfile(profileOrPath, fileOverlayYAML string, setFlags []string, skipValidation, allowUnknownField bool,
    kubeConfig *rest.Config, l clog.Logger) (string, *iopv1alpha1.IstioOperator, error)

GenIOPFromProfile generates an IstioOperator from the given profile name or path, and overlay YAMLs from user files and the --set flag. If successful, it returns an IstioOperator string and struct.

func GenManifests Uses

func GenManifests(inFilename []string, setFlags []string, force bool,
    kubeConfig *rest.Config, l clog.Logger) (name.ManifestMap, *iopv1alpha1.IstioOperator, error)

GenManifests generates a manifest map, keyed by the component name, from input file list and a YAML tree representation of path-values passed through the --set flag. If force is set, validation errors will not cause processing to abort but will result in warnings going to the supplied logger.

func GenerateConfig Uses

func GenerateConfig(inFilenames []string, setFlags []string, force bool, kubeConfig *rest.Config,
    l clog.Logger) (string, *iopv1alpha1.IstioOperator, error)

GenerateConfig creates an IstioOperatorSpec from the following sources, overlaid sequentially: 1. Compiled in base, or optionally base from paths pointing to one or multiple ICP/IOP files at inFilenames. 2. Profile overlay, if non-default overlay is selected. This also comes either from compiled in or path specified in IOP contained in inFilenames. 3. User overlays stored in inFilenames. 4. setOverlayYAML, which comes from --set flag passed to manifest command.

Note that the user overlay at inFilenames can optionally contain a file path to a set of profiles different from the ones that are compiled in. If it does, the starting point will be the base and profile YAMLs at that file path. Otherwise it will be the compiled in profile YAMLs. In step 3, the remaining fields in the same user overlay are applied on the resulting profile base. The force flag causes validation errors not to abort but only emit log/console warnings.

func GetValueForSetFlag Uses

func GetValueForSetFlag(setFlags []string, path string) string

GetValueForSetFlag parses the passed set flags which have format key=value and if any set the given path, returns the corresponding value, otherwise returns the empty string. setFlags must have valid format.

func ParseYAMLFiles Uses

func ParseYAMLFiles(inFilenames []string, force bool, l clog.Logger) (overlayYAML string, profile string, err error)

ParseYAMLFiles parses the given slice of filenames containing YAML and merges them into a single IstioOperator format YAML strings. It returns the overlay YAML, the profile name and error result.

func ReadLayeredYAMLs Uses

func ReadLayeredYAMLs(filenames []string) (string, error)

func ReadYamlProfile Uses

func ReadYamlProfile(inFilenames []string, setFlags []string, force bool, l clog.Logger) (string, string, error)

ReadYamlProfile gets the overlay yaml file from list of files and return profile value from file overlay and set overlay.

Package manifest imports 23 packages (graph) and is imported by 2 packages. Updated 2021-01-08. Refresh now. Tools for package owners.