grafana/pkg/kinds/serviceaccount/crd/serviceaccount.crd.yml
Ryan McKinley e70d623f90
Schemas: Generate CRDs for core kinds (#62641)
Co-authored-by: sam boyer <sdboyer@grafana.com>
2023-02-01 09:08:26 -08:00

95 lines
4.1 KiB
YAML

# Code generated - EDITING IS FUTILE. DO NOT EDIT.
#
# Generated by:
# kinds/gen.go
# Using jennies:
# YamlCRDJenny
#
# Run 'make gen-cue' from repository root to regenerate.
kind: CustomResourceDefinition
apiVersion: apiextensions.k8s.io/v1
metadata:
name: serviceaccounts.serviceaccount.core.grafana.com
spec:
group: serviceaccount.core.grafana.com
versions:
- name: v0-0alpha1
served: true
storage: true
schema:
openAPIV3Schema:
properties:
spec:
properties:
accessControl:
additionalProperties:
type: boolean
description: AccessControl metadata associated with a given resource.
type: object
avatarUrl:
description: |-
AvatarUrl is the service account's avatar URL. It allows the frontend to display a picture in front
of the service account.
type: string
created:
description: Created indicates when the service account was created.
format: int64
type: integer
id:
description: ID is the unique identifier of the service account in the database.
format: int64
type: integer
isDisabled:
description: IsDisabled indicates if the service account is disabled.
type: boolean
login:
description: Login of the service account.
type: string
name:
description: Name of the service account.
type: string
orgId:
description: OrgId is the ID of an organisation the service account belongs to.
format: int64
type: integer
role:
description: Role is the Grafana organization role of the service account which can be 'Viewer', 'Editor', 'Admin'.
enum:
- Admin
- Editor
- Viewer
type: string
teams:
description: Teams is a list of teams the service account belongs to.
items:
type: string
type: array
tokens:
description: |-
Tokens is the number of active tokens for the service account.
Tokens are used to authenticate the service account against Grafana.
format: int64
type: integer
updated:
description: Updated indicates when the service account was updated.
format: int64
type: integer
required:
- id
- orgId
- name
- login
- isDisabled
- role
- tokens
- avatarUrl
type: object
required:
- spec
type: object
names:
kind: ServiceAccount
plural: serviceaccounts
scope: Namespaced