Sagar Patil 6e59dcdbe7 Fix service URLs, Hades endpoint, auth, and add osmos.ai/service-name
- Fix self-reference URL: prop-property-settings → property-settings-v2-service
- Fix Hades URL: hades.hades.svc.cluster.local → hades-service
- Fix backstage.io/kubernetes-id: property-settings-service → property-settings-v2-service
- Disable auth (auth_enable: false) for test environment
- Add osmos.ai/service-name: psDbService_rw (matches Java hardcoded app name)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-19 20:03:22 +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://property-settings-v2-service:8080/propertySettingsSvcV2/properties",
"type": "post",
"response": "com.sokrati.propertySettingsSvcObjectsV2.PostPropertiesResponse"
},
"get_all_properties":
{
"url": "http://property-settings-v2-service:8080/propertySettingsSvcV2/properties",
"type": "get",
"response": "com.sokrati.propertySettingsSvcObjectsV2.GetPropertiesResponse"
},
"get_best_properties":
{
"url": "http://property-settings-v2-service: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://property-settings-v2-service:8080/propertySettingsSvcV2/properties",
"type": "post",
"response": "com.sokrati.propertySettingsSvcObjectsV2.PostPropertiesResponse"
},
"get_all_properties":
{
"url": "http://property-settings-v2-service:8080/propertySettingsSvcV2/properties",
"type": "get",
"response": "com.sokrati.propertySettingsSvcObjectsV2.GetPropertiesResponse"
},
"get_best_properties":
{
"url": "http://property-settings-v2-service: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 : false
},
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 : false
}
}
statsLogging.cfg: |
{{ .Values.config.statsLogging | indent 4 }}