Skip to content

Commit

Permalink
Fix cortex tests and NOTES.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
qboileau committed Feb 26, 2024
1 parent dd60619 commit 7c46957
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
10 changes: 5 additions & 5 deletions charts/console/templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,24 @@ In order to replicate the container startup scripts execute this command:
{{- end }}

{{ if .Values.ingress.enabled }}
Conduktor Platform will be accessible at : http://{{ .Values.ingress.hostname }}
Conduktor Console will be accessible at : http://{{ .Values.ingress.hostname }}
{{- else }}
Forward Platform service locally with the command (may take a few seconds to be ready):
Forward Console service locally with the command (may take a few seconds to be ready):
kubectl port-forward -n {{ .Release.Namespace }} svc/{{ template "common.names.fullname" . }} 8080:80

Conduktor Platform will be accessible at : http://127.0.0.1:8080
Conduktor Console will be accessible at : http://127.0.0.1:8080
{{- end }}

To connect use following admin account ADMIN_LOGIN and ADMIN_PASSWORD

ADMIN_LOGIN="{{ include "common.secrets.lookup" (dict "secret" (include "conduktor.platform.secretName" .) "key" "CDK_ADMIN_EMAIL" "defaultValue" .Values.config.admin.email "context" $) | b64dec }}"
ADMIN_PASSWORD="$(kubectl get secret {{ include "conduktor.platform.secretName" . }} -n {{ .Release.Namespace }} -o jsonpath="{.data.CDK_ADMIN_PASSWORD}" | base64 --decode)"

More details on Platform configuration are available at https://docs.conduktor.io/platform/
More details on Console configuration are available at https://docs.conduktor.io/platform/
If you have any issue, please contact our support by browsing to https://www.conduktor.io/contact/support/

{{ if and (empty .Values.config.license) (empty .Values.config.existingLicenseSecret) }}
You are using the free version of Conduktor Platform.
You are using the free version of Conduktor Console.
If you need more, please contact our sales team by browsing to https://www.conduktor.io/contact/sales/
{{- end }}

Expand Down
2 changes: 1 addition & 1 deletion charts/console/templates/tests/03-platform-healthy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
apiVersion: v1
kind: Pod
metadata:
name: "{{ include "common.names.fullname" . }}-test-platform"
name: "{{ include "common.names.fullname" . }}-test-console"
annotations:
"helm.sh/hook": test
"helm.sh/hook-delete-policy": hook-succeeded
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
{{- $cortexUrl := printf "http://%v:%v/ready" $serviceName $cortexPort }}
{{- $alertManagerUrl := printf "http://%v:%v/ready" $serviceName $alertManagerPort }}
{{- $prometheusUrl := printf "http://%v:%v" $serviceName $prometheusPort }}
{{- $prometheusTargetsUrl := printf "%v/api/v1/targets" $prometheusUrl }}
apiVersion: v1
kind: Pod
metadata:
name: "{{ include "common.names.fullname" . }}-test-platform-cortex"
name: "{{ include "common.names.fullname" . }}-test-cortex"
annotations:
"helm.sh/hook": test
"helm.sh/hook-delete-policy": hook-succeeded
Expand All @@ -32,10 +33,10 @@ spec:
- |
retries=0
max_retries=10
retry_interval=3
retry_interval=5
while [ $retries -lt $max_retries ]; do
if curl -s URL | jq -e '.data.activeTargets[0].health == "up" | if . then true else false end'; then
if curl -sv {{ $prometheusTargetsUrl }} | jq -e '.data.activeTargets[0].health == "up" | if . then true else false end'; then
exit 0
else
echo "Retry $((retries+1)) of $max_retries. Retrying in $retry_interval seconds..."
Expand Down

0 comments on commit 7c46957

Please sign in to comment.