forked from apache/camel-k-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
157 additions
and
185 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,16 @@ | ||
# Modeline Camel K examples | ||
|
||
Find useful examples about how to use Modeline in a Camel K integration. | ||
Find useful examples about how to use Modeline in a Camel K integration. | ||
|
||
``` | ||
kamel run --dev modeline-build-property-route.yaml | ||
kamel run --dev modeline-build-property-file-route.yaml | ||
kamel run --dev modeline-property-route.yaml | ||
kamel run --dev modeline-property-file-route.yaml | ||
kubectl create secret generic my-sec --from-literal=my-secret-key="very top secret" | ||
kamel run --dev modeline-config-secret-route.yaml | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 0 additions & 31 deletions
31
generic-examples/modeline/modeline-build-property-file-route.groovy
This file was deleted.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
generic-examples/modeline/modeline-build-property-file-route.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# camel-k: language=yaml | ||
|
||
# --------------------------------------------------------------------------- | ||
# Licensed to the Apache Software Foundation (ASF) under one or more | ||
# contributor license agreements. See the NOTICE file distributed with | ||
# this work for additional information regarding copyright ownership. | ||
# The ASF licenses this file to You under the Apache License, Version 2.0 | ||
# (the "License"); you may not use this file except in compliance with | ||
# the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# --------------------------------------------------------------------------- | ||
|
||
# camel-k: build-property=file:quarkus.properties | ||
|
||
- from: | ||
uri: "timer:build-property" | ||
steps: | ||
- setBody: | ||
simple: "The application name: {{quarkus.application.name}}" | ||
- to: "log:info" |
31 changes: 0 additions & 31 deletions
31
generic-examples/modeline/modeline-build-property-route.groovy
This file was deleted.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
generic-examples/modeline/modeline-build-property-route.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# camel-k: language=yaml | ||
|
||
# --------------------------------------------------------------------------- | ||
# Licensed to the Apache Software Foundation (ASF) under one or more | ||
# contributor license agreements. See the NOTICE file distributed with | ||
# this work for additional information regarding copyright ownership. | ||
# The ASF licenses this file to You under the Apache License, Version 2.0 | ||
# (the "License"); you may not use this file except in compliance with | ||
# the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# --------------------------------------------------------------------------- | ||
|
||
# camel-k: build-property=quarkus.application.name=my-super-application | ||
|
||
- from: | ||
uri: "timer:build-property" | ||
steps: | ||
- setBody: | ||
simple: "The application name: {{quarkus.application.name}}" | ||
- to: "log:info" |
30 changes: 0 additions & 30 deletions
30
generic-examples/modeline/modeline-config-file-route.groovy
This file was deleted.
Oops, something went wrong.
32 changes: 0 additions & 32 deletions
32
generic-examples/modeline/modeline-config-secret-route.groovy
This file was deleted.
Oops, something went wrong.
30 changes: 30 additions & 0 deletions
30
generic-examples/modeline/modeline-config-secret-route.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# camel-k: language=yaml | ||
|
||
# --------------------------------------------------------------------------- | ||
# Licensed to the Apache Software Foundation (ASF) under one or more | ||
# contributor license agreements. See the NOTICE file distributed with | ||
# this work for additional information regarding copyright ownership. | ||
# The ASF licenses this file to You under the Apache License, Version 2.0 | ||
# (the "License"); you may not use this file except in compliance with | ||
# the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# --------------------------------------------------------------------------- | ||
|
||
# camel-k: config=secret:my-sec | ||
|
||
- from: | ||
uri: "timer:secret" | ||
steps: | ||
- setBody: | ||
simple: "resource:classpath:my-secret-key" | ||
- setBody: | ||
simple: "secret content is: ${body}" | ||
- to: "log:info" | ||
|
29 changes: 0 additions & 29 deletions
29
generic-examples/modeline/modeline-property-file-route.groovy
This file was deleted.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
generic-examples/modeline/modeline-property-file-route.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# camel-k: language=yaml | ||
|
||
# --------------------------------------------------------------------------- | ||
# Licensed to the Apache Software Foundation (ASF) under one or more | ||
# contributor license agreements. See the NOTICE file distributed with | ||
# this work for additional information regarding copyright ownership. | ||
# The ASF licenses this file to You under the Apache License, Version 2.0 | ||
# (the "License"); you may not use this file except in compliance with | ||
# the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# --------------------------------------------------------------------------- | ||
|
||
# camel-k: property=file:my.properties | ||
|
||
- from: | ||
uri: "timer:property-file" | ||
steps: | ||
- setBody: | ||
simple: "property file content is: {{my.key.1}} {{my.key.2}}" | ||
- to: "log:info" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# camel-k: language=yaml | ||
|
||
# --------------------------------------------------------------------------- | ||
# Licensed to the Apache Software Foundation (ASF) under one or more | ||
# contributor license agreements. See the NOTICE file distributed with | ||
# this work for additional information regarding copyright ownership. | ||
# The ASF licenses this file to You under the Apache License, Version 2.0 | ||
# (the "License"); you may not use this file except in compliance with | ||
# the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# --------------------------------------------------------------------------- | ||
|
||
# camel-k: property=my.message=test-property | ||
|
||
- from: | ||
uri: "timer:property" | ||
steps: | ||
- setBody: | ||
simple: "property content is: {{my.message}}" | ||
- to: "log:info" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
my.key.1=hello | ||
my.key.2=world |
This file was deleted.
Oops, something went wrong.