You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by as...@apache.org on 2019/10/02 11:20:47 UTC

[camel-k] branch master updated: chore(scale): Rebuild resources

This is an automated email from the ASF dual-hosted git repository.

astefanutti pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k.git


The following commit(s) were added to refs/heads/master by this push:
     new 6f0da19  chore(scale): Rebuild resources
6f0da19 is described below

commit 6f0da195533b1b848388493a0529d11db54855ad
Author: Antonin Stefanutti <an...@stefanutti.fr>
AuthorDate: Wed Oct 2 12:37:54 2019 +0200

    chore(scale): Rebuild resources
---
 assets/json-schema/Integration.json |  3 +++
 deploy/resources.go                 | 11 +++++++++--
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/assets/json-schema/Integration.json b/assets/json-schema/Integration.json
index c6768d0..beb8bc5 100644
--- a/assets/json-schema/Integration.json
+++ b/assets/json-schema/Integration.json
@@ -315,6 +315,9 @@
         "platform": {
           "type": "string"
         },
+        "replicas": {
+          "type": "integer"
+        },
         "runtimeVersion": {
           "type": "string"
         },
diff --git a/deploy/resources.go b/deploy/resources.go
index fb0de67..960b3ab 100644
--- a/deploy/resources.go
+++ b/deploy/resources.go
@@ -2662,6 +2662,9 @@ spec:
   version: v1alpha1
   subresources:
     status: {}
+    scale:
+      specReplicasPath: .spec.replicas
+      statusReplicasPath: .status.replicas
   names:
     kind: Integration
     listKind: IntegrationList
@@ -2672,12 +2675,16 @@ spec:
   additionalPrinterColumns:
     - name: Phase
       type: string
-      description: The Integration phase
+      description: The integration phase
       JSONPath: .status.phase
     - name: Kit
       type: string
-      description: The IntegrationKit to use
+      description: The integration kit
       JSONPath: .status.kit
+    - name: Replicas
+      type: integer
+      description: The number of pods
+      JSONPath: .status.replicas
 
 `
 	Resources["cr-example.yaml"] =