Coder Social home page Coder Social logo

ivangfr / kubeless-maven-plugin Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 3.0 24 KB

Maven plugin that reads a class in `/src/main/java/io/kubeless` directory and the `pom.xml` of the project and converts them into a ready to use inputs in `kubeless function deploy` command.

License: Apache License 2.0

Java 98.02% Groovy 1.98%
maven-plugin kubeless java maven

kubeless-maven-plugin's Introduction

kubeless-maven-plugin

Maven plugin that reads a class in /src/main/java/io/kubeless directory and the pom.xml of the project and converts them into a ready to use inputs in kubeless function deploy command.

Tip: Use the Maven Archetype kubeless-dev-environment-archetype to implement your Kubeless Functions.

Maven Plugin

Setup

A basic setup is

<plugin>
    <groupId>org.ivanfranchin</groupId>
    <artifactId>kubeless-maven-plugin</artifactId>
    <version>1.0-SNAPSHOT</version>
    <configuration>
        <inputJavaClassName>AppFunction</inputJavaClassName>
    </configuration>
    <executions>
        <execution>
            <!-- Just an unique id for the execution -->
            <id>kubeless-convert</id>
            <!-- kubeless-maven-plugin runs in process-resources phase by default -->
            <!-- <phase>process-resources</phase> -->
            <goals>
                <goal>convert</goal>
            </goals>
        </execution>
    </executions>
</plugin>

Configuration

  • inputJavaClassName

    Name of the input Java Class that contains Kubeless Functions. The input Java Class file must be in ${basedir}/src/main/java/io/kubeless.

  • outputDirectory

    Folder where the output Java Class and the new pom.xml file will be created. The default value is ${project.build.directory}/generated-sources/kubeless.

Tests

  • Run only Unit Tests

    Unit tests are written using JUnit 5

    mvn clean test
    
  • Run only Integration Tests

    Integration tests uses maven-invoker-plugin and the runt-its profile and are in src/it folder.

    mvn clean verify -DskipTests -Prun-its
    
  • Run all Tests

    The command below will run Unit and Integration Tests

    mvn clean verify -Prun-its
    

kubeless-maven-plugin's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.