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

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


The following commit(s) were added to refs/heads/camel-quarkus-main by this 
push:
     new f308730  Add openshift extension
f308730 is described below

commit f308730a007cf2a1432849059747629a495d9375
Author: Lukas Lowinger <llowi...@redhat.com>
AuthorDate: Tue Sep 20 19:17:48 2022 +0200

    Add openshift extension
---
 cluster-leader-election/pom.xml                    | 32 ++++++++++++++++++++--
 .../src/main/resources/application.properties      |  5 ++++
 2 files changed, 35 insertions(+), 2 deletions(-)

diff --git a/cluster-leader-election/pom.xml b/cluster-leader-election/pom.xml
index 537000f..eca1a9d 100644
--- a/cluster-leader-election/pom.xml
+++ b/cluster-leader-election/pom.xml
@@ -17,7 +17,8 @@
     limitations under the License.
 
 -->
-<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
+<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
     <modelVersion>4.0.0</modelVersion>
 
     <artifactId>camel-quarkus-examples-cluster-leader-election</artifactId>
@@ -203,7 +204,8 @@
                             <kt>SLASHSTAR_STYLE</kt>
                         </mapping>
                         <headerDefinitions>
-                            
<headerDefinition>${maven.multiModuleProjectDirectory}/license-properties-headerdefinition.xml</headerDefinition>
+                            
<headerDefinition>${maven.multiModuleProjectDirectory}/license-properties-headerdefinition.xml
+                            </headerDefinition>
                         </headerDefinitions>
                     </configuration>
                 </plugin>
@@ -303,6 +305,32 @@
                     <groupId>io.quarkus</groupId>
                     <artifactId>quarkus-container-image-jib</artifactId>
                 </dependency>
+                <dependency>
+                    <groupId>io.quarkus</groupId>
+                    <artifactId>quarkus-kubernetes-client</artifactId>
+                </dependency>
+                <dependency>
+                    <groupId>org.apache.camel.quarkus</groupId>
+                    <artifactId>camel-quarkus-microprofile-health</artifactId>
+                </dependency>
+            </dependencies>
+        </profile>
+        <profile>
+            <id>openshift</id>
+            <activation>
+                <property>
+                    <name>openshift</name>
+                </property>
+            </activation>
+            <dependencies>
+                <dependency>
+                    <groupId>io.quarkus</groupId>
+                    <artifactId>quarkus-openshift</artifactId>
+                </dependency>
+                <dependency>
+                    <groupId>io.quarkus</groupId>
+                    <artifactId>quarkus-kubernetes-client</artifactId>
+                </dependency>
                 <dependency>
                     <groupId>org.apache.camel.quarkus</groupId>
                     <artifactId>camel-quarkus-microprofile-health</artifactId>
diff --git a/cluster-leader-election/src/main/resources/application.properties 
b/cluster-leader-election/src/main/resources/application.properties
index 624c81d..0b8307e 100644
--- a/cluster-leader-election/src/main/resources/application.properties
+++ b/cluster-leader-election/src/main/resources/application.properties
@@ -38,6 +38,11 @@ quarkus.kubernetes.replicas=2
 quarkus.kubernetes-client.generate-rbac=false
 quarkus.kubernetes.service-account=camel-leader-election
 
+#
+# OpenShift
+#
+quarkus.openshift.service-account=camel-leader-election
+
 # Uncomment after https://github.com/apache/camel-quarkus/issues/3918 is solved
 #camel.cluster.file.enabled = true
 #camel.cluster.file.id = ${node.id}

Reply via email to