Skip to content

Commit

Permalink
build: Add env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jachym-tousek-keboola committed Nov 27, 2024
1 parent 01c35fa commit 81d70c2
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions provisioning/stream/aws.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ aws eks update-kubeconfig --name "$AWS_EKS_CLUSTER_NAME" --region "$AWS_REGION"

# Common part of the deploy
export ETCD_STORAGE_CLASS_NAME="etcd-gp3"
export STREAM_ENCRYPTION_PROVIDER="aws"
. ./common.sh

# AWS specific part of the deploy
Expand Down
1 change: 1 addition & 0 deletions provisioning/stream/azure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ az aks get-credentials --name "$CLUSTER_NAME" --resource-group "$RESOURCE_GROUP"

# Common part of the deploy
export ETCD_STORAGE_CLASS_NAME=
export STREAM_ENCRYPTION_PROVIDER="azure"
. ./common.sh

# Azure specific part of the deploy
Expand Down
1 change: 1 addition & 0 deletions provisioning/stream/gcp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ gcloud container clusters get-credentials $GKE_CLUSTER_NAME --region $GKE_CLUSTE

# Common part of the deploy
export ETCD_STORAGE_CLASS_NAME=
export STREAM_ENCRYPTION_PROVIDER="gcp"
. ./common.sh

# GCP specific part of the deploy
Expand Down
2 changes: 2 additions & 0 deletions provisioning/stream/kubernetes/templates/api/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ spec:
fieldPath: metadata.labels['tags.datadoghq.com/version']
- name: OTEL_METRICS_EXEMPLAR_FILTER
value: always_off
- name: STREAM_ENCRYPTION_PROVIDER
value: "${STREAM_ENCRYPTION_PROVIDER}"
startupProbe:
httpGet:
path: /health-check
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ spec:
fieldPath: metadata.labels['tags.datadoghq.com/version']
- name: OTEL_METRICS_EXEMPLAR_FILTER
value: always_off
- name: STREAM_ENCRYPTION_PROVIDER
value: "${STREAM_ENCRYPTION_PROVIDER}"
startupProbe:
httpGet:
path: /health-check
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ spec:
fieldPath: metadata.labels['tags.datadoghq.com/version']
- name: OTEL_METRICS_EXEMPLAR_FILTER
value: always_off
- name: STREAM_ENCRYPTION_PROVIDER
value: "${STREAM_ENCRYPTION_PROVIDER}"
volumes:
- name: config
configMap:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ spec:
fieldPath: metadata.labels['tags.datadoghq.com/version']
- name: OTEL_METRICS_EXEMPLAR_FILTER
value: always_off
- name: STREAM_ENCRYPTION_PROVIDER
value: "${STREAM_ENCRYPTION_PROVIDER}"
- name: stream-storage-reader
image: $STREAM_IMAGE_REPOSITORY:$STREAM_IMAGE_TAG
command: [ "/app/service" ]
Expand Down Expand Up @@ -172,6 +174,8 @@ spec:
fieldPath: metadata.labels['tags.datadoghq.com/version']
- name: OTEL_METRICS_EXEMPLAR_FILTER
value: always_off
- name: STREAM_ENCRYPTION_PROVIDER
value: "${STREAM_ENCRYPTION_PROVIDER}"
volumes:
- name: config
configMap:
Expand Down
2 changes: 2 additions & 0 deletions provisioning/stream/local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ export STREAM_VOLUME_FAST_STORAGE_SIZE="100Mi"
export STREAM_VOLUME_MEDIUM_STORAGE_SIZE="100Mi"
export STREAM_VOLUME_SLOW_STORAGE_SIZE="100Mi"

export STREAM_ENCRYPTION_PROVIDER="native"


# Start minikube if needed
if ! minikube status > /dev/null; then
Expand Down

0 comments on commit 81d70c2

Please sign in to comment.