Skip to content

Commit

Permalink
chore: Adjust Camel K Kamelet examples
Browse files Browse the repository at this point in the history
  • Loading branch information
christophd committed Jun 13, 2024
1 parent 0bb71ed commit 8289647
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 13 deletions.
2 changes: 1 addition & 1 deletion examples/kamelets/hello-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# limitations under the License.
# ---------------------------------------------------------------------------

apiVersion: camel.apache.org/v1alpha1
apiVersion: camel.apache.org/v1
kind: Kamelet
metadata:
name: hello-source
Expand Down
2 changes: 1 addition & 1 deletion examples/kamelets/hello-to-log-binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ spec:
source:
ref:
kind: Kamelet
apiVersion: camel.apache.org/v1alpha1
apiVersion: camel.apache.org/v1
name: hello-source
sink:
uri: log:info
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Feature: Kamelet resource
Feature: Kamelet pipe

Background:
Given Disable auto removal of Kamelet resources
Expand All @@ -14,11 +14,11 @@ Feature: Kamelet resource

# Create the binding
Given create Kubernetes service greeting-service with target port 8080
And KameletBinding source properties
And Pipe source properties
| message | Hello World |
And bind Kamelet hello-source to uri http://greeting-service.${YAKS_NAMESPACE}/greeting
When create KameletBinding hello-source-uri
Then KameletBinding hello-source-uri should be available
When create Pipe hello-source-uri
Then Pipe hello-source-uri should be available

# Verify binding
Given HTTP server "greeting-service"
Expand All @@ -27,11 +27,11 @@ Feature: Kamelet resource
And receive POST /greeting

Scenario: Create binding from YAML
Given load KameletBinding hello-to-log-binding.yaml
Then KameletBinding hello-to-log-binding should be available
Given load Pipe hello-to-log-binding.yaml
Then Pipe hello-to-log-binding should be available
And Camel K integration hello-to-log-binding should print Hello world!

Scenario: Remove Camel K resources
Given delete Kamelet hello-source
Given delete KameletBinding hello-source-uri
Given delete KameletBinding hello-to-log-binding
Given delete Pipe hello-source-uri
Given delete Pipe hello-to-log-binding
3 changes: 0 additions & 3 deletions examples/kamelets/yaks-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@

config:
runtime:
env:
- name: YAKS_KAMELET_API_VERSION
value: v1alpha1
settings:
loggers:
- name: INTEGRATION_STATUS
Expand Down

0 comments on commit 8289647

Please sign in to comment.