Documentation ¶
Index ¶
- Constants
- func NewApp(existingApp *v1alpha1.App, pkgInstall *pkgingv1alpha1.PackageInstall, ...) (*v1alpha1.App, error)
- type PackageInstallCR
- type PackageInstallVersionHandler
- func (ipvh *PackageInstallVersionHandler) Create(evt event.CreateEvent, q workqueue.RateLimitingInterface)
- func (ipvh *PackageInstallVersionHandler) Delete(evt event.DeleteEvent, q workqueue.RateLimitingInterface)
- func (ipvh *PackageInstallVersionHandler) Generic(evt event.GenericEvent, q workqueue.RateLimitingInterface)
- func (ipvh *PackageInstallVersionHandler) Update(evt event.UpdateEvent, q workqueue.RateLimitingInterface)
- type Reconciler
Constants ¶
View Source
const ( ManuallyControlledAnnKey = "ext.packaging.carvel.dev/manually-controlled" HelmTemplateOverlayNameKey = "ext.packaging.carvel.dev/helm-template-name" HelmTemplateOverlayNameSpaceKey = "ext.packaging.carvel.dev/helm-template-namespace" // Resulting secret names are sorted deterministically by suffix ExtYttPathsFromSecretNameAnnKey = "ext.packaging.carvel.dev/ytt-paths-from-secret-name" ExtHelmPathsFromSecretNameAnnKey = "ext.packaging.carvel.dev/helm-template-values-from-secret-name" ExtYttDataValuesOverlaysAnnKey = "ext.packaging.carvel.dev/ytt-data-values-overlays" ExtFetchSecretNameAnnKeyFmt = "ext.packaging.carvel.dev/fetch-%d-secret-name" )
View Source
const ( // DowngradableAnnKey specifies annotation that user can place on // PackageInstall to indicate that lower version of the package // can be selected vs whats currently installed. DowngradableAnnKey = "packaging.carvel.dev/downgradable" )
Variables ¶
This section is empty.
Functions ¶
func NewApp ¶
func NewApp(existingApp *v1alpha1.App, pkgInstall *pkgingv1alpha1.PackageInstall, pkgVersion datapkgingv1alpha1.Package) (*v1alpha1.App, error)
Types ¶
type PackageInstallCR ¶
type PackageInstallCR struct {
// contains filtered or unexported fields
}
nolint: revive
func NewPackageInstallCR ¶
func NewPackageInstallCR(model *pkgingv1alpha1.PackageInstall, log logr.Logger, kcclient kcclient.Interface, pkgclient pkgclient.Interface, coreClient kubernetes.Interface) *PackageInstallCR
type PackageInstallVersionHandler ¶ added in v0.25.0
type PackageInstallVersionHandler struct {
// contains filtered or unexported fields
}
TODO For this PoC, we are simply going to add all packages to the workqueue, but in the future, we will only enqueue the packages that are eligible for upgrade based on the new packages
func NewPackageInstallVersionHandler ¶ added in v0.25.0
func (*PackageInstallVersionHandler) Create ¶ added in v0.25.0
func (ipvh *PackageInstallVersionHandler) Create(evt event.CreateEvent, q workqueue.RateLimitingInterface)
func (*PackageInstallVersionHandler) Delete ¶ added in v0.25.0
func (ipvh *PackageInstallVersionHandler) Delete(evt event.DeleteEvent, q workqueue.RateLimitingInterface)
func (*PackageInstallVersionHandler) Generic ¶ added in v0.25.0
func (ipvh *PackageInstallVersionHandler) Generic(evt event.GenericEvent, q workqueue.RateLimitingInterface)
func (*PackageInstallVersionHandler) Update ¶ added in v0.25.0
func (ipvh *PackageInstallVersionHandler) Update(evt event.UpdateEvent, q workqueue.RateLimitingInterface)
type Reconciler ¶ added in v0.25.0
type Reconciler struct {
// contains filtered or unexported fields
}
Reconciler is responsible for reconciling PackageInstalls.
func NewReconciler ¶ added in v0.25.0
func NewReconciler(kcClient kcclient.Interface, pkgClient pkgclient.Interface, coreClient kubernetes.Interface, pkgToPkgInstallHandler *PackageInstallVersionHandler, log logr.Logger) *Reconciler
NewReconciler is the constructor for the Reconciler struct
func (*Reconciler) AttachWatches ¶ added in v0.25.0
func (r *Reconciler) AttachWatches(controller controller.Controller) error
AttachWatches configures watches needed for reconciler to reconcile PackageInstalls.
Click to show internal directories.
Click to hide internal directories.