-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(kubernetes-client): allow incomplete model classpath
Signed-off-by: Marc Nuri <[email protected]>
- Loading branch information
Showing
3 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
...ent/deployment/src/main/java/io/quarkus/kubernetes/client/deployment/NativeOverrides.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package io.quarkus.kubernetes.client.deployment; | ||
|
||
import java.util.Collections; | ||
|
||
import io.quarkus.deployment.annotations.BuildStep; | ||
import io.quarkus.deployment.builditem.nativeimage.NativeImageAllowIncompleteClasspathBuildItem; | ||
import io.quarkus.runtime.configuration.ConfigUtils; | ||
|
||
public class NativeOverrides { | ||
|
||
private static final String KUBERNETES_ALLOW_INCOMPLETE_MODEL = "quarkus.kubernetes-client.allow-incomplete-model"; | ||
|
||
@BuildStep | ||
NativeImageAllowIncompleteClasspathBuildItem incompleteModel() { | ||
if (ConfigUtils.getFirstOptionalValue(Collections.singletonList(KUBERNETES_ALLOW_INCOMPLETE_MODEL), Boolean.class) | ||
.orElse(false)) { | ||
return new NativeImageAllowIncompleteClasspathBuildItem("quarkus-kubernetes-client"); | ||
} | ||
return null; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters