File tree Expand file tree Collapse file tree 5 files changed +6
-9
lines changed
common/src/main/java/io/javaoperatorsdk/operator/sample
mysql-schema/src/main/java/io/javaoperatorsdk/operator/sample
tomcat/src/main/java/io/javaoperatorsdk/operator/sample
webserver/src/main/java/io/javaoperatorsdk/operator/sample Expand file tree Collapse file tree 5 files changed +6
-9
lines changed Original file line number Diff line number Diff line change 15
15
/**
16
16
* A very simple sample controller that creates a service with a label.
17
17
*/
18
- @ Controller (customResourceClass = CustomService . class ,
18
+ @ Controller (
19
19
crdName = "customservices.sample.javaoperatorsdk" )
20
20
public class CustomServiceController implements ResourceController <CustomService > {
21
21
Original file line number Diff line number Diff line change 21
21
22
22
import static java .lang .String .format ;
23
23
24
- @ Controller (
25
- crdName = "schemas.mysql.sample.javaoperatorsdk" ,
26
- customResourceClass = Schema .class )
24
+ @ Controller (crdName = "schemas.mysql.sample.javaoperatorsdk" )
27
25
public class SchemaController implements ResourceController <Schema > {
28
26
static final String USERNAME_FORMAT = "%s-user" ;
29
27
static final String SECRET_FORMAT = "%s-secret" ;
Original file line number Diff line number Diff line change 26
26
import java .util .Objects ;
27
27
import java .util .Optional ;
28
28
29
- @ Controller (customResourceClass = Tomcat .class ,
30
- crdName = "tomcats.tomcatoperator.io" )
29
+ @ Controller (crdName = "tomcats.tomcatoperator.io" )
31
30
public class TomcatController implements ResourceController <Tomcat > {
32
31
33
32
private final Logger log = LoggerFactory .getLogger (getClass ());
@@ -201,4 +200,4 @@ public String toString() {
201
200
'}' ;
202
201
}
203
202
}
204
- }
203
+ }
Original file line number Diff line number Diff line change 16
16
import java .util .regex .Matcher ;
17
17
import java .util .regex .Pattern ;
18
18
19
- @ Controller (customResourceClass = Webapp . class ,
19
+ @ Controller (
20
20
crdName = "webapps.tomcatoperator.io" )
21
21
public class WebappController implements ResourceController <Webapp > {
22
22
Original file line number Diff line number Diff line change 21
21
import java .util .HashMap ;
22
22
import java .util .Map ;
23
23
24
- @ Controller (customResourceClass = WebServer . class ,
24
+ @ Controller (
25
25
crdName = "webservers.sample.javaoperatorsdk" )
26
26
public class WebServerController implements ResourceController <WebServer > {
27
27
You can’t perform that action at this time.
0 commit comments