Skip to content

Commit d4d22d4

Browse files
committed
docs: update Quarkus section
1 parent af637e2 commit d4d22d4

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

README.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -179,28 +179,21 @@ to your project:
179179
</dependency>
180180
```
181181

182-
Create an Application, Quarkus will automatically create and inject a `KubernetesClient`, `Operator`
183-
and `ConfigurationService` instances that your application can use, as shown below:
182+
Create an Application, Quarkus will automatically create and inject a `KubernetesClient`, `Operator`, `ConfigurationService` and `ResourceController` instances that your application can use. Below, you can see the minimal code you need to write to get your operator and controllers up and running:
184183

185184
```java
186185
@QuarkusMain
187186
public class QuarkusOperator implements QuarkusApplication {
188187

189-
@Inject KubernetesClient client;
190-
191188
@Inject Operator operator;
192189

193-
@Inject ConfigurationService configuration;
194-
195190
public static void main(String... args) {
196191
Quarkus.run(QuarkusOperator.class, args);
197192
}
198193

199194
@Override
200195
public int run(String... args) throws Exception {
201-
final var config = configuration.getConfigurationFor(new CustomServiceController(client));
202-
System.out.println("CR class: " + config.getCustomResourceClass());
203-
196+
operator.start();
204197
Quarkus.waitForExit();
205198
return 0;
206199
}

0 commit comments

Comments
 (0)