Skip to content
This repository has been archived by the owner on May 21, 2023. It is now read-only.

h1alexbel/k8sojo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo

EO principles respected here DevOps By Rultor.com We recommend IntelliJ IDEA License PDD status

mvn codecov Hits-of-Code

Kubernetes objects - Java objects - It's a simple object-oriented representation of Kubernetes objects(pods, services, deployments, jobs, etc.). You can create and manage them in pretty declarative way.

Principles. These are the design principles behind k8sojo.

You add this to your pom.xml:

<dependency>
  <groupId>com.h1alexbel</groupId>
  <artifactId>k8sojo</artifactId>
</dependency>

Job API

import com.h1alexbel.k8sojo.Container;
import com.h1alexbel.k8sojo.DcContainer;
import com.h1alexbel.k8sojo.Kojo;
import com.h1alexbel.k8sojo.Metadata;
import com.h1alexbel.k8sojo.Spec;

final Container realo = new DcContainer("realo", "abialiauski/realo", List.of("-java"));
    Kojo kojo = new JobKojo(
      new JobMetadata("realo-job"),
      new JobSpec(
        new JobTemplate(
          new JobTemplateSpec(
            List.of(realo), "Never"
          )
        ),
        4)
    );

Pod API

TBD

Deployment API

TBD

How to Contribute

TBD

Fork repository, make changes, send us a pull request. We will review your changes and apply them to the master branch shortly, provided they don't violate our quality standards. To avoid frustration, before sending us your pull request please run full Maven build:

$ mvn clean install

You will need Maven 3.3+ and Java 17+.