simpleapp

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ConditionTypeReady indicates whether all SimpleApp resources have been
	// successfully reconciled and the Deployment is available.
	ConditionTypeReady = "Ready"

	// ConditionTypeProgressing indicates the Deployment is rolling out new pods.
	ConditionTypeProgressing = "Progressing"

	// ConditionTypeDegraded indicates the Deployment has not reached its
	// desired replica count or has failing pods.
	ConditionTypeDegraded = "Degraded"
)

Variables

This section is empty.

Functions

func LabelsForSimpleApp

func LabelsForSimpleApp(name, version string) map[string]string

LabelsForSimpleApp returns a standard set of labels for resources managed by this operator.

func ReconcileDeployment

func ReconcileDeployment(ctx context.Context, c client.Client, scheme *runtime.Scheme, app *appsv1alpha1.SimpleApp, version string) error

ReconcileDeployment ensures the Deployment exists and matches the desired state declared in SimpleApp.Spec.Deployment.

func ReconcilePVC

func ReconcilePVC(ctx context.Context, c client.Client, scheme *runtime.Scheme, app *appsv1alpha1.SimpleApp, version string) error

ReconcilePVC ensures the PersistentVolumeClaim matches the desired state or is deleted when the spec is removed.

Most PVC spec fields are immutable after the claim is bound. The only mutable field is spec.resources.requests.storage, which supports volume expansion when the StorageClass has allowVolumeExpansion: true. On update, we synchronize the storage request along with labels and owner references.

func ReconcileService

func ReconcileService(ctx context.Context, c client.Client, scheme *runtime.Scheme, app *appsv1alpha1.SimpleApp, version string) error

ReconcileService ensures the Service matches the desired state or is deleted when the spec is removed.

Types

type InvalidSpecError

type InvalidSpecError struct {
	Field   string
	Message string
}

InvalidSpecError is a permanent error indicating that a field in SimpleAppSpec contains invalid JSON that cannot be deserialized into the expected Kubernetes type.

func (*InvalidSpecError) Error

func (e *InvalidSpecError) Error() string

Jump to

Keyboard shortcuts

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