You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+35-9Lines changed: 35 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,27 +52,53 @@ make test
52
52
53
53
Afterward, the project can be started in IntelliJ by navigating to `Run` -> `Run '...'`.
54
54
55
-
## Test the CRD on the Dev Services cluster and AI assistance
55
+
## Test the CRD on the ephemeral Dev Services cluster
56
56
57
-
This example demonstrates how to set up a local development environment using Quarkus Dev Services and AI assistance to generate Kubernetes resources.
57
+
This example demonstrates how to set up a local development environment using Quarkus Dev Services to test the Operator manually.
58
+
As the K3s cluster port and the secrets change on every `./gradlew quarkusDev` run, you will have to manually update the port and secrets in the `~/.kube/config` every time.
58
59
59
60
### 1. Configure Kubeconfig from Dev Services
60
61
61
62
When running in dev mode (`make run` or via IntelliJ), Quarkus starts the pre-configured K3s and PostgreSQL Dev Services.
62
63
63
64
1. Access the Quarkus Dev UI at [http://localhost:8080/q/dev-ui/dev-services](http://localhost:8080/q/dev-ui/dev-services).
64
65
2. Locate the properties for the `kubernetes-client` Dev Service.
65
-
3.Ask an AI to convert these properties into a **Kubeconfig YAML** format.
66
+
3.Convert these properties into a **Kubeconfig YAML** format, see the example below.
66
67
4. Merge this configuration into your local `~/.kube/config`. This allows your local environment to communicate with the ephemeral Kubernetes cluster provided by Dev Services.
For the `postgresql` Dev Service, you can generate the necessary Custom Resources to test the operator:
71
97
72
98
1. From the Dev UI, get the `postgresql` Dev Service properties (username, password, host, port).
73
-
2.Ask the AI to convert the `postgresql` Dev Service properties to a **Basic Auth Secret** and a **ClusterConnection** CR instance.
74
-
3. Provide the AI with the `ClusterConnection` CRD definition from `build/kubernetes/clusterconnections.postgresql.aboutbits.it-v1.yml` as a reference.
75
-
4. Apply the generated files using IntelliJ or `kubectl`.
99
+
2.Convert the `postgresql` Dev Service properties to a **Basic Auth Secret** and a **ClusterConnection** CR instance.
100
+
For more details see class `ClusterConnectionSpec` or the `ClusterConnection` CRD definition from `build/kubernetes/clusterconnections.postgresql.aboutbits.it-v1.yml` as a reference.
101
+
3. Apply the generated files using IntelliJ or `kubectl`.
0 commit comments