github.com/1aal/kubeblocks@v0.0.0-20231107070852-e1c03e598921/deploy/orioledb/templates/configconstraint.yaml (about) 1 {{- $cc := .Files.Get "config/orioledb-config-effect-scope.yaml" | fromYaml }} 2 apiVersion: apps.kubeblocks.io/v1alpha1 3 kind: ConfigConstraint 4 metadata: 5 name: orioledb-cc 6 labels: 7 {{- include "orioledb.labels" . | nindent 4 }} 8 spec: 9 reloadOptions: 10 tplScriptTrigger: 11 sync: false 12 scriptConfigMapRef: orioledb-patroni-reload-script 13 namespace: {{ .Release.Namespace }} 14 15 # update patroni master 16 selector: 17 matchLabels: 18 "apps.kubeblocks.postgres.patroni/role": "master" 19 20 # top level orioledb configuration type 21 cfgSchemaTopLevelName: PGParameter 22 23 # ConfigurationSchema that impose restrictions on engine parameter's rule 24 configurationSchema: 25 # schema: auto generate from cue scripts 26 # example: ../../pkg/configuration/testdata/mysql_openapi.json 27 cue: |- 28 {{- .Files.Get "config/orioledb-config-constraint.cue" | nindent 6 }} 29 30 ## require db instance restart 31 ## staticParameters 32 {{- if hasKey $cc "staticParameters" }} 33 staticParameters: 34 {{- $params := get $cc "staticParameters" }} 35 {{- range $params }} 36 - {{ . }} 37 {{- end }} 38 {{- end}} 39 40 ## define immutable parameter list, this feature is not currently supported. 41 {{- if hasKey $cc "immutableParameters" }} 42 immutableParameters: 43 {{- $params := get $cc "immutableParameters" }} 44 {{- range $params }} 45 - {{ . }} 46 {{- end }} 47 {{- end}} 48 49 50 51 # configuration file format 52 formatterConfig: 53 format: properties