Skip to content

CoderAIProvider

API identity

  • Group/version: coder.com/v1alpha1
  • Kind: CoderAIProvider
  • Resource: coderaiproviders
  • Scope: namespaced

Spec

Field Type Description
controlPlaneRef CoderControlPlaneReference ControlPlaneRef names the CoderControlPlane in the same namespace. The controller calls Coder with that control plane's operator token.
type string Type is the Coder provider type. Coder cannot change it after create.
baseURL string BaseURL is the http:// or https:// URL that Coder sends model requests to. It must not hold user info. The Secret in apiKeySecretRef must list its origin as an allowed destination.
displayName string DisplayName is the name that Coder shows. When empty, Coder shows the provider name.
icon string Icon is the icon URL or path that Coder shows.
enabled boolean Enabled turns the provider on or off in Coder. When omitted, the default is true.
apiKeySecretRef SecretKeySelector APIKeySecretRef references the key in a Secret in the same namespace that holds the provider API key. The Secret must opt in to the credential Secret contract.

Status

Field Type Description
observedGeneration integer ObservedGeneration is the generation the controller last processed.
appliedGeneration integer AppliedGeneration is the last generation whose spec Coder fully holds.
providerID string ProviderID is the Coder provider ID.
createAttemptTime Time CreateAttemptTime is set before every provider create request. While it is set and ProviderID is empty, a create request can be in flight or already committed in Coder.
credential CoderAIProviderCredentialStatus Credential records the Secret value last sent to Coder.
conditions Condition array Conditions are Ready, Reconciling, and Stalled.

Referenced types

CoderAIProviderCredentialStatus

CoderAIProviderCredentialStatus records which Secret value was last sent to Coder. It holds no secret data and nothing derived from it.

Field Type Description
secretName string SecretName is the Secret name that was read.
secretKey string SecretKey is the key in the Secret that was read.
secretUID string SecretUID is the UID of the Secret that was read.
secretResourceVersion string SecretResourceVersion is the resourceVersion of the Secret that was read.
keyID string KeyID is the ID that Coder gave the key. It is not the key.
resendAttemptTime Time ResendAttemptTime is set before every key resend. While it is set, a resend can be in flight or already committed in Coder.

CoderControlPlaneReference

CoderControlPlaneReference names a CoderControlPlane in the same namespace.

Field Type Description
name string Name is the CoderControlPlane name.

SecretKeySelector

SecretKeySelector identifies a key in a Secret.

Field Type Description
name string Name is the Kubernetes Secret name.
key string Key is the key inside the Secret data map.

Source

  • Go type: api/v1alpha1/coderaiprovider_types.go
  • Generated CRD: config/crd/bases/coder.com_coderaiproviders.yaml