Skip to main content

Connector

ResourceConnectorper workspace

Connector is how a tenant's documents get in (or notifications get out).

At a glance​

PropertyValue
apiVersionlumen.ai/v1alpha1
kindConnector
Resource nameconnectors
ScopeNamespaced (lives in a workspace's namespace)

Spec​

Fields under spec:. Nested fields are indented under their parent.

FieldTypeDefaultDescription
classRefrequiredobject-ClassReference names a cluster-scoped class.Rule: classRef is immutable
classRef.namerequiredstring-minLength 1
configobject (free-form)-Config is validated against the class's configSchema. Values the driver generates (an email-forward address) are written here by the mutating webhook at create and are immutable after, so they survive export, version control and recreation.
credentialsobject-ConnectorCredentials are never values. Exactly one source is set.Rule: set exactly one of store or secretRef
credentials.secretRefobject-SecretRef is a Secret in the Connector's namespace.
credentials.secretRef.namerequiredstring-minLength 1
credentials.storeobject-Store is a path in the tenant's SecretStore slice.
credentials.store.pathrequiredstring-minLength 1
pausedboolean-Paused stops the connector receiving or polling without deleting it.

Status​

Written by Lumen; do not set it. Only the phase and the conditions are described here.

FieldTypeDefaultDescription
conditionslist of object-
conditions[].lastTransitionTimerequiredstring-lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
conditions[].messagerequiredstring-message is a human readable message indicating details about the transition. This may be an empty string.maxLength 32768
conditions[].observedGenerationinteger-observedGeneration 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
conditions[].reasonrequiredstring-reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.minLength 1; maxLength 1024; pattern `^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$`
conditions[].statusrequiredstring-status of the condition, one of True, False, Unknown.one of True, False, Unknown
conditions[].typerequiredstring-type of condition in CamelCase or in foo.example.com/CamelCase.maxLength 316; pattern `^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$`

kubectl columns​

ColumnTypeJSONPath
Classstring.spec.classRef.name
Pausedboolean.spec.paused
Readystring.status.conditions[?(@.type=="Ready")].status
Agedate.metadata.creationTimestamp

Example​

connector.yaml
apiVersion: lumen.ai/v1alpha1
kind: Connector
metadata:
name: invoices-inbox
namespace: tenant-acme
spec:
classRef: {name: email-forward}
config:
allowedSenders: ["*@supplier.example"]