File tree Expand file tree Collapse file tree 2 files changed +7
-11
lines changed
charts/maestro-agent/templates Expand file tree Collapse file tree 2 files changed +7
-11
lines changed Original file line number Diff line number Diff line change 5050 subscriber = pubsub_v1.SubscriberClient()
5151 publisher = pubsub_v1.PublisherClient()
5252
53- # Extract topic names from full resource paths
54- # If using full paths like "projects/my-project/topics/sourceevents"
55- # we need to extract just the topic name
56- def extract_topic_name(topic_path):
57- if topic_path.startswith('projects/'):
58- # Full resource path: projects/PROJECT_ID/topics/TOPIC_NAME
59- return topic_path.split('/')[-1]
60- return topic_path
61-
6253 subscriptions = [
6354 (
6455 f'sourceevents-{consumer_name}',
Original file line number Diff line number Diff line change @@ -218,8 +218,13 @@ helm upgrade --install maestro-server \
218218 --wait \
219219 --timeout 5m
220220
221- kubectl rollout restart deploy/maestro -n ${namespace}
222- kubectl rollout status deploy/maestro --timeout=300s -n ${namespace}
221+ if [ " $msg_broker " = " pubsub" ]; then
222+ # restart to ensure maestro server starting subscriptions after pubsub-init post-hook completes
223+ kubectl rollout restart deploy/maestro -n ${namespace}
224+ kubectl rollout status deploy/maestro --timeout=300s -n ${namespace}
225+ else
226+ kubectl wait deploy/maestro -n ${namespace} --for condition=Available=True --timeout=300s
227+ fi
223228
224229# TODO use maestro service health check to ensure the service ready
225230sleep 30 # wait 30 seconds for the service ready
You can’t perform that action at this time.
0 commit comments