github.com/1aal/kubeblocks@v0.0.0-20231107070852-e1c03e598921/deploy/apecloud-postgresql/templates/configconstraint.yaml (about)

     1  apiVersion: apps.kubeblocks.io/v1alpha1
     2  kind: ConfigConstraint
     3  metadata:
     4    name: apecloud-postgresql12-cc
     5    labels:
     6      {{- include "apecloud-postgresql.labels" . | nindent 4 }}
     7  spec:
     8    # top level mysql configuration type
     9    cfgSchemaTopLevelName: PGParameter
    10  
    11    # ConfigurationSchema that impose restrictions on engine parameter's rule
    12    configurationSchema:
    13      # schema: auto generate from mmmcue scripts
    14      # example: ../../pkg/configuration/testdata/mysql_openapi.json
    15      cue: |-
    16        {{- .Files.Get "config/pg12-config-constraint.cue" | nindent 6 }}
    17      # configuration file format
    18    formatterConfig:
    19      format: properties