This is a selected list of Glues and GlueOperators, all of them are tested either by an
integration test of end-to-end test.
See main samples here.
See ALL Glue integration test resources here.
See ALL GlueOperator integration test resources here,
Each sample below is backed by an integration or end-to-end test and highlights a distinct
feature. Click through to the resource on main.
A Glue manages a set of related resources directly (no parent custom resource).
- SimpleGlue —
the minimal example: a single
ConfigMapchild resource. - CrossReferenceResource —
one child references a value from another (
{configMap1.data.key}) and orders creation withdependsOn. - ResourceTemplate —
defines children with
resourceTemplate(a templated YAML string) instead of an inlineresource. - TwoResourcesAndCondition —
a JavaScript reconcile precondition (
JSCondition) gates whether the second resource is created, based on the data of the first. - RelatedResourceSimpleWithCondition —
reads an existing (related)
Secretnot managed by theGlue, feeds its data into a childConfigMap, and uses it in a condition. - CopySecretToConfigMap —
copies a
Secretfrom another namespace into aConfigMap, iterating its entries with a Qute{#for}loop anddecodeBase64. - ClusterScopedChild —
manages a cluster-scoped child resource (a
Namespace) viaclusterScoped: true.
A GlueOperator turns a parent custom resource into a reusable template: a Glue is
instantiated for every instance of the parent.
- SimpleGlueOperator —
a parent CR drives a single templated
ConfigMap({parent.metadata.name},{parent.spec.value}). - BulkOperator —
generates a variable number of children from
parent.spec.replicasusingbulk: true.
Larger, runnable scenarios under
src/test/resources/sample:
- WebPage operator —
a
WebPageCR is expanded into aConfigMap,Deployment,Service, and a conditionally createdIngress(only whenparent.spec.exposed == true). - Secret copy operator —
a cluster-scoped
Namespaceparent copies a sharedSecretfromdefaultinto each namespace. - Mutating webhook deployment —
deploys a full pod mutating webhook stack (
Deployment+Service+MutatingWebhookConfiguration) usingdependsOnand aReadyCondition.