Skip to content

Commit d71e115

Browse files
committed
✨ add envoy client
1 parent b5fe631 commit d71e115

File tree

4 files changed

+191
-86
lines changed

4 files changed

+191
-86
lines changed

pom.xml

+110-86
Original file line numberDiff line numberDiff line change
@@ -1,96 +1,120 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22

33
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5-
<modelVersion>4.0.0</modelVersion>
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
66

7-
<groupId>link.elatic</groupId>
8-
<artifactId>scalable</artifactId>
9-
<packaging>pom</packaging>
10-
<version>1.0-SNAPSHOT</version>
11-
<modules>
12-
<module>scalable-core</module>
13-
</modules>
7+
<groupId>link.elatic</groupId>
8+
<artifactId>scalable</artifactId>
9+
<packaging>pom</packaging>
10+
<version>1.0-SNAPSHOT</version>
11+
<modules>
12+
<module>scalable-core</module>
13+
<module>scalable-envoy</module>
14+
</modules>
1415

15-
<name>scalable</name>
16-
<url></url>
17-
18-
<properties>
19-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
20-
<maven.compiler.source>1.8</maven.compiler.source>
21-
<maven.compiler.target>1.8</maven.compiler.target>
22-
<curator.version>5.2.0</curator.version>
23-
<client-java.version>18.0.1</client-java.version>
24-
</properties>
25-
<dependencyManagement>
26-
<dependencies>
27-
<dependency>
28-
<groupId>org.apache.curator</groupId>
29-
<artifactId>curator-recipes</artifactId>
30-
<version>${curator.version}</version>
31-
</dependency>
32-
<!-- https://mvnrepository.com/artifact/io.kubernetes/client-java -->
33-
<dependency>
34-
<groupId>io.kubernetes</groupId>
35-
<artifactId>client-java</artifactId>
36-
<version>${client-java.version}</version>
37-
</dependency>
16+
<name>scalable</name>
17+
<url></url>
3818

19+
<properties>
20+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
21+
<maven.compiler.source>1.8</maven.compiler.source>
22+
<maven.compiler.target>1.8</maven.compiler.target>
23+
<curator.version>5.2.0</curator.version>
24+
<client-java.version>18.0.1</client-java.version>
25+
<grpc.version>1.58.0</grpc.version>
26+
<io.envoyproxy.controlplane.version>1.0.39</io.envoyproxy.controlplane.version>
27+
</properties>
28+
<dependencyManagement>
29+
<dependencies>
30+
<!-- https://mvnrepository.com/artifact/io.grpc/grpc-bom -->
31+
<dependency>
32+
<groupId>io.grpc</groupId>
33+
<artifactId>grpc-bom</artifactId>
34+
<version>1.58.0</version>
35+
<type>pom</type>
36+
<scope>import</scope>
37+
</dependency>
38+
<!-- https://mvnrepository.com/artifact/io.envoyproxy.controlplane/java-control-plane -->
39+
<dependency>
40+
<groupId>io.envoyproxy.controlplane</groupId>
41+
<artifactId>java-control-plane</artifactId>
42+
<version>${io.envoyproxy.controlplane.version}</version>
43+
<type>pom</type>
44+
<scope>import</scope>
45+
</dependency>
46+
<!-- https://mvnrepository.com/artifact/io.envoyproxy.controlplane/api -->
47+
<dependency>
48+
<groupId>io.envoyproxy.controlplane</groupId>
49+
<artifactId>api</artifactId>
50+
<version>${io.envoyproxy.controlplane.version}</version>
51+
</dependency>
3952

53+
<dependency>
54+
<groupId>org.apache.curator</groupId>
55+
<artifactId>curator-recipes</artifactId>
56+
<version>${curator.version}</version>
57+
</dependency>
58+
<!-- https://mvnrepository.com/artifact/io.kubernetes/client-java -->
59+
<dependency>
60+
<groupId>io.kubernetes</groupId>
61+
<artifactId>client-java</artifactId>
62+
<version>${client-java.version}</version>
63+
</dependency>
64+
</dependencies>
65+
</dependencyManagement>
66+
<dependencies>
67+
<dependency>
68+
<groupId>junit</groupId>
69+
<artifactId>junit</artifactId>
70+
<version>4.13.1</version>
71+
<scope>test</scope>
72+
</dependency>
4073
</dependencies>
41-
</dependencyManagement>
42-
<dependencies>
43-
<dependency>
44-
<groupId>junit</groupId>
45-
<artifactId>junit</artifactId>
46-
<version>4.13.1</version>
47-
<scope>test</scope>
48-
</dependency>
49-
</dependencies>
5074

51-
<build>
52-
<pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
53-
<plugins>
54-
<!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
55-
<plugin>
56-
<artifactId>maven-clean-plugin</artifactId>
57-
<version>3.1.0</version>
58-
</plugin>
59-
<!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
60-
<plugin>
61-
<artifactId>maven-resources-plugin</artifactId>
62-
<version>3.0.2</version>
63-
</plugin>
64-
<plugin>
65-
<artifactId>maven-compiler-plugin</artifactId>
66-
<version>3.8.0</version>
67-
</plugin>
68-
<plugin>
69-
<artifactId>maven-surefire-plugin</artifactId>
70-
<version>2.22.1</version>
71-
</plugin>
72-
<plugin>
73-
<artifactId>maven-jar-plugin</artifactId>
74-
<version>3.0.2</version>
75-
</plugin>
76-
<plugin>
77-
<artifactId>maven-install-plugin</artifactId>
78-
<version>2.5.2</version>
79-
</plugin>
80-
<plugin>
81-
<artifactId>maven-deploy-plugin</artifactId>
82-
<version>2.8.2</version>
83-
</plugin>
84-
<!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle -->
85-
<plugin>
86-
<artifactId>maven-site-plugin</artifactId>
87-
<version>3.7.1</version>
88-
</plugin>
89-
<plugin>
90-
<artifactId>maven-project-info-reports-plugin</artifactId>
91-
<version>3.0.0</version>
92-
</plugin>
93-
</plugins>
94-
</pluginManagement>
95-
</build>
75+
<build>
76+
<pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
77+
<plugins>
78+
<!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
79+
<plugin>
80+
<artifactId>maven-clean-plugin</artifactId>
81+
<version>3.1.0</version>
82+
</plugin>
83+
<!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
84+
<plugin>
85+
<artifactId>maven-resources-plugin</artifactId>
86+
<version>3.0.2</version>
87+
</plugin>
88+
<plugin>
89+
<artifactId>maven-compiler-plugin</artifactId>
90+
<version>3.8.0</version>
91+
</plugin>
92+
<plugin>
93+
<artifactId>maven-surefire-plugin</artifactId>
94+
<version>2.22.1</version>
95+
</plugin>
96+
<plugin>
97+
<artifactId>maven-jar-plugin</artifactId>
98+
<version>3.0.2</version>
99+
</plugin>
100+
<plugin>
101+
<artifactId>maven-install-plugin</artifactId>
102+
<version>2.5.2</version>
103+
</plugin>
104+
<plugin>
105+
<artifactId>maven-deploy-plugin</artifactId>
106+
<version>2.8.2</version>
107+
</plugin>
108+
<!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle -->
109+
<plugin>
110+
<artifactId>maven-site-plugin</artifactId>
111+
<version>3.7.1</version>
112+
</plugin>
113+
<plugin>
114+
<artifactId>maven-project-info-reports-plugin</artifactId>
115+
<version>3.0.0</version>
116+
</plugin>
117+
</plugins>
118+
</pluginManagement>
119+
</build>
96120
</project>

scalable-envoy/pom.xml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<parent>
5+
<groupId>link.elatic</groupId>
6+
<artifactId>scalable</artifactId>
7+
<version>1.0-SNAPSHOT</version>
8+
</parent>
9+
10+
<groupId>org.example</groupId>
11+
<artifactId>scalable-envoy</artifactId>
12+
<packaging>jar</packaging>
13+
14+
<name>scalable-envoy</name>
15+
<url>http://maven.apache.org</url>
16+
17+
<properties>
18+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
19+
</properties>
20+
21+
<dependencies>
22+
23+
<!-- https://mvnrepository.com/artifact/io.envoyproxy.controlplane/api -->
24+
<dependency>
25+
<groupId>io.envoyproxy.controlplane</groupId>
26+
<artifactId>api</artifactId>
27+
</dependency>
28+
29+
</dependencies>
30+
</project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package org.example;
2+
3+
/**
4+
* Hello world!
5+
*
6+
*/
7+
public class App
8+
{
9+
public static void main( String[] args )
10+
{
11+
System.out.println( "Hello World!" );
12+
}
13+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
package org.example;
2+
3+
import junit.framework.Test;
4+
import junit.framework.TestCase;
5+
import junit.framework.TestSuite;
6+
7+
/**
8+
* Unit test for simple App.
9+
*/
10+
public class AppTest
11+
extends TestCase
12+
{
13+
/**
14+
* Create the test case
15+
*
16+
* @param testName name of the test case
17+
*/
18+
public AppTest( String testName )
19+
{
20+
super( testName );
21+
}
22+
23+
/**
24+
* @return the suite of tests being tested
25+
*/
26+
public static Test suite()
27+
{
28+
return new TestSuite( AppTest.class );
29+
}
30+
31+
/**
32+
* Rigourous Test :-)
33+
*/
34+
public void testApp()
35+
{
36+
assertTrue( true );
37+
}
38+
}

0 commit comments

Comments
 (0)