Skip to content

Commit 9ff0692

Browse files
authored
Updates readme to be in sync with java-operator-plugins repo (#4)
Signed-off-by: Sujil02 <[email protected]>
1 parent ffc09ec commit 9ff0692

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Diff for: README.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<img src="https://raw.githubusercontent.com/operator-framework/operator-sdk/master/website/static/operator_logo_sdk_color.svg" height="125px"></img>
22

3-
# Java Operator SDK
3+
# Java Operator Plugin
44

55
## Overview
66

@@ -25,10 +25,10 @@ Operator SDK is under Apache 2.0 license. See the [LICENSE][license_file] file f
2525
[of-blog]: https://coreos.com/blog/introducing-operator-framework
2626
[operator-link]: https://coreos.com/operators/
2727

28-
# Enable kubebuilder-plugin for operator-sdk
28+
## Enable java-operator-plugins for operator-sdk
2929

3030

31-
To use kubebuilder-plugin for java operators we need to clone the operator-sdk repo.
31+
To use java-operator-plugins for java operators we need to clone the operator-sdk repo.
3232

3333
### Updates in Operator-SDK go.mod
3434

@@ -38,36 +38,36 @@ To use kubebuilder-plugin for java operators we need to clone the operator-sdk r
3838
github.com/operator-framework/java-operator-plugins v0.0.0-20210225171707-e42ea87455e3
3939
```
4040

41-
- Replace the kubebuilder-plugin path in go-mod pointing to the local dir of your kube-builder repo. Example.
41+
- Replace the java-operator-plugins path in go-mod pointing to the local dir of your kube-builder repo. Example.
4242

4343
```
44-
github.com/operator-framework/java-operator-plugins => /Users/sushah/go/src/github.com/sujil02/kubebuilder-plugin
44+
github.com/operator-framework/java-operator-plugins => /Users/sushah/go/src/github.com/sujil02/java-operator-plugins
4545
```
4646

4747
### Updates in Operator-SDK `internal/cmd/operator-sdk/cli/cli.go`
4848

4949
- Add the java-operator-sdk import
5050

5151
```
52-
javav1 "github.com/operator-framework/java-operator-plugins/pkg/quarkus/v1"
52+
quarkusv1 "github.com/operator-framework/java-operator-plugins/pkg/quarkus/v1"
5353
```
5454

5555
- Introduce the java bundle in `GetPluginsCLIAndRoot()` method.
5656
```
57-
javaBundle, _ := plugin.NewBundle("quarkus"+plugins.DefaultNameQualifier, plugin.Version{Number: 1},
58-
&javav1.Plugin{},
57+
quarkusBundle, _ := plugin.NewBundle("quarkus"+plugins.DefaultNameQualifier, plugin.Version{Number: 1},
58+
&quarkusv1.Plugin{},
5959
)
6060
```
6161

62-
- Add the created javaBundle to the `cli.New`
62+
- Add the created quarkusBundle to the `cli.New`
6363

6464
```
6565
cli.WithPlugins(
6666
ansibleBundle,
6767
gov2Bundle,
6868
gov3Bundle,
6969
helmBundle,
70-
javaBundle,
70+
quarkusBundle,
7171
),
7272
```
7373

0 commit comments

Comments
 (0)