Skip to content

Commit

Permalink
add support for v2 execution logging in kubernetes deployments (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeNeyer authored Feb 8, 2024
1 parent 0b7b100 commit 67f70ee
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion helm/charts/polytomic/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.0.15
version: 0.0.16

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
3 changes: 2 additions & 1 deletion helm/charts/polytomic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Polytomic helm chart for kubernetes

![Version: 0.0.15](https://img.shields.io/badge/Version-0.0.15-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.0.1](https://img.shields.io/badge/AppVersion-0.0.1-informational?style=flat-square)
![Version: 0.0.16](https://img.shields.io/badge/Version-0.0.16-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.0.1](https://img.shields.io/badge/AppVersion-0.0.1-informational?style=flat-square)

## Installing the Chart

Expand Down Expand Up @@ -110,6 +110,7 @@ helm install helm/charts/polytomic polytomic
| polytomic.hubspot_client_secret | string | `""` | |
| polytomic.intercom_client_id | string | `""` | |
| polytomic.intercom_client_secret | string | `""` | |
| polytomic.internal_execution_logs | bool | `false` | |
| polytomic.linkedinads_client_id | string | `""` | |
| polytomic.linkedinads_client_secret | string | `""` | |
| polytomic.log_level | string | `"info"` | |
Expand Down
6 changes: 4 additions & 2 deletions helm/charts/polytomic/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ POLYTOMIC_URL: {{ .Values.polytomic.auth.url | quote }}
AUTH_METHODS: {{ join "," .Values.polytomic.auth.methods | quote }}
GOOGLE_CLIENT_ID: {{ .Values.polytomic.auth.google_client_id | quote }}
GOOGLE_CLIENT_SECRET: {{ .Values.polytomic.auth.google_client_secret | quote }}
EXECUTION_LOG_BUCKET: {{ .Values.polytomic.s3.log_bucket | quote }}
EXECUTION_LOG_REGION: {{ .Values.polytomic.s3.region| quote }}
EXECUTION_LOG_BUCKET: {{ .Values.polytomic.s3.record_log_bucket | quote }}
EXECUTION_LOG_REGION: {{ if .Values.polytomic.s3.gcs }}"gcs"{{- else }}{{ .Values.polytomic.s3.region | quote }}{{- end}}
DEFAULT_OPERATIONAL_BUCKET: {{ .Values.polytomic.s3.operational_bucket }}{{- if .Values.polytomic.s3.region }}?region={{ .Values.polytomic.s3.region }}{{- end}}
RECORD_LOG_BUCKET: {{ .Values.polytomic.s3.record_log_bucket | quote }}
RECORD_LOG_REGION: {{ .Values.polytomic.s3.region | quote }}
Expand Down Expand Up @@ -215,6 +215,8 @@ ZENDESK_CLIENT_ID: {{ .Values.polytomic.zendesk_client_id | quote }}
ZENDESK_CLIENT_SECRET: {{ .Values.polytomic.zendesk_client_secret | quote }}
hubspot_scopes_v2: "true"
VERNEUIL_CONFIG: "{\"replication_spooling_dir\":\"/tmp/verneuil\",\"replication_targets\":[{\"s3\":{\"region\":\"{{ .Values.polytomic.s3.region }}\",\"chunk_bucket\":\"{{ .Values.polytomic.s3.operational_bucket }}/chunks\",\"manifest_bucket\":\"{{ .Values.polytomic.s3.operational_bucket }}/manifests\",\"create_buckets_on_demand\":false,\"domain_addressing\":false}}]}"
EXECUTION_LOGS_V2: {{ .Values.polytomic.internal_execution_logs | quote }}
INTERNAL_EXECUTION_LOGS: {{ .Values.polytomic.internal_execution_logs | quote }}

{{- if .Values.polytomic.s3.gcs }}
POLYTOMIC_USE_GCS: "true"
Expand Down
2 changes: 2 additions & 0 deletions helm/charts/polytomic/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ polytomic:
size: 20Mi
storage_class: ""

internal_execution_logs: false

# Integrations
airtable_client_secret: ""
asana_client_id: ""
Expand Down
2 changes: 2 additions & 0 deletions terraform/modules/gke-helm/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ polytomic:
jobs:
image: ${var.polytomic_image}
internal_execution_logs: true
redis:
enabled: false
Expand Down

0 comments on commit 67f70ee

Please sign in to comment.