Unable to assign service-name and service-port for kubernetes configuration using environment variable in xml

15 views
Skip to first unread message

pratik parshetti

unread,
Jun 10, 2022, 1:08:50 AM6/10/22
to Hazelcast

I have mentioned following in xml,
<hz:kubernetes enabled="true" service-name="${SERVICE_NAME:myapp}" and service-port="${SERVICE_PORT:5701}" />

so instead of taking value of variable the whole string is getting assigned as value to service-name
eg. consider SERVICE_NAME = mynewapp
so expected is service-name=mynewapp
but actual happening is service-name=${SERVICE_NAME:myapp}

similarly for service-port

XML Schema :

Neil Stevenson

unread,
Jun 10, 2022, 3:45:27 AM6/10/22
to haze...@googlegroups.com
I've used this with Hazelcast 5.1.1

        <hz:config>

            <hz:cluster-name>${ENV:dev}</hz:cluster-name>

and defaulting works fine. 

Can you share an XML that is complete enough to demonstrate the issue please, and confirm the version you use ?

Neil




--
You received this message because you are subscribed to the Google Groups "Hazelcast" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hazelcast+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hazelcast/9f331eaa-4c95-459b-820c-2406d3536fa9n%40googlegroups.com.

This message contains confidential information and is intended only for the individuals named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required, please request a hard-copy version. -Hazelcast
Reply all
Reply to author
Forward
0 new messages