Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

[Camel K] Allow to use resources such as Atlasmap mapping files when volumes are disallowed (Knative Serving 0.3) #4838

Closed
nicolaferraro opened this issue Mar 11, 2019 · 6 comments
Labels
group/camel-k notif/triage The issue needs triage. Applied automatically to all new issues.

Comments

@nicolaferraro
Copy link
Contributor

nicolaferraro commented Mar 11, 2019

See #4834

@pure-bot pure-bot bot added the notif/triage The issue needs triage. Applied automatically to all new issues. label Mar 11, 2019
@lburgazzoli
Copy link
Collaborator

Can you provide the content of the camel-k integration cr ?

@nicolaferraro
Copy link
Contributor Author

apiVersion: camel.apache.org/v1alpha1
kind: Integration
metadata:
  annotations:
    syndesis.io/deploy-id: i-L_jHVm1FgQS09i-dDlKz:1
    syndesis.io/deployment-version: "1"
    syndesis.io/integration-id: i-L_jHVm1FgQS09i-dDlKz
    syndesis.io/integration-name: Text to Word
  creationTimestamp: 2019-03-12T00:25:18Z
  generation: 2
  labels:
    syndesis.io/app: syndesis
    syndesis.io/component: integration
    syndesis.io/deployment-version: "1"
    syndesis.io/integration: Text-to-Word
    syndesis.io/integration-id: i-L_jHVm1FgQS09i-dDlKz
    syndesis.io/type: integration
    syndesis.io/username: developer
  name: i-l-jhvm1fgqs09i-ddlkz
  namespace: myproject
  resourceVersion: "3552646"
  selfLink: /apis/camel.apache.org/v1alpha1/namespaces/myproject/integrations/i-l-jhvm1fgqs09i-ddlkz
  uid: 50b5d361-445d-11e9-b395-5254004d6350
spec:
  configuration:
  - type: property
    value: camel.k.customizer=metadata,logging
  - type: secret
    value: i-l-jhvm1fgqs09i-ddlkz
  context: null
  dependencies:
  - mvn:io.syndesis.connector:connector-knative:jar:1.6-SNAPSHOT
  - mvn:org.apache.camel.k:camel-knative:jar:0.3.2-SNAPSHOT
  - mvn:io.syndesis.integration:integration-runtime-camelk:1.6-SNAPSHOT
  profile: null
  replicas: null
  repositories: []
  resources:
  - compression: false
    content: '{"AtlasMapping":{"jsonType":"io.atlasmap.v2.AtlasMapping","dataSource":[{"jsonType":"io.atlasmap.json.v2.JsonDataSource","id":"-L_jHBv2PnOnSk66dyIJ","uri":"atlas:json:-L_jHBv2PnOnSk66dyIJ","dataSourceType":"SOURCE"},{"jsonType":"io.atlasmap.json.v2.JsonDataSource","id":"-L_jHIsOPnOnSk66dyIJ","uri":"atlas:json:-L_jHIsOPnOnSk66dyIJ","dataSourceType":"TARGET","template":null}],"mappings":{"mapping":[{"jsonType":"io.atlasmap.v2.Mapping","mappingType":"SEPARATE","id":"mapping.366609","inputField":[{"jsonType":"io.atlasmap.json.v2.JsonField","name":"text","path":"/text","fieldType":"STRING","docId":"-L_jHBv2PnOnSk66dyIJ","userCreated":false}],"outputField":[{"jsonType":"io.atlasmap.json.v2.JsonField","name":"word","path":"/word","fieldType":"STRING","docId":"-L_jHIsOPnOnSk66dyIJ","userCreated":false,"index":0}],"delimiter":"Space"}]},"name":"UI.456912","lookupTables":{"lookupTable":[]},"constants":{"constant":[]},"properties":{"property":[]}}}'
    contentRef: null
    name: mapping-flow-0-step-1-json
    type: data
  serviceAccountName: null
  sources:
  - compression: false
    content: |-
      {
        "id" : "i-L_jHVm1FgQS09i-dDlKz",
        "version" : 1,
        "createdAt" : 1552350317698,
        "updatedAt" : 0,
        "tags" : [ "knative" ],
        "name" : "Text to Word",
        "flows" : [ {
          "id" : "-L_jHBf7PnOnSk66dyIJ",
          "steps" : [ {
            "id" : "-L_jHBv2PnOnSk66dyIJ",
            "configuredProperties" : {
              "name" : "messages"
            },
            "metadata" : {
              "configured" : "true"
            },
            "action" : {
              "id" : "io.syndesis:knative-channel-receive-connector",
              "name" : "Subscribe to Channel",
              "description" : "Receive events from Knative channel",
              "descriptor" : {
                "inputDataShape" : {
                  "kind" : "none"
                },
                "outputDataShape" : {
                  "name" : "Custom",
                  "description" : "A user specified data type",
                  "kind" : "json-instance",
                  "specification" : "{\"text\": \"data\"}",
                  "metadata" : {
                    "userDefined" : "true"
                  }
                },
                "propertyDefinitionSteps" : [ {
                  "name" : "Receive from Knative channel",
                  "properties" : {
                    "name" : {
                      "tags" : [ "knative-source-channel" ],
                      "deprecated" : false,
                      "displayName" : "Channel name",
                      "javaType" : "java.lang.String",
                      "labelHint" : "Name of the Knative channel to which the integration will be subscribed",
                      "required" : true,
                      "secret" : false,
                      "type" : "string"
                    }
                  },
                  "description" : "Receive from Knative channel"
                } ],
                "configuredProperties" : {
                  "type" : "channel"
                },
                "connectorFactory" : "io.syndesis.connector.knative.KnativeComponentProxyFactory"
              },
              "tags" : [ "http-passive" ],
              "actionType" : "connector",
              "pattern" : "From"
            },
            "connection" : {
              "uses" : 0,
              "id" : "knative",
              "name" : "Knative",
              "metadata" : {
                "hide-from-connection-pages" : "true"
              },
              "connector" : {
                "id" : "knative",
                "version" : 17,
                "name" : "Knative",
                "dependencies" : [ {
                  "type" : "MAVEN",
                  "id" : "io.syndesis.connector:connector-knative:1.6-SNAPSHOT"
                }, {
                  "type" : "MAVEN",
                  "id" : "org.apache.camel.k:camel-knative:0.3.2-SNAPSHOT"
                } ],
                "metadata" : {
                  "hide-from-connection-pages" : "true"
                },
                "description" : "Send and receive events from Knative channels",
                "componentScheme" : "knative"
              },
              "connectorId" : "knative",
              "description" : "Send and receive events from Knative channels",
              "isDerived" : false
            },
            "stepKind" : "endpoint"
          }, {
            "id" : "-L_jHVo3PnOnSk66dyIJ",
            "configuredProperties" : {
              "atlasmapping" : "{\"AtlasMapping\":{\"jsonType\":\"io.atlasmap.v2.AtlasMapping\",\"dataSource\":[{\"jsonType\":\"io.atlasmap.json.v2.JsonDataSource\",\"id\":\"-L_jHBv2PnOnSk66dyIJ\",\"uri\":\"atlas:json:-L_jHBv2PnOnSk66dyIJ\",\"dataSourceType\":\"SOURCE\"},{\"jsonType\":\"io.atlasmap.json.v2.JsonDataSource\",\"id\":\"-L_jHIsOPnOnSk66dyIJ\",\"uri\":\"atlas:json:-L_jHIsOPnOnSk66dyIJ\",\"dataSourceType\":\"TARGET\",\"template\":null}],\"mappings\":{\"mapping\":[{\"jsonType\":\"io.atlasmap.v2.Mapping\",\"mappingType\":\"SEPARATE\",\"id\":\"mapping.366609\",\"inputField\":[{\"jsonType\":\"io.atlasmap.json.v2.JsonField\",\"name\":\"text\",\"path\":\"/text\",\"fieldType\":\"STRING\",\"docId\":\"-L_jHBv2PnOnSk66dyIJ\",\"userCreated\":false}],\"outputField\":[{\"jsonType\":\"io.atlasmap.json.v2.JsonField\",\"name\":\"word\",\"path\":\"/word\",\"fieldType\":\"STRING\",\"docId\":\"-L_jHIsOPnOnSk66dyIJ\",\"userCreated\":false,\"index\":0}],\"delimiter\":\"Space\"}]},\"name\":\"UI.456912\",\"lookupTables\":{\"lookupTable\":[]},\"constants\":{\"constant\":[]},\"properties\":{\"property\":[]}}}"
            },
            "metadata" : {
              "configured" : "true"
            },
            "action" : {
              "descriptor" : {
                "inputDataShape" : {
                  "name" : "All preceding outputs",
                  "kind" : "any"
                },
                "outputDataShape" : {
                  "name" : "Data Mapper (Custom)",
                  "description" : "A user specified data type",
                  "kind" : "json-instance",
                  "specification" : "{\"word\": \"example\"}"
                }
              },
              "actionType" : "step"
            },
            "stepKind" : "mapper",
            "name" : "Data Mapper"
          }, {
            "id" : "-L_jHIsOPnOnSk66dyIJ",
            "configuredProperties" : {
              "name" : "words"
            },
            "metadata" : {
              "configured" : "true"
            },
            "action" : {
              "id" : "io.syndesis:knative-channel-send-connector",
              "name" : "Send to Channel",
              "description" : "Send events to Knative channel",
              "descriptor" : {
                "inputDataShape" : {
                  "name" : "Custom",
                  "description" : "A user specified data type",
                  "kind" : "json-instance",
                  "specification" : "{\"word\": \"example\"}",
                  "metadata" : {
                    "userDefined" : "true"
                  }
                },
                "outputDataShape" : {
                  "kind" : "none"
                },
                "propertyDefinitionSteps" : [ {
                  "name" : "Send to Knative channel",
                  "properties" : {
                    "name" : {
                      "tags" : [ "knative-sink-channel" ],
                      "deprecated" : false,
                      "displayName" : "Channel name",
                      "javaType" : "java.lang.String",
                      "labelHint" : "Name of the Knative channel that will receive the events",
                      "required" : true,
                      "secret" : false,
                      "type" : "string"
                    }
                  },
                  "description" : "Send to Knative channel"
                } ],
                "configuredProperties" : {
                  "type" : "channel"
                },
                "connectorFactory" : "io.syndesis.connector.knative.KnativeComponentProxyFactory"
              },
              "actionType" : "connector",
              "pattern" : "To"
            },
            "connection" : {
              "uses" : 0,
              "id" : "knative",
              "name" : "Knative",
              "metadata" : {
                "hide-from-connection-pages" : "true"
              },
              "connector" : {
                "id" : "knative",
                "version" : 17,
                "name" : "Knative",
                "dependencies" : [ {
                  "type" : "MAVEN",
                  "id" : "io.syndesis.connector:connector-knative:1.6-SNAPSHOT"
                }, {
                  "type" : "MAVEN",
                  "id" : "org.apache.camel.k:camel-knative:0.3.2-SNAPSHOT"
                } ],
                "metadata" : {
                  "hide-from-connection-pages" : "true"
                },
                "description" : "Send and receive events from Knative channels",
                "componentScheme" : "knative"
              },
              "connectorId" : "knative",
              "description" : "Send and receive events from Knative channels",
              "isDerived" : false
            },
            "stepKind" : "endpoint"
          } ]
        } ]
      }
    contentRef: null
    language: syndesis
    name: i-l-jhvm1fgqs09i-ddlkz
  traits:
    camel:
      configuration:
        runtime-version: 0.3.2-SNAPSHOT
        version: 2.23.1
    deployer:
      configuration:
        kind: knative-service
    jolokia:
      configuration:
        enabled: "true"
    knative:
      configuration:
        enabled: "true"
        sinks: words
        sources: messages
    knative-service:
      configuration:
        enabled: "true"
        min-scale: "1"
    owner:
      configuration:
        target-labels: syndesis.io/component,syndesis.io/integration-id,syndesis.io/deployment-version,syndesis.io/username,syndesis.io/integration,syndesis.io/type,syndesis.io/app
status:
  camelVersion: 2.23.1
  context: ctx-bi3forkmn5dn6bcbi8o0
  dependencies:
  - camel:core
  - mvn:io.syndesis.connector:connector-knative:jar:1.6-SNAPSHOT
  - mvn:io.syndesis.integration:integration-runtime-camelk:1.6-SNAPSHOT
  - mvn:org.apache.camel.k:camel-knative:jar:0.3.2-SNAPSHOT
  - runtime:jvm
  digest: vscG7deZiR9ru8zYZEAUfqMh2gZ9YpkCouEGosavGZOs
  image: docker-registry.default.svc:5000/myproject/camel-k-ctx-bi3forkmn5dn6bcbi8o0:3550030
  phase: Running
  runtimeVersion: 0.3.2-SNAPSHOT

@nicolaferraro
Copy link
Contributor Author

ksvc:

apiVersion: serving.knative.dev/v1alpha1
kind: Service
metadata:
  annotations:
    syndesis.io/deploy-id: i-L_jHVm1FgQS09i-dDlKz:1
    syndesis.io/deployment-version: "1"
    syndesis.io/integration-id: i-L_jHVm1FgQS09i-dDlKz
    syndesis.io/integration-name: Text to Word
  creationTimestamp: 2019-03-12T00:25:49Z
  generation: 2
  labels:
    camel.apache.org/generation: "1"
    camel.apache.org/integration: i-l-jhvm1fgqs09i-ddlkz
    syndesis.io/app: syndesis
    syndesis.io/component: integration
    syndesis.io/deployment-version: "1"
    syndesis.io/integration: Text-to-Word
    syndesis.io/integration-id: i-L_jHVm1FgQS09i-dDlKz
    syndesis.io/type: integration
    syndesis.io/username: developer
  name: i-l-jhvm1fgqs09i-ddlkz
  namespace: myproject
  ownerReferences:
  - apiVersion: camel.apache.org/v1alpha1
    blockOwnerDeletion: true
    controller: true
    kind: Integration
    name: i-l-jhvm1fgqs09i-ddlkz
    uid: 50b5d361-445d-11e9-b395-5254004d6350
  resourceVersion: "3558906"
  selfLink: /apis/serving.knative.dev/v1alpha1/namespaces/myproject/services/i-l-jhvm1fgqs09i-ddlkz
  uid: 6316a1fd-445d-11e9-b395-5254004d6350
spec:
  generation: 2
  runLatest:
    configuration:
      revisionTemplate:
        metadata:
          annotations:
            alpha.image.policy.openshift.io/resolve-names: '*'
            traffic.sidecar.istio.io/includeOutboundIPRanges: 10.0.0.0/8,172.16.0.0/12,192.168.0.0/16
          creationTimestamp: null
          labels:
            camel.apache.org/generation: "1"
            camel.apache.org/integration: i-l-jhvm1fgqs09i-ddlkz
            syndesis.io/app: syndesis
            syndesis.io/component: integration
            syndesis.io/deployment-version: "1"
            syndesis.io/integration: Text-to-Word
            syndesis.io/integration-id: i-L_jHVm1FgQS09i-dDlKz
            syndesis.io/type: integration
            syndesis.io/username: developer
        spec:
          container:
            env:
            - name: JAVA_MAIN_CLASS
              value: org.apache.camel.k.jvm.Application
            - name: CAMEL_K_DIGEST
              value: vscG7deZiR9ru8zYZEAUfqMh2gZ9YpkCouEGosavGZOs
            - name: AB_JOLOKIA_OFF
              value: "true"
            - name: CAMEL_K_CONF
              value: env:CAMEL_K_PROPERTIES
            - name: CAMEL_K_PROPERTIES
              value: |
                camel.k.customizer=metadata,logging
            - name: CAMEL_K_ROUTE_000
              value: |-
                {
                  "id" : "i-L_jHVm1FgQS09i-dDlKz",
                  "version" : 1,
                  "createdAt" : 1552350317698,
                  "updatedAt" : 0,
                  "tags" : [ "knative" ],
                  "name" : "Text to Word",
                  "flows" : [ {
                    "id" : "-L_jHBf7PnOnSk66dyIJ",
                    "steps" : [ {
                      "id" : "-L_jHBv2PnOnSk66dyIJ",
                      "configuredProperties" : {
                        "name" : "messages"
                      },
                      "metadata" : {
                        "configured" : "true"
                      },
                      "action" : {
                        "id" : "io.syndesis:knative-channel-receive-connector",
                        "name" : "Subscribe to Channel",
                        "description" : "Receive events from Knative channel",
                        "descriptor" : {
                          "inputDataShape" : {
                            "kind" : "none"
                          },
                          "outputDataShape" : {
                            "name" : "Custom",
                            "description" : "A user specified data type",
                            "kind" : "json-instance",
                            "specification" : "{\"text\": \"data\"}",
                            "metadata" : {
                              "userDefined" : "true"
                            }
                          },
                          "propertyDefinitionSteps" : [ {
                            "name" : "Receive from Knative channel",
                            "properties" : {
                              "name" : {
                                "tags" : [ "knative-source-channel" ],
                                "deprecated" : false,
                                "displayName" : "Channel name",
                                "javaType" : "java.lang.String",
                                "labelHint" : "Name of the Knative channel to which the integration will be subscribed",
                                "required" : true,
                                "secret" : false,
                                "type" : "string"
                              }
                            },
                            "description" : "Receive from Knative channel"
                          } ],
                          "configuredProperties" : {
                            "type" : "channel"
                          },
                          "connectorFactory" : "io.syndesis.connector.knative.KnativeComponentProxyFactory"
                        },
                        "tags" : [ "http-passive" ],
                        "actionType" : "connector",
                        "pattern" : "From"
                      },
                      "connection" : {
                        "uses" : 0,
                        "id" : "knative",
                        "name" : "Knative",
                        "metadata" : {
                          "hide-from-connection-pages" : "true"
                        },
                        "connector" : {
                          "id" : "knative",
                          "version" : 17,
                          "name" : "Knative",
                          "dependencies" : [ {
                            "type" : "MAVEN",
                            "id" : "io.syndesis.connector:connector-knative:1.6-SNAPSHOT"
                          }, {
                            "type" : "MAVEN",
                            "id" : "org.apache.camel.k:camel-knative:0.3.2-SNAPSHOT"
                          } ],
                          "metadata" : {
                            "hide-from-connection-pages" : "true"
                          },
                          "description" : "Send and receive events from Knative channels",
                          "componentScheme" : "knative"
                        },
                        "connectorId" : "knative",
                        "description" : "Send and receive events from Knative channels",
                        "isDerived" : false
                      },
                      "stepKind" : "endpoint"
                    }, {
                      "id" : "-L_jHVo3PnOnSk66dyIJ",
                      "configuredProperties" : {
                        "atlasmapping" : "{\"AtlasMapping\":{\"jsonType\":\"io.atlasmap.v2.AtlasMapping\",\"dataSource\":[{\"jsonType\":\"io.atlasmap.json.v2.JsonDataSource\",\"id\":\"-L_jHBv2PnOnSk66dyIJ\",\"uri\":\"atlas:json:-L_jHBv2PnOnSk66dyIJ\",\"dataSourceType\":\"SOURCE\"},{\"jsonType\":\"io.atlasmap.json.v2.JsonDataSource\",\"id\":\"-L_jHIsOPnOnSk66dyIJ\",\"uri\":\"atlas:json:-L_jHIsOPnOnSk66dyIJ\",\"dataSourceType\":\"TARGET\",\"template\":null}],\"mappings\":{\"mapping\":[{\"jsonType\":\"io.atlasmap.v2.Mapping\",\"mappingType\":\"SEPARATE\",\"id\":\"mapping.366609\",\"inputField\":[{\"jsonType\":\"io.atlasmap.json.v2.JsonField\",\"name\":\"text\",\"path\":\"/text\",\"fieldType\":\"STRING\",\"docId\":\"-L_jHBv2PnOnSk66dyIJ\",\"userCreated\":false}],\"outputField\":[{\"jsonType\":\"io.atlasmap.json.v2.JsonField\",\"name\":\"word\",\"path\":\"/word\",\"fieldType\":\"STRING\",\"docId\":\"-L_jHIsOPnOnSk66dyIJ\",\"userCreated\":false,\"index\":0}],\"delimiter\":\"Space\"}]},\"name\":\"UI.456912\",\"lookupTables\":{\"lookupTable\":[]},\"constants\":{\"constant\":[]},\"properties\":{\"property\":[]}}}"
                      },
                      "metadata" : {
                        "configured" : "true"
                      },
                      "action" : {
                        "descriptor" : {
                          "inputDataShape" : {
                            "name" : "All preceding outputs",
                            "kind" : "any"
                          },
                          "outputDataShape" : {
                            "name" : "Data Mapper (Custom)",
                            "description" : "A user specified data type",
                            "kind" : "json-instance",
                            "specification" : "{\"word\": \"example\"}"
                          }
                        },
                        "actionType" : "step"
                      },
                      "stepKind" : "mapper",
                      "name" : "Data Mapper"
                    }, {
                      "id" : "-L_jHIsOPnOnSk66dyIJ",
                      "configuredProperties" : {
                        "name" : "words"
                      },
                      "metadata" : {
                        "configured" : "true"
                      },
                      "action" : {
                        "id" : "io.syndesis:knative-channel-send-connector",
                        "name" : "Send to Channel",
                        "description" : "Send events to Knative channel",
                        "descriptor" : {
                          "inputDataShape" : {
                            "name" : "Custom",
                            "description" : "A user specified data type",
                            "kind" : "json-instance",
                            "specification" : "{\"word\": \"example\"}",
                            "metadata" : {
                              "userDefined" : "true"
                            }
                          },
                          "outputDataShape" : {
                            "kind" : "none"
                          },
                          "propertyDefinitionSteps" : [ {
                            "name" : "Send to Knative channel",
                            "properties" : {
                              "name" : {
                                "tags" : [ "knative-sink-channel" ],
                                "deprecated" : false,
                                "displayName" : "Channel name",
                                "javaType" : "java.lang.String",
                                "labelHint" : "Name of the Knative channel that will receive the events",
                                "required" : true,
                                "secret" : false,
                                "type" : "string"
                              }
                            },
                            "description" : "Send to Knative channel"
                          } ],
                          "configuredProperties" : {
                            "type" : "channel"
                          },
                          "connectorFactory" : "io.syndesis.connector.knative.KnativeComponentProxyFactory"
                        },
                        "actionType" : "connector",
                        "pattern" : "To"
                      },
                      "connection" : {
                        "uses" : 0,
                        "id" : "knative",
                        "name" : "Knative",
                        "metadata" : {
                          "hide-from-connection-pages" : "true"
                        },
                        "connector" : {
                          "id" : "knative",
                          "version" : 17,
                          "name" : "Knative",
                          "dependencies" : [ {
                            "type" : "MAVEN",
                            "id" : "io.syndesis.connector:connector-knative:1.6-SNAPSHOT"
                          }, {
                            "type" : "MAVEN",
                            "id" : "org.apache.camel.k:camel-knative:0.3.2-SNAPSHOT"
                          } ],
                          "metadata" : {
                            "hide-from-connection-pages" : "true"
                          },
                          "description" : "Send and receive events from Knative channels",
                          "componentScheme" : "knative"
                        },
                        "connectorId" : "knative",
                        "description" : "Send and receive events from Knative channels",
                        "isDerived" : false
                      },
                      "stepKind" : "endpoint"
                    } ]
                  } ]
                }
            - name: CAMEL_K_ROUTES
              value: env:CAMEL_K_ROUTE_000?name=i-l-jhvm1fgqs09i-ddlkz&language=syndesis
            - name: CAMEL_K_RESOURCE_000
              value: '{"AtlasMapping":{"jsonType":"io.atlasmap.v2.AtlasMapping","dataSource":[{"jsonType":"io.atlasmap.json.v2.JsonDataSource","id":"-L_jHBv2PnOnSk66dyIJ","uri":"atlas:json:-L_jHBv2PnOnSk66dyIJ","dataSourceType":"SOURCE"},{"jsonType":"io.atlasmap.json.v2.JsonDataSource","id":"-L_jHIsOPnOnSk66dyIJ","uri":"atlas:json:-L_jHIsOPnOnSk66dyIJ","dataSourceType":"TARGET","template":null}],"mappings":{"mapping":[{"jsonType":"io.atlasmap.v2.Mapping","mappingType":"SEPARATE","id":"mapping.366609","inputField":[{"jsonType":"io.atlasmap.json.v2.JsonField","name":"text","path":"/text","fieldType":"STRING","docId":"-L_jHBv2PnOnSk66dyIJ","userCreated":false}],"outputField":[{"jsonType":"io.atlasmap.json.v2.JsonField","name":"word","path":"/word","fieldType":"STRING","docId":"-L_jHIsOPnOnSk66dyIJ","userCreated":false,"index":0}],"delimiter":"Space"}]},"name":"UI.456912","lookupTables":{"lookupTable":[]},"constants":{"constant":[]},"properties":{"property":[]}}}'
            - name: MAPPING_FLOW_0_STEP_1_JSON
              value: env:CAMEL_K_RESOURCE_000
            - name: CAMEL_KNATIVE_CONFIGURATION
              value: '{"services":[{"type":"channel","protocol":"http","name":"messages","host":"0.0.0.0","port":8080,"metadata":{"service.path":"/"}},{"type":"channel","protocol":"http","name":"words","host":"words-channel-kwk2l.myproject.svc.cluster.local","port":80,"metadata":{"service.path":"/"}},{"type":"endpoint","protocol":"http","name":"default","host":"0.0.0.0","port":8080,"metadata":{"service.path":"/"}}]}'
            - name: CAMEL_K_VERSION
              value: 0.3.1-SNAPSHOT
            - name: CAMEL_K_RUNTIME_VERSION
              value: 0.3.2-SNAPSHOT
            - name: CAMEL_VERSION
              value: 2.23.1
            - name: NAMESPACE
              valueFrom:
                fieldRef:
                  fieldPath: metadata.namespace
            - name: POD_NAME
              valueFrom:
                fieldRef:
                  fieldPath: metadata.name
            - name: JAVA_CLASSPATH
              value: /etc/camel/resources:./resources:dependencies/org.apache.camel.k.camel-k-runtime-jvm-0.3.2-SNAPSHOT.jar:dependencies/org.apache.camel.k.camel-k-runtime-core-0.3.2-SNAPSHOT.jar:dependencies/org.apache.logging.log4j.log4j-core-2.11.1.jar:dependencies/org.apache.logging.log4j.log4j-api-2.11.1.jar:dependencies/org.apache.logging.log4j.log4j-slf4j-impl-2.11.1.jar:dependencies/org.jooq.joor-java-8-0.9.10.jar:dependencies/commons-io.commons-io-2.6.jar:dependencies/org.apache.commons.commons-lang3-3.8.1.jar:dependencies/org.apache.camel.camel-core-2.23.1.jar:dependencies/org.slf4j.slf4j-api-1.7.25.jar:dependencies/com.sun.xml.bind.jaxb-core-2.3.0.jar:dependencies/com.sun.xml.bind.jaxb-impl-2.3.0.jar:dependencies/io.syndesis.connector.connector-knative-1.6-SNAPSHOT.jar:dependencies/io.syndesis.integration.integration-component-proxy-1.6-SNAPSHOT.jar:dependencies/org.apache.camel.camel-catalog-2.23.1.jar:dependencies/org.apache.camel.camel-connector-2.23.1.jar:dependencies/org.springframework.boot.spring-boot-2.1.0.RELEASE.jar:dependencies/org.springframework.spring-core-5.1.2.RELEASE.jar:dependencies/org.springframework.spring-jcl-5.1.2.RELEASE.jar:dependencies/org.springframework.spring-context-5.1.2.RELEASE.jar:dependencies/org.springframework.spring-aop-5.1.2.RELEASE.jar:dependencies/org.springframework.spring-beans-5.1.2.RELEASE.jar:dependencies/org.springframework.spring-expression-5.1.2.RELEASE.jar:dependencies/org.springframework.boot.spring-boot-autoconfigure-2.1.0.RELEASE.jar:dependencies/com.fasterxml.jackson.core.jackson-annotations-2.9.8.jar:dependencies/org.slf4j.jcl-over-slf4j-1.7.25.jar:dependencies/commons-dbcp.commons-dbcp-1.4.jar:dependencies/io.syndesis.integration.integration-runtime-camelk-1.6-SNAPSHOT.jar:dependencies/io.syndesis.common.common-util-1.6-SNAPSHOT.jar:dependencies/com.fasterxml.jackson.core.jackson-core-2.9.8.jar:dependencies/com.google.errorprone.error_prone_annotations-2.3.2.jar:dependencies/com.google.code.findbugs.jsr305-3.0.2.jar:dependencies/net.iharder.base64-2.3.8.jar:dependencies/io.syndesis.integration.integration-runtime-1.6-SNAPSHOT.jar:dependencies/io.syndesis.common.common-model-1.6-SNAPSHOT.jar:dependencies/org.immutables.value-2.7.5.jar:dependencies/io.syndesis.extension.extension-api-1.6-SNAPSHOT.jar:dependencies/org.hibernate.hibernate-validator-5.3.5.Final.jar:dependencies/javax.validation.validation-api-1.1.0.Final.jar:dependencies/org.jboss.logging.jboss-logging-3.3.0.Final.jar:dependencies/com.fasterxml.classmate-1.3.1.jar:dependencies/org.glassfish.javax.el-3.0.0.jar:dependencies/org.apache.camel.k.camel-knative-0.3.2-SNAPSHOT.jar:dependencies/org.apache.camel.k.camel-knative-http-0.3.2-SNAPSHOT.jar:dependencies/com.fasterxml.jackson.core.jackson-databind-2.9.8.jar:dependencies/com.fasterxml.jackson.datatype.jackson-datatype-jdk8-2.9.8.jar:dependencies/org.apache.commons.commons-collections4-4.3.jar:dependencies/org.apache.camel.k.camel-k-adapter-camel-2-0.3.2-SNAPSHOT.jar:dependencies/org.apache.camel.camel-netty4-http-2.23.1.jar:dependencies/org.apache.camel.camel-netty4-2.23.1.jar:dependencies/io.netty.netty-all-4.1.31.Final.jar:dependencies/commons-pool.commons-pool-1.6.jar:dependencies/org.apache.camel.camel-http-common-2.23.1.jar:dependencies/javax.servlet.javax.servlet-api-3.1.0.jar
            image: docker-registry.default.svc:5000/myproject/camel-k-ctx-bi3forkmn5dn6bcbi8o0:3550030
            name: ""
            resources: {}
          timeoutSeconds: 300
status:
  address:
    hostname: i-l-jhvm1fgqs09i-ddlkz.myproject.svc.cluster.local
  conditions:
  - lastTransitionTime: 2019-03-12T00:40:40Z
    message: 'Revision "i-l-jhvm1fgqs09i-ddlkz-00002" failed with message: "Container
      failed with: ".'
    reason: RevisionFailed
    severity: Error
    status: "False"
    type: ConfigurationsReady
  - lastTransitionTime: 2019-03-12T00:40:40Z
    message: 'Revision "i-l-jhvm1fgqs09i-ddlkz-00002" failed with message: "Container
      failed with: ".'
    reason: RevisionFailed
    severity: Error
    status: "False"
    type: Ready
  - lastTransitionTime: 2019-03-12T00:31:25Z
    severity: Error
    status: "True"
    type: RoutesReady
  domain: i-l-jhvm1fgqs09i-ddlkz.myproject.example.com
  domainInternal: i-l-jhvm1fgqs09i-ddlkz.myproject.svc.cluster.local
  latestCreatedRevisionName: i-l-jhvm1fgqs09i-ddlkz-00002
  latestReadyRevisionName: i-l-jhvm1fgqs09i-ddlkz-00002
  observedGeneration: 2
  traffic:
  - percent: 100
    revisionName: i-l-jhvm1fgqs09i-ddlkz-00002

@lburgazzoli
Copy link
Collaborator

This should be fixed by:

I've not been able to test in on syndesis because of #4840

@lburgazzoli
Copy link
Collaborator

A better solution - waiting for knative 0.4 - would be to set deployer.container-image=true if a knative connector is used by the integration

@nicolaferraro
Copy link
Contributor Author

Minimum requirement is Knative >= 0.4 (#5186)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
group/camel-k notif/triage The issue needs triage. Applied automatically to all new issues.
Projects
None yet
Development

No branches or pull requests

2 participants