Skip to content

[OCTRL-1091] OCC_CONTROL_PORT removal from TaskTemplate CRDs#841

Open
justonedev1 wants to merge 1 commit into
masterfrom
env_occ_control_port
Open

[OCTRL-1091] OCC_CONTROL_PORT removal from TaskTemplate CRDs#841
justonedev1 wants to merge 1 commit into
masterfrom
env_occ_control_port

Conversation

@justonedev1

Copy link
Copy Markdown
Collaborator

Core provides OCC_CONTROL_PORT variable only for Mesos tasks, where it is generated by Mesos. However, TaskTemplate CRD needed this variable to be filled in by during usage by TaskReference. So I moved the OCC_CONTROL_PORT setup directly into the TaskTemplate CRD to not rely on core at all. This approach is ok, because when we have non-host networking for containers we can basically setup any port because those would not clash thanks to k8s internal networking. But for now we manually setup unique ports in each TaskTemplate because we use host network.

…mplate

The reason for the removal is that ECS can assign OCC_CONTROL_PORT only
for mesos tasks, thus the removal here. The variable is now set inside
the TaskTemplates. Ability to overwrite EnvVars from TaskReference CRDs
was also added
@justonedev1
justonedev1 requested a review from knopers8 as a code owner July 17, 2026 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant