Skip to main content
Version: main

API Reference

This page is generated from the Go API types in api/. For the CRD schema pages, see ResourceGraphDefinition, Graph, and GraphRevision.

Packages​

internal.kro.run/v1alpha1​

Package v1alpha1 contains API Schema definitions for the internal.kro.run v1alpha1 API group.

Resource Types​

GraphRevision​

GraphRevision is an immutable snapshot of a ResourceGraphDefinition revision.

FieldDescriptionDefaultValidation
apiVersion stringinternal.kro.run/v1alpha1
kind stringGraphRevision
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.
spec GraphRevisionSpec
status GraphRevisionStatus

GraphRevisionSpec​

GraphRevisionSpec defines the desired state of GraphRevision. It captures an immutable snapshot of the source ResourceGraphDefinition.

Appears in:

FieldDescriptionDefaultValidation
revision integerRevision is a monotonic revision number assigned per ResourceGraphDefinition name.Minimum: 1
Required: {}
snapshot ResourceGraphDefinitionSnapshotSnapshot is an immutable capture of the source ResourceGraphDefinition
identity and spec at the time this revision was issued.
Required: {}

GraphRevisionStatus​

GraphRevisionStatus defines the observed API state of GraphRevision. Internal runtime states such as Pending, Active, and Failed live in kro's in-memory revision registry and are not persisted here.

Appears in:

FieldDescriptionDefaultValidation
topologicalOrder string arrayTopologicalOrder is the ordered list of resource IDs based on dependencies.
conditions ConditionsConditions represent the latest available observations of the GraphRevision state.
GraphRevision exposes GraphVerified plus aggregate Ready.
resources ResourceInformation arrayResources provides detailed information about each resource in the graph.

ResourceGraphDefinitionSnapshot​

ResourceGraphDefinitionSnapshot captures the identity and spec of a ResourceGraphDefinition at a point in time.

Appears in:

FieldDescriptionDefaultValidation
name stringName identifies the source ResourceGraphDefinition by name.
This is the authoritative identity for adoption decisions.
Required: {}
generation integerGeneration is the metadata.generation of the source ResourceGraphDefinition
when this revision was issued. Informational only.
Required: {}
spec ResourceGraphDefinitionSpecSpec is an immutable copy of the source ResourceGraphDefinition spec.
This includes user-authored schema and resource templates.
Required: {}

kro.run/v1alpha1​

Package v1alpha1 contains API Schema definitions for the kro.run v1alpha1 API group

Resource Types​

CRDMetadata​

CRDMetadata configures instance metadata validation and metadata applied to the generated CRD.

Appears in:

FieldDescriptionDefaultValidation
validation MetadataValidationValidation defines constraints on instance metadata fields.Optional: {}
labels object (keys:string, values:string)Labels to apply to the generated CRDOptional: {}
annotations object (keys:string, values:string)Annotations to apply to the generated CRDOptional: {}

Condition​

Condition describes one aspect of the observed state of an object managed by kro: a ResourceGraphDefinition, Graph, GraphRevision, or an instance of an RGD-generated kind. Conditions are reported in the object's status.conditions list, which holds at most one entry per Type.

Appears in:

FieldDescriptionDefaultValidation
type ConditionTypeType is the type of the Condition
status ConditionStatusStatus of the condition, one of True, False, Unknown.
lastTransitionTime TimeLast time the condition transitioned from one status to another.Optional: {}
reason stringThe reason for the condition's last transition.Optional: {}
message stringA human-readable message indicating details about the transition.Optional: {}
observedGeneration integerobservedGeneration represents the .metadata.generation that the condition was set based upon.
For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
with respect to the current state of the instance.
Minimum: 0
Optional: {}

ConditionType​

Underlying type: string

ConditionType is the type of a status condition reported on kro resources.

ConditionType is an open string type, not a schema-validated enum: the API server accepts any value in a condition's type field. The constants in this package are the condition types kro itself sets on ResourceGraphDefinitions, Graphs, and RGD-generated instances, so the same value (for example "Ready") can appear for more than one resource kind. Other controllers or future kro versions may report additional condition types.

Appears in:

FieldDescription
GraphAcceptedRGDConditionTypeGraphAccepted is true when the RGD spec (schema and
resource templates) passes validation. False with reason
"InvalidResourceGraph" when the spec contains errors.
GraphRevisionsResolvedRGDConditionTypeGraphRevisionsResolved is true when all
GraphRevisions for this RGD have been discovered, no terminating
revisions remain in flight, and the latest revision's state in the
in-memory registry is known. Unknown while revisions are settling
(terminating GRs still deleting), warming (latest not yet in the
cache or registry), or compiling (latest is Pending). False when
the latest revision fails compilation.
KindReadyRGDConditionTypeKindReady is true when the generated
CustomResourceDefinition has been applied and its Established
condition is true.
ControllerReadyRGDConditionTypeControllerReady is true when the instance reconciler
for this RGD's generated kind is registered with the dynamic
controller and ready to reconcile instances.
ReadyInstanceConditionTypeReady is the root condition on an instance of an
RGD-generated kind. It is true only when InstanceManaged, GraphResolved,
and ResourcesReady are all true for the current generation; otherwise
it mirrors the status, reason, and message of the least healthy of them.
InstanceManagedInstanceConditionTypeInstanceManaged is true when kro has set the
finalizers and labels it needs to manage the instance. False with
reason "ManagementFailed" otherwise.
GraphResolvedInstanceConditionTypeGraphResolved is true when the instance's runtime
graph has been created and all of its resources resolved. False with
reason "ResolutionFailed" otherwise.
ResourcesReadyInstanceConditionTypeResourcesReady is true when every resource in the
instance's graph has been created and is ready. False with reason
"NotReady" while resources are still converging, or "ResourceDeleting"
while managed resources are terminating.
ReadyGraphConditionTypeReady is true when the graph has converged on its
desired state: every node has been reconciled and reports ready.
AcceptedGraphConditionTypeAccepted is true when the graph spec passes
validation (unique node IDs, well-formed expressions, dependency
graph is acyclic). False with reason "InvalidGraph" otherwise.

Conditions​

Underlying type: Condition

Conditions is a list of conditions.

Appears in:

FieldDescriptionDefaultValidation
type ConditionTypeType is the type of the Condition
status ConditionStatusStatus of the condition, one of True, False, Unknown.
lastTransitionTime TimeLast time the condition transitioned from one status to another.Optional: {}
reason stringThe reason for the condition's last transition.Optional: {}
message stringA human-readable message indicating details about the transition.Optional: {}
observedGeneration integerobservedGeneration represents the .metadata.generation that the condition was set based upon.
For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
with respect to the current state of the instance.
Minimum: 0
Optional: {}

Contribution​

Contribution is a lightweight record of a patch node's field-manager contribution to a resource this Graph does not own. It mirrors the in-memory executor contribution: the tuple identifies the target (APIVersion, Kind, Namespace, Name, Subresource) and FieldManager is the dedicated server-side-apply manager the contributed fields were applied under. On prune/teardown the manager relinquishes exactly those fields; the target object is never deleted.

Appears in:

FieldDescriptionDefaultValidation
apiVersion stringAPIVersion of the patched target ("apps/v1", "v1", ...).Required: {}
kind stringKind of the patched target ("Deployment", "ConfigMap", ...).Required: {}
namespace stringNamespace of the patched target. Empty for cluster-scoped targets.Optional: {}
name stringName of the patched target.Required: {}
subresource stringSubresource the contribution was applied through ("status" for a
status patch, empty for the main resource).
Optional: {}
fieldManager stringFieldManager is the dedicated server-side-apply field manager the
contributed fields were applied under. Release relinquishes the fields
owned by this manager on the target.
Required: {}

Dependency​

Dependency represents a dependency relationship between resources. When a resource uses CEL expressions to reference another resource, a dependency is created to ensure proper ordering.

Appears in:

FieldDescriptionDefaultValidation
id stringID is the unique identifier of the resource that this resource depends on.

ExternalRef​

ExternalRef is a reference to an external resource that already exists in the cluster. It allows you to read and use existing resources in your ResourceGraphDefinition without creating them. The referenced resource's fields can be accessed using CEL expressions in other resources.

Appears in:

FieldDescriptionDefaultValidation
apiVersion stringAPIVersion is the API version of the external resource.
Example: "v1" for core resources, "apps/v1" for Deployments.
Required: {}
kind stringKind is the kind of the external resource.
Example: "Service", "ConfigMap", "Deployment".
Required: {}
metadata ExternalRefMetadataRefer to Kubernetes API documentation for fields of metadata.Required: {}

ExternalRefMetadata​

Appears in:

FieldDescriptionDefaultValidation
name stringName is the name of the external resource to reference.
Mutually exclusive with Selector.
MinLength: 1
Optional: {}
namespace stringNamespace is the namespace of the external resource.
For single external refs (Name), defaults to the instance's namespace.
For external collections (Selector), empty means list across all namespaces.
Optional: {}
selector RawExtensionSelector is a label selector for collection external references.
When set, all resources matching the selector are included.
The selector may be a literal Kubernetes [metav1.LabelSelector] object or a full CEL
expression that resolves to one at reconcile time.
Mutually exclusive with Name.
Optional: {}
Schemaless: {}

ForEachDimension​

Underlying type: object

ForEachDimension defines a single expansion axis in a forEach block. Each dimension is a map with exactly one entry where the key is the variable name and the value is the CEL expression. Example: {"region": "${schema.spec.regions}"} Multiple dimensions create a cartesian product of expansions.

Validation:

  • MaxProperties: 1
  • MinProperties: 1

Appears in:

Graph​

Graph is a scope of composable nodes that manage Kubernetes resources and the relationships between them. Nodes reference each other through CEL expressions; the controller derives an execution order from the implied dependencies.

FieldDescriptionDefaultValidation
apiVersion stringkro.run/v1alpha1
kind stringGraph
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.
spec GraphSpecRequired: {}
status GraphStatus

GraphSpec​

GraphSpec defines the desired state of a Graph.

Appears in:

FieldDescriptionDefaultValidation
nodes Node arrayNodes is the unordered list of nodes that make up this Graph. Evaluation
order is derived from inter-node CEL references, not from list order.
Node IDs must be unique within the Graph.
MinItems: 1
Required: {}
serviceAccountName stringServiceAccountName, when set, causes kro to apply this Graph's resources
while impersonating the named ServiceAccount instead of using the kro
controller's own identity. The ServiceAccount is always resolved in the
Graph's own namespace (system:serviceaccount:<graph-namespace>:<name>), so
a Graph can never escalate beyond the RBAC granted to a ServiceAccount in
its own namespace. When empty, kro impersonates the default ServiceAccount
of the Graph's namespace, confining resource access to that namespace by
default.
The kro controller ServiceAccount must be granted the "impersonate" verb
on serviceaccounts for this to take effect.
MaxLength: 253
Optional: {}
Pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$

GraphStatus​

GraphStatus defines the observed state of a Graph.

Appears in:

FieldDescriptionDefaultValidation
conditions ConditionsConditions represent the latest available observations of the Graph's
state.
managedResources ManagedResource arrayManagedResources is the authoritative list of cluster resources this
Graph has applied. Entries are recorded in topological apply order so
reverse iteration gives reverse-apply order on delete + prune. Status
is persisted after reconciliation: on a fully-successful apply and
prune, it reflects the currently-applied set; on errors, it preserves
the union of previously-known and newly-applied resources.
MaxItems bounds the inventory so a runaway forEach expansion cannot push
the Graph object past etcd's object-size limit (~1.5Mi) — which would fail
the status write and, because teardown reads this list, jeopardize cleanup.
The practical limiter is the per-node forEach cap
(runtime.DefaultMaxCollectionSize, default 1000); this ceiling is set well
above any realistic aggregate (each entry is a few short strings + a UID,
so 5000 entries stays comfortably under the etcd limit even during the
write-ahead phase, which transiently holds previous ∪ next).
MaxItems: 5000
Optional: {}
appliedServiceAccount stringAppliedServiceAccount is the impersonation username
(system:serviceaccount:<namespace>:<name>) the Graph last applied its
resources under. Teardown resolves the executor from THIS identity rather
than the current spec.serviceAccountName, so editing that field between
apply and delete cannot strand resources under an identity that can no
longer see them. Empty for a Graph that has never applied (or one last
applied by a kro version predating this field), in which case teardown
falls back to the current spec.
Optional: {}
contributions Contribution arrayContributions is the authoritative release inventory for this Graph's
patch nodes: each entry records a field-manager contribution the Graph
applied to a resource it does not own. Because a patch never owns its
target, teardown/prune cannot rediscover these fields from ownership —
the inventory is what lets Release relinquish exactly the fields the
Graph contributed. The controller write-aheads the intended set BEFORE
apply and rewrites it with the observed set AFTER a clean apply, so a
crash in that window still leaves teardown a superset to release from.
Persisted on the status subresource (not a metadata annotation) so it is
RBAC-separable: a principal with only spec/metadata edit rights cannot
forge the release inventory.
Optional: {}

ManagedResource​

ManagedResource is a lightweight pointer to a cluster resource the Graph controller has applied. The tuple of (APIVersion, Kind, Namespace, Name) identifies the resource; UID is captured post-apply for safe deletion (preconditioned on UID so we never delete an impostor recreated by some other actor between apply and prune).

Appears in:

FieldDescriptionDefaultValidation
nodeID stringNodeID is the Graph node that produced this resource. Multiple
resources may share a NodeID for forEach expansions.
Required: {}
apiVersion stringAPIVersion of the resource ("apps/v1", "v1", ...).Required: {}
kind stringKind of the resource ("Deployment", "ConfigMap", ...).Required: {}
namespace stringNamespace of the resource. Empty for cluster-scoped resources.Optional: {}
name stringName of the resource.Required: {}
uid stringUID returned by the API server when the resource was applied. Used
as a delete precondition so we don't remove a resource that was
deleted-and-recreated out of band between apply and prune.
A UID-less entry is a not-yet-observed intent (e.g. a pre-apply
write-ahead entry declared but not yet applied this cycle). Recovery
requires a readable object with this Graph's template manager and no
peer template manager; deletion uses that snapshot's UID and
resourceVersion as preconditions.
Optional: {}

MetadataValidation​

MetadataValidation defines constraints on instance metadata fields.

Appears in:

FieldDescriptionDefaultValidation
name stringName constrains instance metadata.name using marker-only SimpleSchema syntax.
Supported markers are minLength, maxLength, pattern, enum, and validation.
Example: "maxLength=30 pattern=^[a-z].*$"
Optional: {}

Node​

Node is a single composable unit within a Graph. Each Node carries exactly one of the type-discriminating fields (Template, Ref, Def, Patch, Graph) which determines its behavior. Node IDs are the handles other nodes use to reference it via CEL expressions.

Appears in:

FieldDescriptionDefaultValidation
id stringID is the handle that other nodes use to reference this node from CEL
expressions. Must be alphanumeric (case-insensitive) and unique within
the Graph.
Pattern: ^[A-Za-z][A-Za-z0-9]*$
Required: {}
template RawExtensionTemplate declares that this node creates and manages a Kubernetes
resource. The controller applies the resource on create and on change,
and deletes it on prune.
Optional: {}
ref ExternalRefRef imports a resource that exists outside this Graph into scope. The
referenced resource is read-only; its fields become available to other
nodes through CEL expressions.
Optional: {}
def RawExtensionDef introduces raw data into scope without reading or writing any
Kubernetes resource. The value is a free-form object whose fields may
contain CEL expressions.
Optional: {}
graph RawExtensionGraph nests another Graph as a child scope under this node's ID. The
child's nodes form a lexical frame: they may reference this Graph's
nodes (capture) and shadow their names, but a single CEL expression may
not mix the two scopes — it references one frame or the other. The
child's node outputs are addressable under this node's ID, e.g.
${nodeID.childNode.field}. Nesting has no depth limit. The payload is
a GraphSpec (a nodes: list); it is parsed at compile time, so the CRD
stores it as an opaque object.
Optional: {}
patch RawExtensionPatch contributes fields to a resource this node does not own,
authored as a raw partial manifest exactly like Template (apiVersion,
kind, metadata.name required, metadata.namespace optional, plus the
contributed fields). The target identified by apiVersion, kind, and
metadata.name (+ namespace) must already exist; the node applies the
contributed fields under a dedicated field manager (server-side apply)
without taking ownership of the whole object. On prune the
contributed fields are released — the field manager relinquishes them
— but the target object is never deleted.
The target subresource is derived from field presence rather than
declared explicitly: a top-level status key routes the apply
through the status subresource, while any other top-level key (or any
metadata field beyond name/namespace) routes to the main resource. A
single patch node may not mix status fields with main-resource
fields, and it must contribute at least one field beyond identity.
Optional: {}
readyWhen string arrayReadyWhen is a list of CEL expressions that must all evaluate to
true for this node to be considered ready. Evaluated against scope
after the node has been applied and its value published, so
expressions typically reference the node's own published state
(e.g. cluster.status.phase == 'Active'). Empty means the node is
ready as soon as it is applied. For collection nodes (forEach) each
expression is evaluated once per item with each bound to that item,
and the node is ready only when every item satisfies every expression
(use each, not an aggregate over the node's own name):
readyWhen: [ "${each.status.phase == 'Running'}" ]
Optional: {}
includeWhen string arrayIncludeWhen is a list of CEL expressions that must all evaluate to
true for this node to be applied. Evaluated against scope before
apply, so expressions may reference upstream nodes. When any is
false the node is skipped entirely — no resolve, no apply, no scope
publication. The skip is contagious: nodes depending on a skipped
node are themselves skipped (not evaluated, no error), so a disabled
branch prunes cleanly instead of breaking its dependents.
Optional: {}
forEach ForEachDimension arrayForEach expands this node into a collection. Each entry binds a
variable name to a CEL expression that evaluates to an array; the
controller produces one instance per element. Multiple dimensions form
the cartesian product of their bindings.
MaxProperties: 1
MinProperties: 1
Optional: {}

Resource​

Resource represents a Kubernetes resource that is part of the ResourceGraphDefinition. Each resource can either be created using a template or reference an existing resource. Resources can depend on each other through CEL expressions, creating a dependency graph.

Appears in:

FieldDescriptionDefaultValidation
id stringID is a unique identifier for this resource within the ResourceGraphDefinition.
It is used to reference this resource in CEL expressions from other resources.
Example: "deployment", "service", "configmap".
Required: {}
template RawExtensionTemplate is the Kubernetes resource manifest to create.
It can contain CEL expressions (using ${...} syntax) that reference other resources.
Exactly one of template or externalRef must be provided.
Optional: {}
externalRef ExternalRefExternalRef references an existing resource in the cluster instead of creating one.
This is useful for reading existing resources and using their values in other resources.
Exactly one of template or externalRef must be provided.
Optional: {}
readyWhen string arrayReadyWhen is a list of CEL expressions that determine when this resource is considered ready.
All expressions must evaluate to true for the resource to be ready.
If not specified, the resource is considered ready when it exists.
Each entry must be a single standalone CEL expression wrapped in ${...}.
Examples:
- Single resource: ["${database.status.phase == 'Running'}", "${database.status.readyReplicas > 0}"]
- Collection: ["${each.status.phase == 'Running'}"]
Optional: {}
includeWhen string arrayIncludeWhen is a list of CEL expressions that determine whether this resource should be created.
All expressions must evaluate to true for the resource to be included.
If not specified, the resource is always included.
Expressions may reference schema fields and/or fields in other resources in the RGD. They are
re-evaluated during reconciliation, so resources may be created later or
pruned later as conditions change.
Each entry must be a single standalone CEL expression wrapped in ${...}.
Example: ["${schema.spec.enableMonitoring == true}", "${network.status.ready == true}"]
Optional: {}
forEach ForEachDimension arrayForEach expands this resource into a collection of resources.
Each entry binds a variable name to a CEL expression that evaluates to an array.
kro creates one resource instance for each element in the array.
With multiple entries, kro creates the cartesian product of all combinations.
Use the variable directly in template expressions (e.g., ${region}).
Example: [{"region": "${schema.spec.regions}"}, {"tier": "${schema.spec.tiers}"}]
MaxProperties: 1
MinProperties: 1
Optional: {}

ResourceGraphDefinition​

ResourceGraphDefinition is the core API for defining reusable groups of Kubernetes resources. It allows you to create custom resources that manage multiple underlying resources as a cohesive unit. When you create a ResourceGraphDefinition, kro automatically generates a CRD and deploys a controller to manage instances of your custom resource. Resources can reference each other using CEL expressions, and kro ensures they are created in the correct dependency order.

FieldDescriptionDefaultValidation
apiVersion stringkro.run/v1alpha1
kind stringResourceGraphDefinition
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.
spec ResourceGraphDefinitionSpec
status ResourceGraphDefinitionStatus

ResourceGraphDefinitionSpec​

ResourceGraphDefinitionSpec defines the desired state of ResourceGraphDefinition. It contains the schema for instances (defining the CRD structure) and the list of Kubernetes resources that make up the graph.

Appears in:

FieldDescriptionDefaultValidation
schema SchemaSchema defines the structure of instances created from this ResourceGraphDefinition.
It specifies the API version, kind, and fields (spec/status) for the generated CRD.
Use SimpleSchema syntax to define the instance schema concisely.
Required: {}
resources Resource arrayResources is the list of Kubernetes resources that will be created and managed
for each instance. Resources can reference each other using CEL expressions,
creating a dependency graph that determines creation order.
Optional: {}

ResourceGraphDefinitionState​

Underlying type: string

ResourceGraphDefinitionState defines the state of the resource graph definition.

Appears in:

FieldDescription
ActiveResourceGraphDefinitionStateActive represents the active state of the resource definition.
InactiveResourceGraphDefinitionStateInactive represents the inactive state of the resource graph definition

ResourceGraphDefinitionStatus​

ResourceGraphDefinitionStatus defines the observed state of ResourceGraphDefinition. It provides information about the deployment state, resource ordering, and conditions.

Appears in:

FieldDescriptionDefaultValidation
state ResourceGraphDefinitionStateState indicates whether the ResourceGraphDefinition is Active or Inactive.
Active means the graph is accepted and the generated CRD and dynamic controller
are currently serving.
Inactive means the current graph is not accepted or the RGD is not currently serving.
topologicalOrder string arrayTopologicalOrder is the ordered list of resource IDs based on their dependencies.
Resources are created in this order to ensure dependencies are satisfied.
Example: ["configmap", "deployment", "service"]
conditions ConditionsConditions represent the latest available observations of the ResourceGraphDefinition's state.
Common condition types include "Ready", "GraphRevisionsResolved", "GraphAccepted",
"KindReady", and "ControllerReady".
resources ResourceInformation arrayResources provides detailed information about each resource in the graph,
including their dependencies.
lastIssuedRevision integerLastIssuedRevision is the highest GraphRevision revision number ever issued for this RGD.
It is a persisted high-water mark used to keep revision allocation monotonic across GC.

ResourceInformation​

ResourceInformation provides detailed information about a specific resource in the ResourceGraphDefinition, particularly its dependencies on other resources.

Appears in:

FieldDescriptionDefaultValidation
id stringID is the unique identifier of the resource as defined in the resources list.
dependencies Dependency arrayDependencies lists all resources that this resource depends on.
A resource depends on another if it references it in a CEL expression.
These dependencies determine the order of resource creation.

ResourceScope​

Underlying type: string

ResourceScope defines whether the generated instance CRD is Namespaced or Cluster scoped.

Validation:

  • Enum: [Namespaced Cluster]

Appears in:

FieldDescription
NamespacedResourceScopeNamespaced means the generated instance CRD will be namespace-scoped.
This is the default.
ClusterResourceScopeCluster means the generated instance CRD will be cluster-scoped.

Schema​

Schema defines the structure and behavior of instances created from a ResourceGraphDefinition. It specifies the API group, version, and kind for the generated CRD, along with the spec and status schemas using SimpleSchema syntax. You can also define custom types, validation rules, and printer columns.

Appears in:

FieldDescriptionDefaultValidation
kind stringKind is the name of the custom resource type that will be created.
This becomes the kind field of the generated CRD and must be a valid Kubernetes kind name
(PascalCase, starting with a capital letter). This field is immutable after creation.
Example: "WebApplication", "Database", "MicroService"
Pattern: ^[A-Z][a-zA-Z0-9]{0,62}$
Required: {}
plural stringPlural is the plural form of Kind used as the resource name in the generated
CRD, forming its name as "<plural>.<group>". If omitted, it is derived by
pluralizing the lowercased kind, which follows English rules and is not always
what you would expect or might even not be correct. (For example: "PodInfo" becomes "podinfoes").
Set this explicitly to override the generated value.
This field is immutable after creation! It cannot be changed again.
MaxLength: 63
Optional: {}
Pattern: ^[a-z]([-a-z0-9]*[a-z0-9])?$
apiVersion stringAPIVersion is the version identifier for the generated CRD.
Must follow Kubernetes versioning conventions (v1, v1alpha1, v1beta1, etc.).
This field is immutable after creation.
Example: "v1alpha1", "v1", "v2beta1"
Pattern: ^v[0-9]+(alpha[0-9]+|beta[0-9]+)?$
Required: {}
group stringGroup is the API group for the generated CRD. Together with APIVersion and Kind,
it forms the complete GVK (Group-Version-Kind) identifier.
If omitted, defaults to "kro.run". This field is immutable after creation.
Example: "mycompany.io", "databases.example.com"
kro.runOptional: {}
spec RawExtensionSpec defines the schema for the instance's spec section using SimpleSchema syntax.
This becomes the OpenAPI schema for instances of the generated CRD.
Use SimpleSchema's concise syntax to define fields, types, defaults, and validations.
Markers are space-separated after a single "|" separator.
Example: {"replicas": "integer | default=1 minimum=1 maximum=10"}
types RawExtensionTypes is a map of custom type definitions that can be referenced in the Spec.
This allows you to define reusable complex types using SimpleSchema syntax.
Reference custom types in Spec using the type name.
Example: {"Server": {"host": "string", "port": "integer"}}
status RawExtensionStatus defines the schema for the instance's status section using SimpleSchema syntax.
Unlike spec, status fields use CEL expressions to project values from underlying resources.
This allows you to surface important information from managed resources at the instance level.
Example: {"connectionName": "${database.status.connectionName}", "endpoint": "${service.status.loadBalancer.ingress[0].hostname}"}
scope ResourceScopeScope determines whether the generated instance CRD is Namespaced or Cluster scoped.
Defaults to Namespaced to preserve existing behaviour. This field is immutable after creation.
NamespacedEnum: [Namespaced Cluster]
Required: {}
additionalPrinterColumns CustomResourceColumnDefinition arrayAdditionalPrinterColumns defines additional printer columns
that will be passed down to the created CRD. If set, no
default printer columns will be added to the created CRD,
and if default printer columns need to be retained, they
need to be added explicitly.
Optional: {}
shortNames string arrayShortNames are aliases for the generated CRD that can be used with kubectl.
Example: ["wa", "webapp"] allows kubectl get wa or kubectl get webapp instead of kubectl get webapplications.
MaxItems: 32
Optional: {}
items:MaxLength: 63
items:Pattern: ^[a-z]([-a-z0-9]*[a-z0-9])?$
categories string arrayCategories is a list of grouped resources this custom resource belongs to.
Resources in a category can be retrieved together with kubectl get <category>.
Example: ["kro"] makes instances appear in kubectl get kro.
MaxItems: 32
Optional: {}
items:MaxLength: 63
items:Pattern: ^[a-z]([-a-z0-9]*[a-z0-9])?$
metadata CRDMetadataRefer to Kubernetes API documentation for fields of metadata.Optional: {}

Brought to you with ♥ by SIG Cloud Provider