角色分配在Postgres Operator中如何工作?

I am using https://postgres-operator.readthedocs.io/en/latest/ and have deployed:

kind: "postgresql"
apiVersion: "acid.zalan.do/v1"

metadata:
  name: "acid-databaker-db"
  namespace: "dev"
  labels:
    team: acid

spec:
  teamId: "acid"
  postgresql:
    version: "12"
  numberOfInstances: 2
  volume:
    size: "2Gi"
  users:
    admin:
      - superuser
      - createdb
    kcadmin: [] 
  databases:
    keycloak: kcadmin
  allowedSourceRanges:
    # IP ranges to access your cluster go here

  resources:
    requests:
      cpu: 100m
      memory: 100Mi
    limits:
      cpu: 500m
      memory: 500Mi

一切正常,我可以连接到数据库,但是我不理解这一部分:

  users:
    admin:
      - superuser
      - createdb
    kcadmin: [] 
  databases:
    keycloak: kcadmin

According to the doc, admin is a role - right? What about kcadmin? Is it an user or role? If it is an user, what kind of role does the kcadmin has?

评论