app

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package app provides a sample controller using the pv primitive.

PersistentVolumes are cluster-scoped resources. In a real operator, the owner would typically be a cluster-scoped CRD (e.g. a ClusterStorageConfig). When a component create pipeline is used, it will only set controller references where the owner/owned scopes are compatible, and will skip ownerReferences for cluster-scoped resources that would otherwise have namespace-scoped owners. In those skipped cases, the cluster-scoped resource will not be garbage-collected with the namespaced owner.

This example demonstrates the PV primitive's builder, mutation, and status APIs without full component reconciliation to keep the focus on the primitive itself.

Jump to

Keyboard shortcuts

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