Skip to content

Add support for disabling service links#413

Merged
taylorsilva merged 1 commit intoconcourse:masterfrom
mreiche:feature/disable-service-links
Mar 17, 2026
Merged

Add support for disabling service links#413
taylorsilva merged 1 commit intoconcourse:masterfrom
mreiche:feature/disable-service-links

Conversation

@mreiche
Copy link
Contributor

@mreiche mreiche commented Mar 12, 2026

Existing Issue

  • No issue filed

Why do we need this PR?

In some Kubernetes environments and namespaces, the concourse pods get environment variables that cannot be parsed by the entrypoint. This will result in Pod startup failures like:

error: invalid argument for flag `--postgres-port' (expected uint16): strconv.ParseUint: parsing "tcp://172.30.163.53:5432": invalid syntax

This happes in the Concourse chart, when you don't use the built-in PostgreSQL chart, but another one like:

postgresql:
  enabled: false

In this case, Kubernetes provides "invalid" environment variables.

Changes proposed in this pull request

This change allows administrators to disable service links environment variables in workload pods by setting:

enableServiceLinks: false

Contributor Checklist

  • Variables are documented in the README.md
  • Which branch are you merging into?
    • master is for changes related to the current release of the concourse/concourse:latest image and should be good to publish immediately
    • dev is for changes related to the next release of Concourse (aka unpublished code on master in concourse/concourse)

Reviewer Checklist

This section is intended for the core maintainers only, to track review progress. Please do not
fill out this section.

  • Code reviewed
  • Topgun tests run
  • Back-port if needed
  • Is the correct branch targeted? (master or dev)

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Mar 12, 2026

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: mreiche / name: Mike Reiche (ed085d7)

@taylorsilva
Copy link
Member

Thanks for the PR! Will review sometime this week

@taylorsilva taylorsilva moved this from Todo to In Progress in Pull Requests Mar 17, 2026
Copy link
Member

@taylorsilva taylorsilva left a comment

Choose a reason for hiding this comment

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

I was having trouble understanding how this conflict with service links was happening. I eventually figured out it's because of legacy "Docker Container links" that k8s supports:

Now that I understand how that's happening, I feel confident accepting this PR.

@taylorsilva taylorsilva merged commit 49cd1ec into concourse:master Mar 17, 2026
3 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Pull Requests Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants