kubernetes-examples
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>io.alauda</groupId> <artifactId>kubernetes-examples</artifactId> <version>0.2.4.3</version> </dependency>
<?xml version="1.0" encoding="UTF-8"?> <!-- Copyright (C) 2018 Alauda Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and 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"> <parent> <groupId>io.alauda</groupId> <artifactId>kubernetes-client-project</artifactId> <version>0.2.4.3</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>kubernetes-examples</artifactId> <packaging>jar</packaging> <name>Alauda :: Kubernetes :: Client Examples</name> <properties> <podName>mypod</podName> <masterUrl>https://localhost:8443/</masterUrl> <namespace>default</namespace> </properties> <dependencies> <dependency> <groupId>io.alauda</groupId> <artifactId>devops-client</artifactId> <version>${project.version}</version> </dependency> <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-slf4j-impl</artifactId> <version>${log4j.version}</version> </dependency> <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-core</artifactId> <version>${log4j.version}</version> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>${junit.version}</version> <scope>compile</scope> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>1.4.0</version> <executions> <execution> <goals> <goal>java</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-deploy-plugin</artifactId> <version>2.8.2</version> <configuration> <skip>true</skip> </configuration> </plugin> </plugins> </build> <profiles> <!-- lets make it easy to run the example programs via a mvn profile --> <profile> <id>list-crd</id> <build> <defaultGoal>test-compile exec:java</defaultGoal> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <configuration> <mainClass>io.alauda.kubernetes.examples.ListCustomResourceDefinitions</mainClass> </configuration> </plugin> </plugins> </build> </profile> <profile> <id>list-bc</id> <build> <defaultGoal>test-compile exec:java</defaultGoal> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <configuration> <mainClass>io.alauda.devops.examples.ListBuildConfigs</mainClass> </configuration> </plugin> </plugins> </build> </profile> <profile> <id>watch-bc</id> <build> <defaultGoal>test-compile exec:java</defaultGoal> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <configuration> <mainClass>io.alauda.devops.examples.WatchBuildConfigs</mainClass> </configuration> </plugin> </plugins> </build> </profile> <profile> <id>list-dc</id> <build> <defaultGoal>test-compile exec:java</defaultGoal> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <configuration> <mainClass>io.alauda.devops.examples.ListDeploymentConfigs</mainClass> </configuration> </plugin> </plugins> </build> </profile> <profile> <id>list-image</id> <build> <defaultGoal>test-compile exec:java</defaultGoal> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <configuration> <mainClass>io.alauda.devops.examples.ListImageStreams</mainClass> </configuration> </plugin> </plugins> </build> </profile> <profile> <id>pod-log</id> <build> <defaultGoal>test-compile exec:java</defaultGoal> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <configuration> <mainClass>io.alauda.kubernetes.examples.PodLogExample</mainClass> </configuration> </plugin> </plugins> </build> </profile> <profile> <id>exec-example</id> <build> <defaultGoal>test-compile exec:java</defaultGoal> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <configuration> <mainClass>io.alauda.kubernetes.examples.ExecExample</mainClass> </configuration> </plugin> </plugins> </build> </profile> </profiles> </project>