Add configurable hades.baseUrl for dynamic service discovery

- Add hades.baseUrl parameter in values.yaml
- Update configmap.yaml to use templated hades URLs
- Update catalog-info.yaml with correct chart-path and dependency annotations

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Vaibhav Pathak 2026-01-05 15:12:29 +05:30
parent 36648be466
commit ea0c8cdfdd
3 changed files with 29 additions and 5 deletions

View File

@ -15,10 +15,12 @@ metadata:
backstage.io/kubernetes-id: propertysettings-v2-service backstage.io/kubernetes-id: propertysettings-v2-service
# Helm chart annotations for environment provisioning # Helm chart annotations for environment provisioning
helm.cnoe.io/git-repo: https://gitea.cnoe.localtest.me:8443/giteaAdmin/propertysettings-v2-chart.git helm.cnoe.io/git-repo: https://gitea.cnoe.localtest.me:8443/giteaAdmin/propertysettings-v2-chart.git
helm.cnoe.io/chart-path: propertySettings-V2 helm.cnoe.io/chart-path: property-settings-svc-v2-chart
helm.cnoe.io/values-file: values-dev.yaml helm.cnoe.io/values-file: values-dev.yaml
helm.cnoe.io/available-values-files: '["values.yaml", "values-dev.yaml", "values-local.yaml"]' helm.cnoe.io/available-values-files: '["values.yaml", "values-dev.yaml", "values-local.yaml"]'
helm.cnoe.io/dependencies: '{}' helm.cnoe.io/dependencies: '{}'
# Dependency URL mapping for environment provisioning
helm.cnoe.io/dependency-urls: '{"hades-service": {"helmParam": "hades.baseUrl", "port": 8080, "serviceDns": "hades"}}'
tags: tags:
- configuration - configuration
- settings - settings
@ -35,7 +37,8 @@ spec:
type: service type: service
lifecycle: experimental lifecycle: experimental
owner: user1 owner: user1
dependsOn: [] dependsOn:
- component:default/hades-service
providesApis: providesApis:
- propertysettings-v2-api - propertysettings-v2-api
consumesApis: [] consumesApis: []

View File

@ -45,7 +45,7 @@ data:
{{- if .Values.traefik.enabled }} {{- if .Values.traefik.enabled }}
"url": "{{ .Values.traefik.hadesUrl }}/hadesV2/context", "url": "{{ .Values.traefik.hadesUrl }}/hadesV2/context",
{{- else }} {{- else }}
"url": "http://hades.hades.svc.cluster.local:8080/hadesV2/context", "url": "{{ .Values.hades.baseUrl }}/hadesV2/context",
{{- end }} {{- end }}
"type": "get", "type": "get",
"response": "com.sokrati.hadesObjects.ContextResponse" "response": "com.sokrati.hadesObjects.ContextResponse"
@ -76,13 +76,30 @@ data:
{{- if .Values.traefik.enabled }} {{- if .Values.traefik.enabled }}
"url": "{{ .Values.traefik.hadesUrl }}/hadesV2/context", "url": "{{ .Values.traefik.hadesUrl }}/hadesV2/context",
{{- else }} {{- else }}
"url": "http://hades.hades.svc.cluster.local:8080/hadesV2/context", "url": "{{ .Values.hades.baseUrl }}/hadesV2/context",
{{- end }} {{- end }}
"type": "get", "type": "get",
"response": "com.sokrati.hadesObjects.ContextResponse" "response": "com.sokrati.hadesObjects.ContextResponse"
} }
} }
authConfig.cfg: | authConfig.cfg: |
{{ .Values.config.auth | indent 4 }} {
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: | statsLogging.cfg: |
{{ .Values.config.statsLogging | indent 4 }} {{ .Values.config.statsLogging | indent 4 }}

View File

@ -2,6 +2,10 @@
# This is a YAML-formatted file. # This is a YAML-formatted file.
# Declare variables to be passed into your templates. # Declare variables to be passed into your templates.
# External service dependencies - URLs can be overridden via Helm parameters
hades:
baseUrl: "http://hades.hades.svc.cluster.local:8080"
# This will set the replicaset count more information can be found here: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/ # This will set the replicaset count more information can be found here: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/
replicaCount: 1 replicaCount: 1