-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change env var from BACKEND_ROUTE to BACKEND_URL #260
Change env var from BACKEND_ROUTE to BACKEND_URL #260
Conversation
Welcome @mayorova! It looks like this is your first PR to 3scale-ops/saas-operator 🎉 |
@@ -123,8 +123,8 @@ func NewOptions(spec saasv1alpha1.SystemSpec) Options { | |||
BackendRedisURL: &pod.ClearTextValue{Value: spec.Config.Backend.RedisDSN}, | |||
BackendRedisSentinelHosts: &pod.ClearTextValue{Value: ""}, | |||
BackendRedisSentinelRole: &pod.ClearTextValue{Value: ""}, | |||
ApicastBackendRootEndpoint: &pod.ClearTextValue{Value: spec.Config.Backend.InternalEndpoint}, | |||
BackendRoute: &pod.ClearTextValue{Value: spec.Config.Backend.InternalEndpoint}, | |||
ApicastBackendRootEndpoint: &pod.ClearTextValue{Value: spec.Config.Backend.ExternalEndpoint}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is OK, 3scale operator also points to the public endpoint (route). The change is, in fact, just to align, with on-prem 3scale operator.
The configs for SaaS do not use this env var, they rely on BACKEND_PUBLIC_URL
instead.
(which means that maybe we could potentially drop APICAST_BACKEND_ROOT_ENDPOINT
)
30aff45
to
cf540a3
Compare
8f4beac
to
4bca9ea
Compare
/kind feature |
4bca9ea
to
2d38373
Compare
@akostadinov: changing LGTM is restricted to collaborators In response to this: Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/lgtm |
LGTM label has been added. Git tree hash: 3c2d0d76310b7b88b21a1889d45722567047f922
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: roivaz The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Align SaaS operator with the changes in porta and 3scale operator:
The changes are:
BACKEND_URL
environment variable, while still keepingBACKEND_ROUTE
to ensure smooth transition (to be deleted in future)APICAST_BACKEND_ROOT_ENDPOINT
environment variable, it is not in use bystg-saas
orpro-saas
environments.