Skip to content

Commit 907c29b

Browse files
committed
fix: implement configuration method
1 parent 43e5a5d commit 907c29b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sample-operators/mysql-schema/src/main/java/io/javaoperatorsdk/operator/sample/dependent/SchemaDependentResource.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ public SchemaDependentResource() {
3939
super(Schema.class);
4040
}
4141

42+
@Override
43+
public Optional<ResourcePollerConfig> configuration() {
44+
return Optional.of(new ResourcePollerConfig((int) getPollingPeriod(), dbConfig));
45+
}
46+
4247
@Override
4348
public void configureWith(ResourcePollerConfig config) {
4449
this.dbConfig = config.getMySQLDbConfig();

0 commit comments

Comments
 (0)