Vaibhav Pathak db7d1edb33 file changed
2026-02-05 14:53:20 +05:30

106 lines
4.0 KiB
YAML

apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "property-settings-svc-v2-chart.fullname" . }}-config
labels:
{{- include "property-settings-svc-v2-chart.labels" . | nindent 4 }}
data:
propertySettingsService.cfg: |
{
prod: {
log_config: "{{ .Values.config.propertySettingsService.prod.logConfig }}",
property_settings_db_hibernate_config: "{{ .Values.config.propertySettingsService.prod.hibernateConfig }}",
rest_accessor_config_file: "{{ .Values.config.propertySettingsService.prod.restAccessorConfig }}",
},
test: {
log_config: "{{ .Values.config.propertySettingsService.test.logConfig }}",
property_settings_db_hibernate_config: "{{ .Values.config.propertySettingsService.test.hibernateConfig }}",
rest_accessor_config_file: "{{ .Values.config.propertySettingsService.test.restAccessorConfig }}",
}
}
log.cfg: |
{{ .Values.config.log | indent 4 }}
prodRestAccessor.cfg: |
{
"post_properties":
{
"url": "http://prop-property-settings:8080/propertySettingsSvcV2/properties",
"type": "post",
"response": "com.sokrati.propertySettingsSvcObjectsV2.PostPropertiesResponse"
},
"get_all_properties":
{
"url": "http://prop-property-settings:8080/propertySettingsSvcV2/properties",
"type": "get",
"response": "com.sokrati.propertySettingsSvcObjectsV2.GetPropertiesResponse"
},
"get_best_properties":
{
"url": "http://prop-property-settings:8080/propertySettingsSvcV2/properties",
"type": "get",
"response": "com.sokrati.propertySettingsSvcObjectsV2.GetPropertiesResponse"
},
"fetch_context":
{
{{- if .Values.traefik.enabled }}
"url": "{{ .Values.traefik.hadesUrl }}/hadesV2/context",
{{- else }}
"url": "{{ .Values.hades.baseUrl }}/hadesV2/context",
{{- end }}
"type": "get",
"response": "com.sokrati.hadesObjects.ContextResponse"
}
}
testRestAccessor.cfg: |
{
"post_properties":
{
"url": "http://prop-property-settings:8080/propertySettingsSvcV2/properties",
"type": "post",
"response": "com.sokrati.propertySettingsSvcObjectsV2.PostPropertiesResponse"
},
"get_all_properties":
{
"url": "http://prop-property-settings:8080/propertySettingsSvcV2/properties",
"type": "get",
"response": "com.sokrati.propertySettingsSvcObjectsV2.GetPropertiesResponse"
},
"get_best_properties":
{
"url": "http://prop-property-settings:8080/propertySettingsSvcV2/properties",
"type": "get",
"response": "com.sokrati.propertySettingsSvcObjectsV2.GetPropertiesResponse"
},
"fetch_context":
{
{{- if .Values.traefik.enabled }}
"url": "{{ .Values.traefik.hadesUrl }}/hadesV2/context",
{{- else }}
"url": "{{ .Values.hades.baseUrl }}/hadesV2/context",
{{- end }}
"type": "get",
"response": "com.sokrati.hadesObjects.ContextResponse"
}
}
authConfig.cfg: |
{
prod: {
{{- if .Values.traefik.enabled }}
hades_auth_url : "{{ .Values.traefik.hadesUrl }}/hadesV2/authorize",
{{- else }}
hades_auth_url : "{{ .Values.hades.baseUrl }}/hadesV2/authorize",
{{- end }}
auth_enable : true
},
test: {
{{- if .Values.traefik.enabled }}
hades_auth_url : "{{ .Values.traefik.hadesUrl }}/hadesV2/authorize",
{{- else }}
hades_auth_url : "{{ .Values.hades.baseUrl }}/hadesV2/authorize",
{{- end }}
auth_enable : true
}
}
statsLogging.cfg: |
{{ .Values.config.statsLogging | indent 4 }}