resolve

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Overview

Package resolve defines logic for resolving K8s yaml inputs to ko.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImageReferences

func ImageReferences(ctx context.Context, docs []*yaml.Node, builder build.Interface, publisher publish.Interface) error

ImageReferences resolves supported references to images within the input yaml to published image digests.

If a reference can be built and pushed, its yaml.Node will be mutated.

func MatchesSelector

func MatchesSelector(doc *yaml.Node, selector labels.Selector) (bool, error)

MatchesSelector returns true if the Kubernetes object (represented as a yaml.Node) matches the selector. An error is returned if the yaml.Node is not an K8s object or list.

If the document is a list, the yaml.Node will be mutated to only include items that match the selector.

Types

This section is empty.

Jump to

Keyboard shortcuts

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