Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Nomad runner install CPU and memory flags #4798

Merged
merged 1 commit into from Jun 12, 2023

Conversation

paladin-devops
Copy link
Contributor

The Nomad runner install configuration has fields for CPU and memory, but no flags for the user to set them - this PR adds those flags. This fix stems from a discussion on HashiCorp Discuss, where a user installing a runner had insufficient resources on their Nomad client to run the runner, and I realized I could not suggest setting lower memory or CPU on the runner because there were no CLI flags to support it.


set.StringVar(&flag.StringVar{
Name: "nomad-runner-memory",
Target: &i.Config.RunnerResourcesMemory,
Copy link
Member

Choose a reason for hiding this comment

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

Weird, did we accidentally delete these install flags or something? Looks like the target var already existed.

@paladin-devops paladin-devops merged commit a9207d0 into main Jun 12, 2023
45 checks passed
@paladin-devops paladin-devops deleted the b-nomad-runner-install-resource-cli-flags branch June 12, 2023 16:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants