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
Click to show internal directories.
Click to hide internal directories.