Tutorials and Examples

Step-by-step tutorials and examples

Learn Component Operator through practical tutorials and examples.


CRD Deletion Safeguarding

Install cert-manager via component-operator, explore Helm hook annotation mappings, and observe extension-type deletion guards in action

Apply, Delete and Purge Orders

Control dependent-object lifecycle ordering using apply-order, delete-order, and purge-order annotations

Deploying to a Remote Cluster

Use spec.kubeConfig and mustLocalLookup to forward a local secret to a remote cluster

Nesting Components

Create a Component that manages another Component as a dependent object, with source-revision pinning

Deep Dive into Kustomize Sources

Explore .component-config.yaml, _helpers.tpl, includedFiles, includedKustomizations

Declaring Additional Managed Types

Use spec.additionalManagedTypes to protect against stuck finalizers when an operator registers CRDs implicitly at startup

Harden Deployments Using Unprivileged Service Accounts

Use –default-service-account to constrain what component-operator can deploy

Stream Events to the Flux Notification Controller

Configure component-operator to emit reconciliation events to Flux and forward them to an external webhook

Sticky Deployments

Use spec.sticky to ensure every source version reaches a final state before the next one is applied

Decryption using SOPS

Using SOPS to decrypt encrypted manifests with age