Cant we use kind of interfacing? Like mention a class name in a
configuration and somewhere create an object of the class we mentioned. In
that way we can get rid of the if AFAIU. WDYT?

Thanks & Regards
Danushka Fernando
Senior Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729

On Mon, Dec 7, 2015 at 11:19 AM, Lahiru Manohara <lahir...@wso2.com> wrote:

> Hi All,
>
> In development environment, We have been using default Kubernetes API
> configuration of the Fabric8 client. But in production environment, We have
> to config those properties in cloud environment easily. The Fabric8 client
> has a object called Config and constructor has following implementation.
>
> if (!tryKubeConfig(this)) {
>
> tryServiceAccount(this);
>
> }
> configFromSysPropsOrEnvVars(this);
>
>
> According to implementation, We can define configuration as set of
> environment variables. WDYT?
>
> Thank you.
>
> --
> Best regards,
>
> *Lahiru Manohara*
> *Software Engineer*
> Mobile: +94716561576
> WSO2 Inc. | http://wso2.com
> lean.enterprise.middleware
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to