Package org.apache.tomcat.util.digester
Class ServiceBindingPropertySource
java.lang.Object
org.apache.tomcat.util.digester.ServiceBindingPropertySource
- All Implemented Interfaces:
IntrospectionUtils.PropertySource
public class ServiceBindingPropertySource
extends Object
implements IntrospectionUtils.PropertySource
A
IntrospectionUtils.PropertySource
that uses Kubernetes service bindings to resolve expressions.
Usage example:
Configure the certificate with a service binding. When the service binding is constructed as follows:$SERVICE_BINDING_ROOT/ /custom-certificate/ /keyFile /file /chainFile
<SSLHostConfig>
<Certificate certificateKeyFile="${custom-certificate.keyFile}"
certificateFile="${custom-certificate.file}"
certificateChainFile="${custom-certificate.chainFile}"
type="RSA" />
</SSLHostConfig>
How to configure:
echo "org.apache.tomcat.util.digester.PROPERTY_SOURCE=org.apache.tomcat.util.digester.ServiceBindingPropertySource" >> conf/catalina.properties
or add this to CATALINA_OPTS
-Dorg.apache.tomcat.util.digester.PROPERTY_SOURCE=org.apache.tomcat.util.digester.ServiceBindingPropertySource
NOTE: When configured the PropertySource for resolving expressions
from system properties is still active.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ServiceBindingPropertySource
public ServiceBindingPropertySource()
-
-
Method Details
-
getProperty
- Specified by:
getProperty
in interfaceIntrospectionUtils.PropertySource
-