Skip to content

Commit 857ad4a

Browse files
committed
fix(opensearch-operator): resolve in-cluster names on the platform domain
The operator reads DNS_BASE and builds every in-cluster name it needs from it: the securityconfig job target, its own OpenSearch API client URL, the Dashboards host, and the SANs it writes into node certificates. The vendored chart defaults that to cluster.local, so on a cluster whose domain is cozy.local the securityconfig job never resolves its target, the .opendistro_security index is never created, and the OpenSearch nodes never go Ready. The domain the platform already holds could not reach the operator before: _cluster stops at each package's own templates and never reaches a vendored subchart, and the wrapper's values.yaml is not templated. Carry it in the shared values Secret under the subchart key instead, the same way the KEDA cluster domain travels, so the vendored chart picks it up with no patch and a package rendered without the Secret keeps the upstream cluster.local fallback. A global key would have worked for the operator but reaches every release on the cluster, and the vendored smee chart in bootbox cannot render once global is non-empty. Scoping the value to the subchart that consumes it avoids putting every other package on that path. The diagnosis and the first working fix came from fuad00 in an earlier pull request. Assisted-by: LLM Signed-off-by: Aleksei Sviridkin <[email protected]>
1 parent afc003c commit 857ad4a

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

‎packages/core/platform/templates/apps.yaml‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,17 @@ stringData:
2222
# (a subchart value a template cannot derive from _cluster). Rationale: packages/system/keda.
2323
keda:
2424
clusterDomain: {{ .Values.networking.clusterDomain | quote }}
25+
{{- /*
26+
The operator builds every in-cluster name it needs from DNS_BASE: the
27+
securityconfig job target, its own OpenSearch API client URL, the
28+
Dashboards host, and the SANs it writes into node certificates. This is
29+
a vendored subchart value, so it travels under the subchart key; _cluster
30+
stops at each package's own templates and never reaches a subchart.
31+
A package rendered without this Secret falls back to cluster.local.
32+
*/}}
33+
opensearch-operator:
34+
manager:
35+
dnsBase: {{ .Values.networking.clusterDomain | quote }}
2536
_cluster:
2637
root-host: {{ $rootHost | quote }}
2738
bundle-name: {{ .Values.bundles.system.variant | quote }}

0 commit comments

Comments
 (0)