This operator project shows create a flag for the user to add the platform and the operator do actions customized when it is running in OCP and when it is running in kubernetes. See here : https://github.com/jaegertracing/jaeger-operator/blob/ed370cf4fa5559d284f885420586293cd0229c80/pkg/cmd/start/main.go#L142 |