diff --git a/ci/release.sh b/ci/release.sh index 3c84704..fd489df 100755 --- a/ci/release.sh +++ b/ci/release.sh @@ -3,16 +3,16 @@ CLUSTER_SERVICES_FILE="./helm_values/cluster-services.yaml" PROMETHEUS_FILE="./helm_values/prometheus.yaml" -sed -i 's/\$\{cloudflareApiEmail\}/${CLOUDFLARE_API_EMAIL}/g' ${CLUSTER_SERVICES_FILE} -sed -i 's/\$\{cloudflareApiToken\}/${CLOUDFLARE_API_TOKEN}/g' ${CLUSTER_SERVICES_FILE} -sed -i 's/\$\{grafanaDatasourceCortexPassword\}/${GRAFANA_CORTEXT_PASSWORD}/g' ${CLUSTER_SERVICES_FILE} -sed -i 's/\$\{grafanaDatasourceLokiPassword\}/${GRAFANA_LOKI_PASSWORD}/g' ${CLUSTER_SERVICES_FILE} -sed -i 's/\$\{grafanaAdminPassword\}/${GRAFANA_ADMIN_PASSWORD}/g' ${CLUSTER_SERVICES_FILE} -sed -i 's/\$\{grafanaNotifierCatalystCommunityAlerts\}/${CATALYST_COMMUNITY_ALERTS_URL}/g' ${CLUSTER_SERVICES_FILE} -sed -i 's/\$\{linkerdIssuerKeyPEM\}/${LINKERD_ISSUER_KEY_PEM}/g' ${CLUSTER_SERVICES_FILE} -sed -i 's/\$\{promtailBasicAuthPassword\}/${PROMTAIL_PASS}/g' ${CLUSTER_SERVICES_FILE} +sed -i 's/{{cloudflareApiEmail}}/${CLOUDFLARE_API_EMAIL}/g' ${CLUSTER_SERVICES_FILE} +sed -i 's/{{cloudflareApiToken}}/${CLOUDFLARE_API_TOKEN}/g' ${CLUSTER_SERVICES_FILE} +sed -i 's/{{grafanaDatasourceCortexPassword}}/${GRAFANA_CORTEXT_PASSWORD}/g' ${CLUSTER_SERVICES_FILE} +sed -i 's/{{grafanaDatasourceLokiPassword}}/${GRAFANA_LOKI_PASSWORD}/g' ${CLUSTER_SERVICES_FILE} +sed -i 's/{{grafanaAdminPassword}}/${GRAFANA_ADMIN_PASSWORD}/g' ${CLUSTER_SERVICES_FILE} +sed -i 's/{{grafanaNotifierCatalystCommunityAlerts}}/${CATALYST_COMMUNITY_ALERTS_URL}/g' ${CLUSTER_SERVICES_FILE} +sed -i 's/{{linkerdIssuerKeyPEM}}/${LINKERD_ISSUER_KEY_PEM}/g' ${CLUSTER_SERVICES_FILE} +sed -i 's/{{promtailBasicAuthPassword}}/${PROMTAIL_PASS}/g' ${CLUSTER_SERVICES_FILE} -sed -i 's/\$\{clusterName\}/${CLUSTER_NAME}/g' ${PROMETHEUS_FILE} +sed -i 's/{{clusterName}}/${CLUSTER_NAME}/g' ${PROMETHEUS_FILE} touch runnerenv.sh echo "REACTORCIDE_JOB_REPO_URL=${REACTORCIDE_JOB_REPO_URL}" >> runnerenv.sh diff --git a/helm_values/cluster-services.yaml b/helm_values/cluster-services.yaml index 0ae8095..b291cdc 100644 --- a/helm_values/cluster-services.yaml +++ b/helm_values/cluster-services.yaml @@ -8,7 +8,7 @@ certManager: solvers: - dns01: cloudflare: - email: ${cloudflareApiEmail} + email: {{cloudflareApiEmail}} apiTokenSecretRef: name: cloudflare-api-token-secret key: api-token @@ -272,8 +272,8 @@ externalDns: provider: cloudflare cloudflare: proxied: true - email: ${cloudflareApiEmail} - apiToken: "${cloudflareApiToken}" + email: {{cloudflareApiEmail}} + apiToken: "{{cloudflareApiToken}}" sources: - ingress grafana: @@ -281,9 +281,9 @@ grafana: targetRevision: "~8.8.1" datasourceAuth: cortex: - password: "${grafanaDatasourceCortexPassword}" + password: "{{grafanaDatasourceCortexPassword}}" loki: - password: "${grafanaDatasourceLokiPassword}" + password: "{{grafanaDatasourceLokiPassword}}" extraDatasources: - name: ht0-k8s Prometheus type: prometheus @@ -292,7 +292,7 @@ grafana: access: proxy isDefault: false values: - adminPassword: "${grafanaAdminPassword}" + adminPassword: "{{grafanaAdminPassword}}" serviceAccount: create: true name: grafana @@ -309,7 +309,7 @@ grafana: - uid: catalyst-squad-slack type: slack settings: - url: "${grafanaNotifierCatalystCommunityAlerts}" + url: "{{grafanaNotifierCatalystCommunityAlerts}}" title: | {{`{{ template "custom_slack_title" . }}`}} text: | @@ -385,7 +385,7 @@ linkerd: Ak8CIQC+JIcDwnBO2YcMoO2NYXU5GjHmXWb7WpOgn8hHqliZqw== -----END CERTIFICATE----- keyPEM: | - ${linkerdIssuerKeyPEM} + {{linkerdIssuerKeyPEM}} loki: enabled: true targetRevision: "~0.80.0" @@ -523,7 +523,7 @@ promtail: cluster: ht0-k8s basic_auth: username: ht0-k8s - password: "${promtailBasicAuthPassword}" + password: "{{promtailBasicAuthPassword}}" sentry: enabled: false storageClasses: diff --git a/helm_values/prometheus.yaml b/helm_values/prometheus.yaml index d9014e8..8b1cb9f 100644 --- a/helm_values/prometheus.yaml +++ b/helm_values/prometheus.yaml @@ -33,7 +33,7 @@ prometheus: # allow service monitors to be selected from all namespaces and labels serviceMonitorSelectorNilUsesHelmValues: false externalLabels: - cluster: ${clusterName} + cluster: {{clusterName}} remoteWrite: - url: http://cortex-nginx.cortex.svc.cluster.local/api/v1/push basicAuth: