You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ma...@apache.org on 2022/10/14 15:23:50 UTC

[camel-karavan] branch main updated: Add deployment type to CRD

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

marat pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-karavan.git


The following commit(s) were added to refs/heads/main by this push:
     new 4ae7252  Add deployment type to CRD
4ae7252 is described below

commit 4ae72522ce87a0d5dc4be09f0e5cd849bfe1846c
Author: Marat Gubaidullin <ma...@gmail.com>
AuthorDate: Fri Oct 14 11:23:30 2022 -0400

    Add deployment type to CRD
---
 karavan-operator/resources/karavan.yaml                          | 1 +
 .../main/java/org/apache/camel/karavan/operator/KaravanSpec.java | 9 +++++++++
 2 files changed, 10 insertions(+)

diff --git a/karavan-operator/resources/karavan.yaml b/karavan-operator/resources/karavan.yaml
index d1bfcbb..0a7a070 100644
--- a/karavan-operator/resources/karavan.yaml
+++ b/karavan-operator/resources/karavan.yaml
@@ -7,3 +7,4 @@ spec:
   instances: 1
   auth: public
   nodePort: 30666
+  type: dev
diff --git a/karavan-operator/src/main/java/org/apache/camel/karavan/operator/KaravanSpec.java b/karavan-operator/src/main/java/org/apache/camel/karavan/operator/KaravanSpec.java
index 2212886..83f4ee3 100644
--- a/karavan-operator/src/main/java/org/apache/camel/karavan/operator/KaravanSpec.java
+++ b/karavan-operator/src/main/java/org/apache/camel/karavan/operator/KaravanSpec.java
@@ -4,6 +4,7 @@ public class KaravanSpec {
 
     private int instances;
     private String auth;
+    private String type;
     private int nodePort;
 
     public int getInstances() {
@@ -29,4 +30,12 @@ public class KaravanSpec {
     public void setNodePort(int nodePort) {
         this.nodePort = nodePort;
     }
+
+    public String getType() {
+        return type;
+    }
+
+    public void setType(String type) {
+        this.type = type;
+    }
 }