Skip to content
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

Disable serviceLinks #3742

Closed
wants to merge 1 commit into from
Closed

Disable serviceLinks #3742

wants to merge 1 commit into from

Conversation

uthark
Copy link
Contributor

@uthark uthark commented Mar 5, 2020

To not pollute env of the containers, disable serviceLinks by default.
If the deployment explicitly has it, keep as is.

Some back story:

Risks

  • Med - changing default behavior might break existing deployments that rely on it.

@uthark uthark requested a review from a team as a code owner March 5, 2020 01:25
@magnetikonline
Copy link
Contributor

I approve @uthark - but just wondering could this break someone's current workflow/deployment I wonder?

If it does, I would strongly advise the owners of the project in the question to avoid using these env vars - but still, might be a breaking change?

@grosser
Copy link
Contributor

grosser commented Mar 5, 2020

yeah, please update risks ... sounds like we have to first find out who uses this to disable or only turn on in staging somehow

@uthark
Copy link
Contributor Author

uthark commented Mar 5, 2020

It might break, so we need to announce the change and ask people to explicitly set the flag if they rely on this behavior.

@magnetikonline
Copy link
Contributor

Turning on in staging sounds like a good idea no? It should shake out any deployments that fail - of course you need to deploy them first to find out! The vars do have a fairly predictable pattern - could grep GitHub?

DB_NAME=/web2/db
DB_PORT=tcp://172.17.0.5:5432
DB_PORT_5432_TCP=tcp://172.17.0.5:5432
DB_PORT_5432_TCP_PROTO=tcp
DB_PORT_5432_TCP_PORT=5432
DB_PORT_5432_TCP_ADDR=172.17.0.5

@grosser
Copy link
Contributor

grosser commented Mar 5, 2020 via email

@@ -267,6 +269,11 @@ def set_history_limit
template[:spec][:revisionHistoryLimit] ||= 1
end

# disable service links.
def set_disable_service_links
template[:spec][:template][:spec][:enableServiceLinks] ||= false
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should set that on pod_templates for consistency, not only Deployments, use pod_template

@grosser grosser closed this Mar 15, 2020
@grosser grosser deleted the oatamanenko/service branch March 15, 2020 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants