Skip to content

Commit

Permalink
[fabric8io#3700] Change OSGi ConfigurationPolicy to REQUIRE
Browse files Browse the repository at this point in the history
 - Prevent NPE when config does not exist
  • Loading branch information
mattrpav committed Dec 28, 2021
1 parent 6052524 commit a8e2e37
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -127,7 +127,7 @@

import static io.fabric8.kubernetes.client.Config.*;

@Component(immediate = true, configurationPid = "io.fabric8.kubernetes.client", policy = ConfigurationPolicy.OPTIONAL)
@Component(immediate = true, configurationPid = "io.fabric8.kubernetes.client", policy = ConfigurationPolicy.REQUIRE)
@Service({KubernetesClient.class,NamespacedKubernetesClient.class})
@References({
@Reference(referenceInterface = io.fabric8.kubernetes.client.ResourceHandler.class, cardinality = ReferenceCardinality.OPTIONAL_MULTIPLE, policy = ReferencePolicy.DYNAMIC, bind = "bindResourceHandler", unbind = "unbindResourceHandler"),
Expand Down

0 comments on commit a8e2e37

Please sign in to comment.