1
1
<img src =" https://raw.githubusercontent.com/operator-framework/operator-sdk/master/website/static/operator_logo_sdk_color.svg " height =" 125px " ></img >
2
2
3
- # Java Operator SDK
3
+ # Java Operator Plugin
4
4
5
5
## Overview
6
6
@@ -25,10 +25,10 @@ Operator SDK is under Apache 2.0 license. See the [LICENSE][license_file] file f
25
25
[ of-blog ] : https://coreos.com/blog/introducing-operator-framework
26
26
[ operator-link ] : https://coreos.com/operators/
27
27
28
- # Enable kubebuilder-plugin for operator-sdk
28
+ ## Enable java-operator-plugins for operator-sdk
29
29
30
30
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.
32
32
33
33
### Updates in Operator-SDK go.mod
34
34
@@ -38,36 +38,36 @@ To use kubebuilder-plugin for java operators we need to clone the operator-sdk r
38
38
github.com/operator-framework/java-operator-plugins v0.0.0-20210225171707-e42ea87455e3
39
39
```
40
40
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.
42
42
43
43
```
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
45
45
```
46
46
47
47
### Updates in Operator-SDK ` internal/cmd/operator-sdk/cli/cli.go `
48
48
49
49
- Add the java-operator-sdk import
50
50
51
51
```
52
- javav1 "github.com/operator-framework/java-operator-plugins/pkg/quarkus/v1"
52
+ quarkusv1 "github.com/operator-framework/java-operator-plugins/pkg/quarkus/v1"
53
53
```
54
54
55
55
- Introduce the java bundle in ` GetPluginsCLIAndRoot() ` method.
56
56
```
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{},
59
59
)
60
60
```
61
61
62
- - Add the created javaBundle to the ` cli.New `
62
+ - Add the created quarkusBundle to the ` cli.New `
63
63
64
64
```
65
65
cli.WithPlugins(
66
66
ansibleBundle,
67
67
gov2Bundle,
68
68
gov3Bundle,
69
69
helmBundle,
70
- javaBundle ,
70
+ quarkusBundle ,
71
71
),
72
72
```
73
73
0 commit comments