Skip to content

Commit 8921a7e

Browse files
authored
Update to Camel-K 1.5.0 (#11)
* Update to Camel-K 1.5.0. * Fix end condition * Add timer before sending a message.
1 parent 423d972 commit 8921a7e

File tree

7 files changed

+8
-6
lines changed

7 files changed

+8
-6
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
ARG base_image=rayproject/ray:1.4.1-py38
1818
FROM ${base_image}
1919

20-
COPY --from=docker.io/apache/camel-k:1.4.0 /usr/local/bin/kamel /usr/local/bin/
20+
COPY --from=docker.io/apache/camel-k:1.5.0 /usr/local/bin/kamel /usr/local/bin/
2121

2222
RUN sudo apt-get update \
2323
&& sudo apt-get install -y --no-install-recommends openjdk-11-jdk maven \

Dockerfile.release

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
ARG base_image=rayproject/ray:1.4.1-py38
1818
FROM ${base_image}
1919

20-
COPY --from=docker.io/apache/camel-k:1.4.0 /usr/local/bin/kamel /usr/local/bin/
20+
COPY --from=docker.io/apache/camel-k:1.5.0 /usr/local/bin/kamel /usr/local/bin/
2121

2222
RUN sudo apt-get update \
2323
&& sudo apt-get install -y --no-install-recommends openjdk-11-jdk maven \

examples/slack/slack_operator_mode.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@
5555
# Wait for sink to reach running state.
5656
ray.get(sink)
5757

58+
time.sleep(15)
59+
5860
# Sends message to all sinks attached to this stream.
5961
stream << f'Sending message to Slack sink in run mode {run_mode}.'
6062

rayvens/core/kamel_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def kamel_command_end_condition(subcommand_type, base_name):
7676
if subcommand_type == KamelCommand.BUILD:
7777
return ""
7878
if subcommand_type == KamelCommand.RUN:
79-
return f"integration \"{base_name}\""
79+
return f"Integration \"{base_name}\""
8080
if subcommand_type == KamelCommand.LOCAL_BUILD:
8181
return ""
8282
if subcommand_type == KamelCommand.LOCAL_RUN:

scripts/rayvens-setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ if [ -n "$kamel" ]; then
569569
echo "--- installing Kamel operator"
570570
kubectl create serviceaccount kamel -n "$namespace"
571571
kubectl create clusterrolebinding kamel --clusterrole=cluster-admin --serviceaccount="$namespace":kamel
572-
kubectl run --rm -i -t kamel --image=apache/camel-k:1.4.0 --restart=Never --serviceaccount=kamel -n "$namespace" -- \
572+
kubectl run --rm -i -t kamel --image=apache/camel-k:1.5.0 --restart=Never --serviceaccount=kamel -n "$namespace" -- \
573573
kamel install --force $(echo "$options")
574574
kubectl delete clusterrolebinding kamel
575575
kubectl delete serviceaccount kamel -n "$namespace"

scripts/start-kind.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ kubectl apply -n ray -f kafka.yaml
3737
echo "--- installing kamel operator"
3838
kubectl create serviceaccount kamel -n ray
3939
kubectl create clusterrolebinding kamel --clusterrole=cluster-admin --serviceaccount=ray:kamel
40-
kubectl run --rm -i -t kamel --image=apache/camel-k:1.4.0 --restart=Never --serviceaccount=kamel -n ray -- \
40+
kubectl run --rm -i -t kamel --image=apache/camel-k:1.5.0 --restart=Never --serviceaccount=kamel -n ray -- \
4141
kamel install --registry-insecure --namespace ray --registry registry:5000
4242
kubectl delete clusterrolebinding kamel
4343
kubectl delete serviceaccount kamel -n ray

scripts/travis.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
set -eu
1818

19-
KAMEL_VERSION=v1.4.0
19+
KAMEL_VERSION=v1.5.0
2020
KIND_VERSION=v0.10.0
2121
KUBECTL_VERSION=v1.18.8
2222

0 commit comments

Comments
 (0)