Skip to content

Commit

Permalink
Provide cluster FQDN to DH
Browse files Browse the repository at this point in the history
  • Loading branch information
Roming22 committed Mar 28, 2024
1 parent dbc46fd commit 8a612c3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions templates/developer-hub/includes/_configure.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,13 @@
echo 'Expected "developer-hub" in the values.yaml' >&2
exit 1
{{ end }}
echo -n "."
KUBERNETES_CLUSTER_FQDN="$(
kubectl get routes -n openshift-pipelines pipelines-as-code-controller -o jsonpath='{.spec.host}' | \
cut -d. -f 2-
)"
export KUBERNETES_CLUSTER_FQDN
yq --inplace '.global.clusterRouterBase = strenv(KUBERNETES_CLUSTER_FQDN)' "$HELM_VALUES"
echo "OK"

{{ include "rhtap.developer-hub.configure.plugin_kubernetes" . | indent 6 }}
Expand Down
7 changes: 7 additions & 0 deletions test/data/helm-chart/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,13 @@ spec:
filename: app-config.extra.yaml
EOF

echo -n "."
KUBERNETES_CLUSTER_FQDN="$(
kubectl get routes -n openshift-pipelines pipelines-as-code-controller -o jsonpath='{.spec.host}' | \
cut -d. -f 2-
)"
export KUBERNETES_CLUSTER_FQDN
yq --inplace '.global.clusterRouterBase = strenv(KUBERNETES_CLUSTER_FQDN)' "$HELM_VALUES"
echo "OK"


Expand Down

0 comments on commit 8a612c3

Please sign in to comment.