release

package
v4.167.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2025 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceIDLabel = "metadata.appcat.vshn.io/serviceID"
	RevisionLabel  = "metadata.appcat.vshn.io/revision"
)

Variables

This section is empty.

Functions

func UpdatePolicyPtr

func UpdatePolicyPtr(s xpv1.UpdatePolicy) *xpv1.UpdatePolicy

Types

type DefaultVersionHandler

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

DefaultVersionHandler handles AppCat version change for a claim using composition revisions.

func (*DefaultVersionHandler) ReleaseLatest

func (vh *DefaultVersionHandler) ReleaseLatest(ctx context.Context, enabled bool, kubeClient client.Client) error

ReleaseLatest function releases the latest AppCat version for a given claim via latest composition revision

type ReleaserOpts added in v4.149.0

type ReleaserOpts struct {
	ClaimName, Composite, ClaimNamespace, Group, Kind, Version, ServiceID string
}

ReleaserOpts holds all necessary information for a release handler to switch the revisions.

type VersionHandler

type VersionHandler interface {
	ReleaseLatest(ctx context.Context, enabled bool, kubeClient client.Client) error
}

VersionHandler is an interface for handling AppCat versions

func NewDefaultVersionHandler

func NewDefaultVersionHandler(l logr.Logger, opts ReleaserOpts) VersionHandler

Jump to

Keyboard shortcuts

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