Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-13604

[camel-api] kamel-config.yaml overrides traits configuration

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Critical Critical
    • 2021-M2
    • None
    • Camel-K
    • None
    • % %
    • Camel-K

      kamel-config.yaml overrides traits configuration provided in didact tutorial.

      ➜  camel-k-example-api git:(master) cat kamel-config.yaml         
      kamel:
        run:
          integration:
            api:
              # Enable probes by default on the API container
              traits: '[container.probes-enabled=true]'
      
      ➜  camel-k-example-api git:(master) kamel run --name api test/MinioCustomizer.java API.java --property-file test/minio.properties --open-api openapi.yaml -d camel-openapi-java -t 3scale.enabled=true -t 3scale.description-path=/openapi.json --profile OpenShift
      integration "api" updated
      ➜  camel-k-example-api git:(master) oc get service api -o yaml | grep 3scale
      
      ➜  camel-k-example-api git:(master) rm kamel-config.yaml 
      
      ➜  camel-k-example-api git:(master) ✗ kamel run --name api test/MinioCustomizer.java API.java --property-file test/minio.properties --open-api openapi.yaml -d camel-openapi-java -t 3scale.enabled=true -t 3scale.description-path=/openapi.json --profile OpenShift
      integration "api" updated
      
      ➜  camel-k-example-api git:(master) ✗ oc get service api -o yaml | grep 3scale    discovery.3scale.net/description-path: /openapi.json
          discovery.3scale.net/path: /
          discovery.3scale.net/port: "80"
          discovery.3scale.net/scheme: http
          discovery.3scale.net: "true"
      

              nicolaferraro Nicola Ferraro (Inactive)
              jbouska@redhat.com Jan Bouska
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: