Skip to main content
Version: v1.4.x

K8s-objects

TypeComponent

Parameters​

Parameter
Type
Required
DefaultDescription
objectsarrayYes

Template​

The following tabs display the definition's Cue template and the rendered YAML. The rendered YAML is the output of the Cue template when the definition is applied to a cluster.

"k8s-objects": {
type: "component"
annotations: {}
labels: {
"componentdefinition.spectrocloud.com/type": "application"
"definition.spectrocloud.com/category": "Kubernetes-Resources"
}
description: "K8s-objects allow users to specify raw K8s objects in properties"
attributes: {
version: "1.0.1"
}
}

template: {
output: parameter.objects[0]

outputs: {
for i, v in parameter.objects {
if i > 0 {
"objects-\(i)": v
}
}
}
parameter: {
objects!: [...{}]
}
}