ServiceAccount

ServiceAccount is a public non-human principal.

ServiceAccount is a public non-human principal. Credentials stay private.

API versionkudurru.io/v1alpha1
KindServiceAccount
ScopeNamespaced
Resourceserviceaccounts.kudurru.io
Short namesksa
Subresourcesstatus

Spec

ServiceAccountSpec is a non-human principal owning API tokens (§8.6).

FieldTypeDescription
spec.descriptionstringLength: at most 2048
spec.disabledbooleanDisabled refuses every token of the account.
spec.tokenobjectServiceAccountTokenSpec asks kudurru to keep a token for the account in a Secret in the operator credential namespace.
spec.token.expiresAfterstring
spec.token.secretNamestringLength: at most 253

Status

ServiceAccountStatus records use.

FieldTypeDescription
status.lastUsedstringFormat: date-time
status.tokenIDstring

Example

deploy/kustomize/samples/kudurru.io_v1alpha1_serviceaccount.yaml:

apiVersion: kudurru.io/v1alpha1
kind: ServiceAccount
metadata:
  name: automation
  namespace: dns
spec:
  description: DNS automation

Source: docs-site/content/reference/crds/serviceaccount.md