Skip to content

Commit

Permalink
add default and better conventions and indents
Browse files Browse the repository at this point in the history
Signed-off-by: Zach Hill <[email protected]>
  • Loading branch information
zhill committed May 10, 2024
1 parent af4d32a commit e01d155
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions stable/enterprise/files/default_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,19 @@ credentials:
host: "${ANCHORE_DB_HOST}"
port: "${ANCHORE_DB_PORT}"
name: "${ANCHORE_DB_NAME}"
{{- if .Values.anchoreConfig.database.dbConnectArgs }}
{{- if .Values.anchoreConfig.database.dbConnectArgs }}
{{- with .Values.anchoreConfig.database.dbConnectArgs }}
db_connect_args: {{- toYaml . | nindent 6 }}
{{- end }}
{{ else }}
{{- else }}
db_connect_args:
timeout: ${ANCHORE_DB_TIMEOUT}
ssl: ${ANCHORE_DB_SSL}
{{- if .Values.anchoreConfig.database.ssl }}
sslmode: ${ANCHORE_DB_SSL_MODE}
sslrootcert: ${ANCHORE_DB_SSL_ROOT_CERT}
{{- end }}
{{- end }}
{{- end }}
db_pool_size: ${ANCHORE_DB_POOL_SIZE}
db_pool_max_overflow: ${ANCHORE_DB_POOL_MAX_OVERFLOW}
{{- with .Values.anchoreConfig.database.engineArgs }}
Expand Down
1 change: 1 addition & 0 deletions stable/enterprise/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ anchoreConfig:
db_pool_size: 30
db_pool_max_overflow: 100
engineArgs: {}
dbConnectArgs: {}

## @param anchoreConfig.internalServicesSSL.enabled Force all Enterprise services to use SSL for internal communication
## @param anchoreConfig.internalServicesSSL.verifyCerts Enable cert verification against the local cert bundle, if this set to false self-signed certs are allowed
Expand Down

0 comments on commit e01d155

Please sign in to comment.