github.com/1aal/kubeblocks@v0.0.0-20231107070852-e1c03e598921/deploy/redis/templates/configconstraint.yaml (about) 1 {{- $cc := .Files.Get "config/redis7-config-effect-scope.yaml" | fromYaml }} 2 apiVersion: apps.kubeblocks.io/v1alpha1 3 kind: ConfigConstraint 4 metadata: 5 name: redis7-config-constraints 6 labels: 7 {{- include "redis.labels" . | nindent 4 }} 8 spec: 9 10 cfgSchemaTopLevelName: RedisParameter 11 12 # ConfigurationSchema that impose restrictions on engine parameter's rule 13 configurationSchema: 14 cue: |- 15 {{- .Files.Get "config/redis7-config-constraint.cue" | nindent 6 }} 16 17 ## require db instance restart 18 {{- if hasKey $cc "staticParameters" }} 19 staticParameters: 20 {{- $params := get $cc "staticParameters" }} 21 {{- range $params }} 22 - {{ . }} 23 {{- end }} 24 {{- end}} 25 26 ## reload parameters 27 ## dynamicParameters 28 {{- if hasKey $cc "dynamicParameters" }} 29 dynamicParameters: 30 {{- $params := get $cc "dynamicParameters" }} 31 {{- range $params }} 32 - {{ . }} 33 {{- end }} 34 {{- end}} 35 36 37 # redis configuration file format 38 formatterConfig: 39 format: redis