public Iterable getConfigSources()

in camel-k-runtime/runtime/src/main/java/org/apache/camel/k/quarkus/ApplicationConfigSourceProvider.java [32:50]


    public Iterable<ConfigSource> getConfigSources(ClassLoader forClassLoader) {
        final Map<String, String> sysProperties = new HashMap<>();
        // explicit disable looking up configmap and secret using the KubernetesClient
        sysProperties.put(ConfigMapPropertiesFunction.CLIENT_ENABLED, "false");

        final Map<String, String> appProperties = RuntimeSupport.loadApplicationProperties();
        final Map<String, String> usrProperties = RuntimeSupport.loadUserProperties();

        if (usrProperties.containsKey("camel.k.errorHandler.ref")) {
            // Pipe error handler configured - need to disable noErrorHandler behavior in Camel 4.4.0
            usrProperties.put("camel.component.kamelet.noErrorHandler", "false");
        }

        return List.of(
            new PropertiesConfigSource(sysProperties, "camel-k-sys", ConfigSource.DEFAULT_ORDINAL + 1000),
            new PropertiesConfigSource(appProperties, "camel-k-app", ConfigSource.DEFAULT_ORDINAL),
            new PropertiesConfigSource(usrProperties, "camel-k-usr", ConfigSource.DEFAULT_ORDINAL + 1)
        );
    }