diff --git a/README.md b/README.md index 6989baf..44d99fc 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# Java Operator SDK +# Java Operator Plugin ## Overview @@ -25,10 +25,10 @@ Operator SDK is under Apache 2.0 license. See the [LICENSE][license_file] file f [of-blog]: https://coreos.com/blog/introducing-operator-framework [operator-link]: https://coreos.com/operators/ -# Enable kubebuilder-plugin for operator-sdk +## Enable java-operator-plugins for operator-sdk -To use kubebuilder-plugin for java operators we need to clone the operator-sdk repo. +To use java-operator-plugins for java operators we need to clone the operator-sdk repo. ### Updates in Operator-SDK go.mod @@ -38,10 +38,10 @@ To use kubebuilder-plugin for java operators we need to clone the operator-sdk r github.com/operator-framework/java-operator-plugins v0.0.0-20210225171707-e42ea87455e3 ``` -- Replace the kubebuilder-plugin path in go-mod pointing to the local dir of your kube-builder repo. Example. +- Replace the java-operator-plugins path in go-mod pointing to the local dir of your kube-builder repo. Example. ``` -github.com/operator-framework/java-operator-plugins => /Users/sushah/go/src/github.com/sujil02/kubebuilder-plugin +github.com/operator-framework/java-operator-plugins => /Users/sushah/go/src/github.com/sujil02/java-operator-plugins ``` ### Updates in Operator-SDK `internal/cmd/operator-sdk/cli/cli.go` @@ -49,17 +49,17 @@ github.com/operator-framework/java-operator-plugins => /Users/sushah/go/src/gith - Add the java-operator-sdk import ``` -javav1 "github.com/operator-framework/java-operator-plugins/pkg/quarkus/v1" +quarkusv1 "github.com/operator-framework/java-operator-plugins/pkg/quarkus/v1" ``` - Introduce the java bundle in `GetPluginsCLIAndRoot()` method. ``` -javaBundle, _ := plugin.NewBundle("quarkus"+plugins.DefaultNameQualifier, plugin.Version{Number: 1}, - &javav1.Plugin{}, +quarkusBundle, _ := plugin.NewBundle("quarkus"+plugins.DefaultNameQualifier, plugin.Version{Number: 1}, + &quarkusv1.Plugin{}, ) ``` -- Add the created javaBundle to the `cli.New` +- Add the created quarkusBundle to the `cli.New` ``` cli.WithPlugins( @@ -67,7 +67,7 @@ javaBundle, _ := plugin.NewBundle("quarkus"+plugins.DefaultNameQualifier, plugin gov2Bundle, gov3Bundle, helmBundle, - javaBundle, + quarkusBundle, ), ```