Skip to content

Commit

Permalink
fix: enable usage of tilt (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
schoren authored Oct 9, 2024
1 parent a37e425 commit 447306c
Show file tree
Hide file tree
Showing 8 changed files with 47 additions and 8 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
**/*/Chart.lock
**/*/charts/*
cluster.env
tracetest.kubeconfig
tracetest.kubeconfig
.env
*.bkp
8 changes: 4 additions & 4 deletions charts/tracetest-auth/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ data:
# COOKIE: {{ randAlphaNum 32 | b64enc }}
# CIPHER: {{ randAlphaNum 32 | b64enc }}
# SMTP_URI: {{ .Values.global.smtp.uri | b64enc }}
GOOGLE_CLIENT_ID: {{ .Values.global.sso.google.clientID | b64enc }}
GOOGLE_CLIENT_SECRET: {{ .Values.global.sso.google.clientSecret | b64enc }}
GITHUB_CLIENT_ID: {{ .Values.global.sso.github.clientID | b64enc }}
GITHUB_CLIENT_SECRET: {{ .Values.global.sso.github.clientSecret | b64enc }}
GOOGLE_CLIENT_ID: {{ .Values.global.sso.google.clientID | b64enc | quote }}
GOOGLE_CLIENT_SECRET: {{ .Values.global.sso.google.clientSecret | b64enc | quote }}
GITHUB_CLIENT_ID: {{ .Values.global.sso.github.clientID | b64enc | quote }}
GITHUB_CLIENT_SECRET: {{ .Values.global.sso.github.clientSecret | b64enc | quote }}
2 changes: 1 addition & 1 deletion charts/tracetest-cloud/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ spec:
secretKeyRef:
name: {{ include "tracetest-cloud.fullname" . }}-secrets
key: LICENSE
imagePullPolicy: Always
imagePullPolicy: {{ .Values.image.pullPolicy }}
resources:
{{- toYaml .Values.deployment.resources | nindent 12 }}
ports:
Expand Down
1 change: 1 addition & 0 deletions charts/tracetest-cloud/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ deployment:

image:
repository: kubeshop/tracetest-cloud
pullPolicy: IfNotPresent

config:
sendgridApiKey: some-value
Expand Down
4 changes: 3 additions & 1 deletion charts/tracetest-frontend/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ data:
REACT_APP_ORY_KRATOS_PUBLIC_API_URL: {{ include "tracetest-common.url" .Values.global.urls.auth | quote}}
REACT_APP_AGENT_URL: "{{ .Values.global.urls.agents.domain }}:{{ .Values.global.urls.agents.port }}"
REACT_APP_UI_URL: {{ include "tracetest-common.url" .Values.global.urls.web | quote}}
REACT_APP_DISABLE_TELEMETRY: "{{ .Values.global.urls.api }}"
REACT_APP_DISABLE_TELEMETRY: "{{ .Values.global.urls.api }}"
REACT_APP_FEATURE_FLAG_MONITORS: "true"

32 changes: 32 additions & 0 deletions charts/tracetest-onprem/requirements.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
dependencies:
- name: tracetest-frontend
version: v1.13.0
repository: file://../tracetest-frontend
condition: tracetest-frontend.enabled
- name: tracetest-core
version: v1.33.0
repository: file://../tracetest-core
condition: tracetest-core.enabled
- name: tracetest-cloud
version: v1.38.0
repository: file://../tracetest-cloud
condition: tracetest-cloud.enabled
- name: tracetest-agent-operator
version: v1.21.0
repository: file://../tracetest-agent-operator
condition: tracetest-agent-operator.enabled
- name: tracetest-monitor-operator
version: v1.14.0
repository: file://../tracetest-monitor-operator
condition: tracetest-monitor-operator.enabled
- name: tracetest-auth
version: v1.33.0
repository: file://../tracetest-auth
condition: tracetest-auth.enabled
- name: tracetest-common
version: v1.5.0
repository: file://../tracetest-common
- name: nats
version: 1.1.11
repository: https://nats-io.github.io/k8s/helm/charts/
condition: nats.enabled
2 changes: 2 additions & 0 deletions scripts/bump_charts.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash

ONPREM_CHART_FILE="charts/tracetest-onprem/Chart.yaml"
ONPREM_REQUIREMENTS_FILE="charts/tracetest-onprem/requirements.yaml"
ONPREM_CHART_NAME="tracetest-onprem"

changed_charts=$(git --no-pager diff --name-only HEAD~1 charts | grep '/' | cut -d'/' -f1-2 | uniq)
Expand Down Expand Up @@ -37,6 +38,7 @@ for chart in $changed_charts; do

echo "Update $chartName to $newChartVersion in $ONPREM_CHART_FILE"
yq eval '.dependencies[] |= (select(.name == "'"$chartName"'").version = "'"$newChartVersion"'")' "$ONPREM_CHART_FILE" -i
yq eval '.dependencies[] |= (select(.name == "'"$chartName"'").version = "'"$newChartVersion"'")' "$ONPREM_REQUIREMENTS_FILE" -i

if [[ $? -ne 0 ]]; then
echo "Error occurred while updating $chartName in $ONPREM_CHART_FILE"
Expand Down
2 changes: 1 addition & 1 deletion scripts/setup_kind_cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ if [[ "$@" == *"--help"* ]]; then
fi

PROJECT_ROOT=$(dirname "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)")
KUBECONFIG_FILE=$(pwd)/tracetest.kubeconfig
KUBECONFIG_FILE=$PROJECT_ROOT/tracetest.kubeconfig
ENV_FILE=$PROJECT_ROOT/cluster.env
HELM_EXTRA_FLAGS=()

Expand Down

0 comments on commit 447306c

Please sign in to comment.