app

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package app provides a sample controller demonstrating mutations and gating.

Index

Constants

This section is empty.

Variables

View Source
var AddToScheme = sharedapp.AddToScheme

AddToScheme registers the ExampleApp types with the given scheme.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	client.Client
	Scheme   *runtime.Scheme
	Recorder record.EventRecorder
	Metrics  component.Recorder

	NewDeploymentResource func(*ExampleApp) (component.Resource, error)
	NewConfigMapResource  func(*ExampleApp) (component.Resource, error)
}

Controller reconciles an ExampleApp by managing a Deployment and a ConfigMap within a single component. The ConfigMap is gated on EnableMetrics, so it is created only when metrics are enabled and deleted when they are disabled.

func (*Controller) Reconcile

func (r *Controller) Reconcile(ctx context.Context, owner *ExampleApp) error

Reconcile builds and reconciles a single component containing both resources.

type ExampleApp

type ExampleApp = sharedapp.ExampleApp

ExampleApp re-exports the shared CRD type so callers in this package need no import alias.

type ExampleAppList

type ExampleAppList = sharedapp.ExampleAppList

ExampleAppList re-exports the shared list type.

type ExampleAppSpec

type ExampleAppSpec = sharedapp.ExampleAppSpec

ExampleAppSpec re-exports the shared spec type.

type ExampleAppStatus

type ExampleAppStatus = sharedapp.ExampleAppStatus

ExampleAppStatus re-exports the shared status type.

Jump to

Keyboard shortcuts

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