github.com/aquasecurity/trivy-iac@v0.8.1-0.20240127024015-3d8e412cf0ab/pkg/scanners/helm/test/mysql/values.schema.json (about) 1 { 2 "$schema": "http://json-schema.org/schema#", 3 "type": "object", 4 "properties": { 5 "architecture": { 6 "type": "string", 7 "title": "MySQL architecture", 8 "form": true, 9 "description": "Allowed values: `standalone` or `replication`", 10 "enum": ["standalone", "replication"] 11 }, 12 "auth": { 13 "type": "object", 14 "title": "Authentication configuration", 15 "form": true, 16 "required": ["database", "username", "password"], 17 "properties": { 18 "rootPassword": { 19 "type": "string", 20 "title": "MySQL root password", 21 "description": "Defaults to a random 10-character alphanumeric string if not set" 22 }, 23 "database": { 24 "type": "string", 25 "title": "MySQL custom database name" 26 }, 27 "username": { 28 "type": "string", 29 "title": "MySQL custom username" 30 }, 31 "password": { 32 "type": "string", 33 "title": "MySQL custom password" 34 }, 35 "replicationUser": { 36 "type": "string", 37 "title": "MySQL replication username" 38 }, 39 "replicationPassword": { 40 "type": "string", 41 "title": "MySQL replication password" 42 } 43 } 44 }, 45 "primary": { 46 "type": "object", 47 "title": "Primary database configuration", 48 "form": true, 49 "properties": { 50 "podSecurityContext": { 51 "type": "object", 52 "title": "MySQL primary Pod security context", 53 "properties": { 54 "enabled": { 55 "type": "boolean", 56 "default": false 57 }, 58 "fsGroup": { 59 "type": "integer", 60 "default": 1001, 61 "hidden": { 62 "value": false, 63 "path": "primary/podSecurityContext/enabled" 64 } 65 } 66 } 67 }, 68 "containerSecurityContext": { 69 "type": "object", 70 "title": "MySQL primary container security context", 71 "properties": { 72 "enabled": { 73 "type": "boolean", 74 "default": false 75 }, 76 "runAsUser": { 77 "type": "integer", 78 "default": 1001, 79 "hidden": { 80 "value": false, 81 "path": "primary/containerSecurityContext/enabled" 82 } 83 } 84 } 85 }, 86 "persistence": { 87 "type": "object", 88 "title": "Enable persistence using Persistent Volume Claims", 89 "properties": { 90 "enabled": { 91 "type": "boolean", 92 "default": true, 93 "title": "If true, use a Persistent Volume Claim, If false, use emptyDir" 94 }, 95 "size": { 96 "type": "string", 97 "title": "Persistent Volume Size", 98 "form": true, 99 "render": "slider", 100 "sliderMin": 1, 101 "sliderUnit": "Gi", 102 "hidden": { 103 "value": false, 104 "path": "primary/persistence/enabled" 105 } 106 } 107 } 108 } 109 } 110 }, 111 "secondary": { 112 "type": "object", 113 "title": "Secondary database configuration", 114 "form": true, 115 "properties": { 116 "podSecurityContext": { 117 "type": "object", 118 "title": "MySQL secondary Pod security context", 119 "properties": { 120 "enabled": { 121 "type": "boolean", 122 "default": false 123 }, 124 "fsGroup": { 125 "type": "integer", 126 "default": 1001, 127 "hidden": { 128 "value": false, 129 "path": "secondary/podSecurityContext/enabled" 130 } 131 } 132 } 133 }, 134 "containerSecurityContext": { 135 "type": "object", 136 "title": "MySQL secondary container security context", 137 "properties": { 138 "enabled": { 139 "type": "boolean", 140 "default": false 141 }, 142 "runAsUser": { 143 "type": "integer", 144 "default": 1001, 145 "hidden": { 146 "value": false, 147 "path": "secondary/containerSecurityContext/enabled" 148 } 149 } 150 } 151 }, 152 "persistence": { 153 "type": "object", 154 "title": "Enable persistence using Persistent Volume Claims", 155 "properties": { 156 "enabled": { 157 "type": "boolean", 158 "default": true, 159 "title": "If true, use a Persistent Volume Claim, If false, use emptyDir" 160 }, 161 "size": { 162 "type": "string", 163 "title": "Persistent Volume Size", 164 "form": true, 165 "render": "slider", 166 "sliderMin": 1, 167 "sliderUnit": "Gi", 168 "hidden": { 169 "value": false, 170 "path": "secondary/persistence/enabled" 171 } 172 } 173 } 174 } 175 } 176 } 177 } 178 }