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 endpoint to get Singularity config values #2199

Merged
merged 6 commits into from
Apr 9, 2021

Conversation

rosalind210
Copy link
Contributor

@rosalind210 rosalind210 commented Apr 8, 2021

This PR exposes Singularity's maxDecommissioningAgents, defined in the config file.

@rosalind210 rosalind210 changed the title Add endpoint to get max decommissioning agent Add endpoint to get Singularity config vlaues Apr 9, 2021
@rosalind210 rosalind210 changed the title Add endpoint to get Singularity config vlaues Add endpoint to get Singularity config values Apr 9, 2021
}

@GET
@Path("/singularity-limits-format")
Copy link
Contributor

Choose a reason for hiding this comment

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

Nitpick — can we change this to just /singularity-limits?

Comment on lines 6 to 8
public SingularityLimits(int maxDecommissioningAgents) {
this.maxDecommissioningAgents = maxDecommissioningAgents;
}
Copy link
Member

Choose a reason for hiding this comment

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

Since we don't have immutables set up in Singularity, this needs a @JsonCreator annotation on the constructor and @JsonProperty("maxDecommissioningAgents")` on the field. See other things in the Base module for examples

@pschoenfelder
Copy link
Contributor

🚢

@pschoenfelder
Copy link
Contributor

🚢

@rosalind210 rosalind210 merged commit e02ea51 into master Apr 9, 2021
@rosalind210 rosalind210 deleted the expose_config_decom_max branch April 9, 2021 20:44
@ssalinas ssalinas added this to the 1.5.0 milestone May 4, 2022
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.

None yet

3 participants