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

Add support for custom job service names #4181

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Sovietaced
Copy link
Contributor

@Sovietaced Sovietaced commented Feb 3, 2025

Fixes #4171

This pull request adds a fix for #4171 and includes a feature flag to enable the new features (defaults to false). It includes an update to the ServiceConfig message that allows for an optional service name to be configured.

As the PR currently sits, service name conflicts result in a recoverable error from the executor. I'm happy to change this but the error is plumbed to the user so I feel the user experience is ok and theoretically this could be a recoverable situation.

Screenshot 2025-02-03 at 4 50 16 PM

Signed-off-by: Jason Parraga <sovietaced@gmail.com>
Signed-off-by: Jason Parraga <sovietaced@gmail.com>
…tom names

Signed-off-by: Jason Parraga <sovietaced@gmail.com>
Signed-off-by: Jason Parraga <sovietaced@gmail.com>
Signed-off-by: Jason Parraga <sovietaced@gmail.com>
@Sovietaced Sovietaced marked this pull request as ready for review February 4, 2025 01:00
@Sovietaced Sovietaced changed the title Add support for custom server names Add support for custom job service names Feb 6, 2025
@@ -4,6 +4,8 @@ import (
"math"
"testing"

"github.com/armadaproject/armada/internal/server/configuration"
Copy link
Collaborator

Choose a reason for hiding this comment

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

this needs to be in the block with the armada imports at the bottom (annoyingly linting isn't intellligent enough to fix/catch this)

@@ -41,6 +41,7 @@ message IngressConfig {
message ServiceConfig {
ServiceType type = 1;
repeated uint32 ports = 2;
string name = 3;
Copy link
Collaborator

Choose a reason for hiding this comment

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

lets put a comment saying what this does and what the behaviour is if you don't set it.

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.

Make service name configurable during job submission
2 participants