Skip to main content
Version: 0.7.0

ResourceGraphDefinition

The ResourceGraphDefinition (RGD) is kro's core API for defining custom Kubernetes resources that orchestrate multiple underlying resources.


API Specification

API Version
kro.run/v1alpha1
Kind
ResourceGraphDefinition
Scope
Cluster

Fields Reference

Spec

FieldTypeDescription
resources
[]objectThe resources that are part of the resourcegraphdefinition.
externalRef
objectExternalRef is a reference to an external resource. It allows the user to specify the Kind, Version, Name and Namespace of the resource to be read and used in the Graph.
idrequired
stringNo description
includeWhen
[]stringNo description
readyWhen
[]stringNo description
template
objectNo description
schemarequired
objectThe schema of the resourcegraphdefinition, which includes the apiVersion, kind, spec, status, types, and some validation rules.
additionalPrinterColumns
[]objectAdditionalPrinterColumns 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.
apiVersionrequiredimmutable
stringThe APIVersion of the resourcegraphdefinition. This is used to generate and create the CRD for the resourcegraphdefinition.
group
stringThe group of the resourcegraphdefinition. This is used to set the API group of the generated CRD. If omitted, it defaults to "kro.run".
kindrequiredimmutable
stringThe kind of the resourcegraphdefinition. This is used to generate and create the CRD for the resourcegraphdefinition.
spec
objectThe spec of the resourcegraphdefinition. Typically, this is the spec of the CRD that the resourcegraphdefinition is managing. This is adhering to the SimpleSchema spec
status
objectThe status of the resourcegraphdefinition. This is the status of the CRD that the resourcegraphdefinition is managing. This is adhering to the SimpleSchema spec.
types
objectTypes is a map of custom type definitions. These can be used in the spec of the resourcegraphdefinition. Each type definition is also adhering to the SimpleSchema spec.

Status

FieldTypeDescription
conditions
[]objectConditions represent the latest available observations of an object's state
lastTransitionTime
stringLast time the condition transitioned from one status to another.
message
stringA human-readable message indicating details about the transition.
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.
reason
stringThe reason for the condition's last transition.
statusrequired
stringStatus of the condition, one of True, False, Unknown.
typerequired
stringType is the type of the Condition
resources
[]objectResources represents the resources, and their information (dependencies for now)
dependencies
[]objectDependencies represents the resource dependencies of a resource graph definition
id
stringID represents the id of the resources we're providing information for
state
stringState is the state of the resourcegraphdefinition
topologicalOrder
[]stringTopologicalOrder is the topological order of the resourcegraphdefinition graph

Brought to you with ♥ by SIG Cloud Provider