Skip to content

Commit

Permalink
k8s workflow uses its own kafka server name
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienPeloton committed Jan 31, 2025
1 parent 447f5ba commit c0af67e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/e2e-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,10 @@ jobs:
else
echo "Using pre-existing image from registry (See "Ciux project ignition" section)"
fi
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
with:
detached: true
# - name: Setup tmate session
# uses: mxschmitt/action-tmate@v3
# with:
# detached: true
- name: Run argoCD
run: |
./e2e/argocd.sh -S "${{ matrix.storage }}"
Expand Down
6 changes: 4 additions & 2 deletions bin/ztf/stream2raw.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,10 @@ def main():
alert_schema, _, alert_schema_json = get_schemas_from_avro(args.schema)

# Decode the Avro data, and keep only (timestamp, data)
if args.servers.startswith("localhost"):
# Only for test suite
if args.servers.startswith("localhost") or args.servers.startswith(
"kafka-cluster-kafka-bootstrap.kafka"
):
# Only for test suite (sentinel or k8s)
df_decoded = df.select([
from_avro(df["value"], alert_schema_json).alias("decoded")
])
Expand Down

0 comments on commit c0af67e

Please sign in to comment.