Skip to content

ClickhouseRole

Usage example

apiVersion: aiven.io/v1alpha1
kind: ClickhouseRole
metadata:
  name: my-role
spec:
  authSecretRef:
    name: aiven-token
    key: token

  project: my-aiven-project
  serviceName: my-clickhouse
  role: my_role

ClickhouseRole

ClickhouseRole is the Schema for the clickhouseroles API.

Required

  • apiVersion (string). Value aiven.io/v1alpha1.
  • kind (string). Value ClickhouseRole.
  • metadata (object). Data that identifies the object, including a name string and optional namespace.
  • spec (object). ClickhouseRoleSpec defines the desired state of ClickhouseRole. See below for nested schema.

spec

Appears on ClickhouseRole.

ClickhouseRoleSpec defines the desired state of ClickhouseRole.

Required

  • project (string, Immutable, MaxLength: 63, Format: ^[a-zA-Z0-9_-]+$). Identifies the project this resource belongs to.
  • role (string, Immutable, MaxLength: 255, Format: ^[a-zA-Z_][0-9a-zA-Z_]*$). The role that is to be created.
  • serviceName (string, Immutable, MaxLength: 63, Format: ^[a-z][-a-z0-9]+$). Specifies the name of the service that this resource belongs to.

Optional

authSecretRef

Appears on spec.

Authentication reference to Aiven token in a secret.

Required

  • key (string, MinLength: 1).
  • name (string, MinLength: 1).