Following some notes regards some tests in order to Progress:
h4. Regards get the cluster IP and protocol by ks8 client-go automatically :
The following works when the project is executed with the command "make run-local" but not when the operator is deployed by the image, using the command "make create-all" the IP returned is not the master one.
{code:java} func getClusterProtocol() string { cfg, _:= config.GetConfig() cfgHost := cfg.Host cfgHost = strings.Replace(cfgHost, "//", "", 2) host := strings.Split(cfgHost, ":")
return host[0] }
func getHostIP() string { cfg, _:= config.GetConfig() cfgHost := cfg.Host cfgHost = strings.Replace(cfgHost, "//", "", 2) host := strings.Split(cfgHost, ":")
return host[1] }
{code} h4. Regards check the ingress used in other operators to expose the service. * The Etcd is passing the domain as it is done now. See [here|https://github.com/giantswarm/test-operator/blob/8c1c37cc78faa8c809d1c62992efd49fa54d68bf/service/controller/v4/resource/ingress/etcd_ingress.go#L39]
|
|