github.com/1aal/kubeblocks@v0.0.0-20231107070852-e1c03e598921/test/testdata/resources/mysql-config-constraint-not-validate.yaml (about)

     1  apiVersion: apps.kubeblocks.io/v1alpha1
     2  kind: ConfigConstraint
     3  metadata:
     4    name: mysql-tree-node-template-8.0
     5  spec:
     6    # configmap reference
     7    tplRef: mysql-tree-node-template-8.0
     8  
     9    #  cfgSchemaTopLevelName: MysqlParameter
    10  
    11    # ConfigurationSchema that impose restrictions on engine parameter's rule
    12    #  configurationSchema:
    13    #    # schema: auto generate from cue scripts
    14    #    # example: ../../pkg/configuration/testdata/mysql_openapi.json
    15    #    cue:
    16  
    17    #  require db instance restart
    18    staticParameters:
    19      - automatic_sp_privileges
    20  
    21    # mysql configuration file format
    22    formatterConfig:
    23      format: ini
    24      iniConfig:
    25        sectionName: mysqld
    26  
    27    # Immutable, if set to true, ensures that data stored in the ConfigMap cannot be updated (only object metadata can be modified).
    28    # If set to true, Configmap object referenced by TplRef will also be modified to immutable
    29    # Defaulted to true
    30    # It is recommended to turn this option on only during the development or testing phase.
    31    immutable: true