Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions kamelets/github-commit-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ spec:
mediaType: application/json
dependencies:
- "camel:jackson"
- "camel:github"
- "camel:github2"
- "camel:kamelet"
template:
from:
uri: "github://commit/{{branch}}"
uri: "github2://commit/{{branch}}"
parameters:
repoName: "{{repoName}}"
repoOwner: "{{repoOwner}}"
Expand Down
4 changes: 2 additions & 2 deletions kamelets/github-event-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ spec:
mediaType: application/json
dependencies:
- "camel:jackson"
- "camel:github"
- "camel:github2"
- "camel:kamelet"
template:
from:
uri: "github://event"
uri: "github2://event"
parameters:
repoName: "{{repoName}}"
repoOwner: "{{repoOwner}}"
Expand Down
4 changes: 2 additions & 2 deletions kamelets/github-pullrequest-comment-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ spec:
mediaType: application/json
dependencies:
- "camel:jackson"
- "camel:github"
- "camel:github2"
- "camel:kamelet"
template:
from:
uri: "github://pullRequestComment"
uri: "github2://pullRequestComment"
parameters:
repoName: "{{repoName}}"
repoOwner: "{{repoOwner}}"
Expand Down
4 changes: 2 additions & 2 deletions kamelets/github-pullrequest-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ spec:
mediaType: application/json
dependencies:
- "camel:jackson"
- "camel:github"
- "camel:github2"
- "camel:kamelet"
template:
from:
uri: "github://pullRequest"
uri: "github2://pullRequest"
parameters:
repoName: "{{repoName}}"
repoOwner: "{{repoOwner}}"
Expand Down
4 changes: 2 additions & 2 deletions kamelets/github-tag-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ spec:
mediaType: application/json
dependencies:
- "camel:jackson"
- "camel:github"
- "camel:github2"
- "camel:kamelet"
template:
from:
uri: "github://tag"
uri: "github2://tag"
parameters:
repoName: "{{repoName}}"
repoOwner: "{{repoOwner}}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,9 @@ public List<ComponentModel.EndpointHeaderModel> getKameletSupportedHeaders(Strin
String prefixName = local.getMetadata().getName().substring(0, lastIndex);
String schemeName = enumValue(prefixName);
if (schemeName != null) {
if (ObjectHelper.isNotEmpty(cc.componentModel(schemeName).getEndpointHeaders())) {
List<ComponentModel.EndpointHeaderModel> headers = cc.componentModel(schemeName).getEndpointHeaders();
ComponentModel componentModel = cc.componentModel(schemeName);
if (componentModel != null && ObjectHelper.isNotEmpty(componentModel.getEndpointHeaders())) {
List<ComponentModel.EndpointHeaderModel> headers = componentModel.getEndpointHeaders();
for (ComponentModel.EndpointHeaderModel e : headers) {
if (ObjectHelper.isEmpty(e.getLabel()) || e.getLabel().equalsIgnoreCase(camelType)) {
resultingHeaders.add(e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ public enum KameletPrefixSchemeEnum {
file_watch("file-watch", "file-watch"),
ftp("ftp", "ftp"),
ftps("ftps", "ftps"),
github_commit("github-commit", "github"),
github_event("github-event", "github"),
github_pr_comments("github-pullrequest-comment", "github"),
github_pr("github-pullrequest", "github"),
github_tag("github-tag", "github"),
github_commit("github-commit", "github2"),
github_event("github-event", "github2"),
github_pr_comments("github-pullrequest-comment", "github2"),
github_pr("github-pullrequest", "github2"),
github_tag("github-tag", "github2"),
google_bigquery("google-bigquery", "google-bigquery"),
google_calendar("google-calendar", "google-calendar-stream"),
google_functions("google-functions", "google-functions"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ spec:
mediaType: application/json
dependencies:
- "camel:jackson"
- "camel:github"
- "camel:github2"
- "camel:kamelet"
template:
from:
uri: "github://commit/{{branch}}"
uri: "github2://commit/{{branch}}"
parameters:
repoName: "{{repoName}}"
repoOwner: "{{repoOwner}}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ spec:
mediaType: application/json
dependencies:
- "camel:jackson"
- "camel:github"
- "camel:github2"
- "camel:kamelet"
template:
from:
uri: "github://event"
uri: "github2://event"
parameters:
repoName: "{{repoName}}"
repoOwner: "{{repoOwner}}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ spec:
mediaType: application/json
dependencies:
- "camel:jackson"
- "camel:github"
- "camel:github2"
- "camel:kamelet"
template:
from:
uri: "github://pullRequestComment"
uri: "github2://pullRequestComment"
parameters:
repoName: "{{repoName}}"
repoOwner: "{{repoOwner}}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ spec:
mediaType: application/json
dependencies:
- "camel:jackson"
- "camel:github"
- "camel:github2"
- "camel:kamelet"
template:
from:
uri: "github://pullRequest"
uri: "github2://pullRequest"
parameters:
repoName: "{{repoName}}"
repoOwner: "{{repoOwner}}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ spec:
mediaType: application/json
dependencies:
- "camel:jackson"
- "camel:github"
- "camel:github2"
- "camel:kamelet"
template:
from:
uri: "github://tag"
uri: "github2://tag"
parameters:
repoName: "{{repoName}}"
repoOwner: "{{repoOwner}}"
Expand Down
Loading