java-operator-plugins

module
v0.11.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2024 License: Apache-2.0

README

Java Operator Plugin

Overview

This project is a component of the Operator Framework, an open source toolkit to manage Kubernetes native applications, called Operators, in an effective, automated, and scalable way. Read more in the introduction blog post.

Operators make it easy to manage complex stateful applications on top of Kubernetes. However writing an operator today can be difficult because of challenges such as using low level APIs, writing boilerplate, and a lack of modularity which leads to duplication.

License

Operator SDK is under Apache 2.0 license. See the LICENSE file for details.

Build and Install the Operator-SDK
go mod tidy
make install

Now that the plugin is integrated with the operator-sdk you can run the init command to generate the sample java operator

  • Use the quarkus plugin flag
  • Pick the domain and project name as prefered.
operator-sdk init --plugins quarkus --domain xyz.com --project-name java-op

Once the operator is scaffolded check for the following files

.
├── Makefile
├── PROJECT
├── pom.xml
└── src
    └── main
        ├── java
        └── resources
            └── application.properties

4 directories, 4 files

Directories

Path Synopsis
pkg
quarkus/v1beta/scaffolds
Package scaffolds will likely contain the files used to scaffold the files for specific commands.
Package scaffolds will likely contain the files used to scaffold the files for specific commands.
quarkus/v1beta/scaffolds/internal/templates
Package templates contains the files which have templates for the files being output by the scaffolders.
Package templates contains the files which have templates for the files being output by the scaffolders.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL