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: docs/README.md
+30-6Lines changed: 30 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -33,12 +33,16 @@ The goal of the end-to-end tests is to test the framework in a production-like e
33
33
executable documentation to guide developers how to deploy and configure the target service.
34
34
35
35
The [end-to-end tests](https://github.com/java-operator-sdk/admission-controller-framework/blob/main/samples/quarkus/src/test/java/io/javaoperatorsdk/webhook/sample/QuarkusWebhooksE2E.java)
36
-
are using the [same test cases](https://github.com/java-operator-sdk/admission-controller-framework/blob/de2b0da7f592aa166049ef7ad65bcebf8d45e358/samples/commons/src/test/java/io/javaoperatorsdk/webhook/sample/EndToEndTestBase.java) and are based on the samples (See Spring Boot
36
+
are using
37
+
the [same test cases](https://github.com/java-operator-sdk/admission-controller-framework/blob/de2b0da7f592aa166049ef7ad65bcebf8d45e358/samples/commons/src/test/java/io/javaoperatorsdk/webhook/sample/EndToEndTestBase.java)
38
+
and are based on the samples (See Spring Boot
37
39
version [here](https://github.com/java-operator-sdk/admission-controller-framework/blob/e2637a90152bebfca2983ba17268c1f7ec7e9602/samples/spring-boot/src/test/java/io/javaoperatorsdk/webhook/sample/springboot/SpringBootWebhooksE2E.java)).
38
40
To see how those tests are executed during a pull request check
39
41
the [related GitHub Action](https://github.com/java-operator-sdk/admission-controller-framework/blob/main/.github/workflows/pr.yml#L66-L66)
40
42
41
-
The samples are first built, then [deployed](https://github.com/java-operator-sdk/admission-controller-framework/blob/6959de06c0de1c8e04fc241ea5f4196219002e53/samples/quarkus/src/test/java/io/javaoperatorsdk/webhook/sample/QuarkusWebhooksE2E.java#L23-L30) to a local Kubernetes cluster (in our case minikube is used).
43
+
The samples are first built,
44
+
then [deployed](https://github.com/java-operator-sdk/admission-controller-framework/blob/6959de06c0de1c8e04fc241ea5f4196219002e53/samples/quarkus/src/test/java/io/javaoperatorsdk/webhook/sample/QuarkusWebhooksE2E.java#L23-L30)
45
+
to a local Kubernetes cluster (in our case minikube is used).
42
46
For Quarkus most of the deployment artifacts is generated using extensions (works similarly for Spring Boot,
43
47
using [dekorate](https://github.com/java-operator-sdk/admission-controller-framework/blob/main/samples/spring-boot/pom.xml#L52-L63)):
44
48
@@ -91,7 +95,8 @@ The conversion hook is configured within the `CustomResourceDefinition`, see
91
95
related [Kubernetes docs](https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definition-versioning/#configure-customresourcedefinition-to-use-conversion-webhooks).
92
96
Since this is [not yet supported](https://github.com/fabric8io/kubernetes-client/issues/4692) by the fabric8 client CRD
93
97
generator, the hook definition is
94
-
[added before](https://github.com/java-operator-sdk/admission-controller-framework/blob/57a889ea1c0cb42b5a703a3cc8053f51c3982f74/samples/commons/src/main/java/io/javaoperatorsdk/webhook/sample/commons/Utils.java#L83-L110) CRD is applied.
that [cert manager](https://github.com/java-operator-sdk/admission-controller-framework/blob/e2637a90152bebfca2983ba17268c1f7ec7e9602/samples/quarkus/src/test/java/io/javaoperatorsdk/webhook/sample/QuarkusWebhooksE2E.java#L19-L23)
@@ -135,7 +140,8 @@ All changes made to the resource are reflected in the response created by the ad
handles conversion between different versions of custom resources
137
142
using [mappers](https://github.com/java-operator-sdk/admission-controller-framework/blob/main/core/src/main/java/io/javaoperatorsdk/webhook/conversion/Mapper.java)
See in the [samples](https://github.com/java-operator-sdk/admission-controller-framework/blob/main/samples/commons/src/main/resources/META-INF/services/io.fabric8.kubernetes.api.model.KubernetesResource#L164-L164).
170
+
171
+
Related release not in fabric8 client:
172
+
```text
173
+
Fix #4579: the implicit registration of resource and list types that happens when using the resource(class) methods
174
+
has been removed. This makes the behavior of the client more predictable as that was an undocumented side-effect.
175
+
If you expect to see instances of a custom type from an untyped api call - typically KubernetesClient.load,
176
+
KubernetesClient.resourceList, KubernetesClient.resource(InputStream|String), then you must either create a
177
+
META-INF/services/io.fabric8.kubernetes.api.model.KubernetesResource file (see above #3923), or make calls to
178
+
KubernetesDeserializer.registerCustomKind - however since KubernetesDeserializer is an internal class that mechanism
Copy file name to clipboardExpand all lines: samples/quarkus/src/main/java/io/javaoperatorsdk/webhook/sample/conversion/CustomResourceDeserializationCustomizer.java
0 commit comments