Skip to main content
Version: v3.9.0

Catalog item fields

Reference for kind: CatalogItem. Deploy and microservice binding are on Catalog microservices.

Deploy
apiVersion: datasance.com/v3 # required, string
kind: CatalogItem # required, string
metadata:
name: reader # required, string. Lowercase alphanumeric
namespace: my-ecn # no, string
spec:
registry: remote # no, int or alias, default 1. remote is 1, local is 2
amd64: ghcr.io/datasance/reader:1.0.0 # one arch, string. At least one architecture image
arm64: ghcr.io/datasance/reader:1.0.0 # one arch, string
riscv64: ghcr.io/datasance/reader:1.0.0 # one arch, string
arm: ghcr.io/datasance/reader:1.0.0 # one arch, string
description: Example catalog item # no, string
name: reader # no, string. Prefer metadata.name

Not deployed​

These fields come back from describe. Leave them out of the file you pass to deploy.

spec:
id: 1 # describe only, int. Deploy does not upsert by this field

metadata.name is the catalog name. Use lowercase alphanumeric. The same string may also appear as spec.name. Prefer metadata.name.

Fields​

FieldTypeRequiredDescription
registryint or aliasNoRegistry id, remote (1), or local (2). Default 1 when omitted.
amd64stringOne archImage for amd64.
arm64stringOne archImage for arm64.
riscv64stringOne archImage for riscv64.
armstringOne archImage for arm (32-bit).
descriptionstringNoHuman-readable text.
namestringNoCopy of the catalog name. Prefer metadata.name.
idintNoController id. Deploy does not upsert by this field.
configExamplestringNoOptional example config snippet.

Image strings are path:tag resolved through the registry id. The host lives on the registry row.

YAML valueId
remote1
local2
3, 4, …User-created registry ids

Validation​

ConditionError
Missing nameName must be specified.
Invalid nameLowercase alphanumeric.
No arch imageAt least one image must be specified.

Create and update​

Omit spec.id on create. The Controller assigns it.

Update by keeping metadata.name and deploying again. Changing registry or image tags affects microservices that use this item.

delete catalogitem takes metadata.name, resolves it to an id, and deletes. System rows and rows still referenced by microservices return an error.

Group 3See anything wrong with the document? Help us improve it!