Skip to content

Commit

Permalink
fix: usage for openmetadata-ops.sh script for db-migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
akash-jain-10 committed Mar 13, 2024
1 parent 5dea20a commit 7d78bd7
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 11 deletions.
4 changes: 2 additions & 2 deletions charts/openmetadata/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,8 @@ helm install openmetadata open-metadata/openmetadata --values <<path-to-values-f
| openmetadata.config.smtpConfig.supportUrl | string | `https://slack.open-metadata.org` | OM_SUPPORT_URL |
| openmetadata.config.smtpConfig.transportationStrategy | string | `SMTP_TLS` | SMTP_SERVER_STRATEGY |
| openmetadata.config.smtpConfig.username | string | `Empty String` | SMTP_SERVER_USERNAME |
| openmetadata.config.upgradeMigrationConfigs.force | bool | `false` | |
| openmetadata.config.upgradeMigrationConfigs.migrationLimitParam | int | `1200` | MIGRATION_LIMIT_PARAM |
| openmetadata.config.upgradeMigrationConfigs.debug | bool | `false` | |
| openmetadata.config.upgradeMigrationConfigs.additionalArgs | string | `Empty String` | |
| openmetadata.config.web.enabled | bool | `true` | |
| openmetadata.config.web.contentTypeOptions.enabled | bool | `false` | WEB_CONF_CONTENT_TYPE_OPTIONS_ENABLED |
| openmetadata.config.web.csp.enabled | bool | `false` | WEB_CONF_XSS_CSP_ENABLED |
Expand Down
1 change: 0 additions & 1 deletion charts/openmetadata/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ command:
{{- else }}
- "/opt/openmetadata/bootstrap/openmetadata-ops.sh migrate {{ .Values.openmetadata.config.upgradeMigrationConfigs.additionalArgs }}"
{{- end }}
{{- end }}

{{/*
Warning to update openmetadata global keyword to openmetadata.config */}}
Expand Down
2 changes: 0 additions & 2 deletions charts/openmetadata/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,6 @@ spec:
{{- toYaml . | nindent 10 }}
{{- end }}
env:
- name: MIGRATION_LIMIT_PARAM
value: "{{ .Values.openmetadata.config.upgradeMigrationConfigs.migrationLimitParam }}"
{{- include "OpenMetadata.configs" . | nindent 8 }}
{{- with .Values.extraEnvs }}
{{- toYaml . | nindent 8 }}
Expand Down
8 changes: 4 additions & 4 deletions charts/openmetadata/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,11 @@
"type": "object",
"additionalProperties": false,
"properties": {
"force": {
"type": "boolean"
"additionalArgs": {
"type": "string"
},
"migrationLimitParam": {
"type": "integer"
"debug": {
"type": "boolean"
}
}
},
Expand Down
6 changes: 4 additions & 2 deletions charts/openmetadata/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ replicaCount: 1
openmetadata:
config:
upgradeMigrationConfigs:
force: false
migrationLimitParam: 1200
debug: false
# You can pass the additional argument flags to the openmetadata-ops.sh migrate command
# Example if you want to force migration runs, use additionalArgs: "--force"
additionalArgs: ""
# Values can be OFF, ERROR, WARN, INFO, DEBUG, TRACE, or ALL
logLevel: INFO
clusterName: openmetadata
Expand Down

0 comments on commit 7d78bd7

Please sign in to comment.