Help us shape the future of Go! Take the 2026 Go Developer Survey

cluster

package
v1.15.5 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// LabelValueClusterResolverType is the value to use for the
	// resolution.tekton.dev/type label on resource requests
	LabelValueClusterResolverType = "cluster"

	// ClusterResolverName is the name that the cluster resolver should be
	// associated with
	ClusterResolverName = "Cluster"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}

Resolver implements a framework.Resolver that can fetch resources from the same cluster.

func (*Resolver) GetConfigName

func (r *Resolver) GetConfigName(_ context.Context) string

GetConfigName returns the name of the cluster resolver's configmap.

func (*Resolver) GetName

func (r *Resolver) GetName(_ context.Context) string

GetName returns a string name to refer to this Resolver by.

func (*Resolver) GetSelector

func (r *Resolver) GetSelector(_ context.Context) map[string]string

GetSelector returns a map of labels to match against tasks requesting resolution from this Resolver.

func (*Resolver) Initialize

func (r *Resolver) Initialize(ctx context.Context) error

Initialize sets up any dependencies needed by the Resolver.

func (*Resolver) IsImmutable added in v1.6.0

func (r *Resolver) IsImmutable([]v1.Param) bool

IsImmutable implements ImmutabilityChecker.IsImmutable Returns false because cluster resources don't have immutable references

func (*Resolver) Resolve

Resolve uses the given params to resolve the requested file or resource.

func (*Resolver) Validate

func (r *Resolver) Validate(ctx context.Context, req *v1beta1.ResolutionRequestSpec) error

Validate ensures parameters from a request are as expected.

Jump to

Keyboard shortcuts

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