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

resource/job: use semantic jobspec diff #356

Merged
merged 2 commits into from
Jul 26, 2023
Merged

resource/job: use semantic jobspec diff #356

merged 2 commits into from
Jul 26, 2023

Conversation

lgfa29
Copy link
Contributor

@lgfa29 lgfa29 commented Jul 26, 2023

The previous implementation of the custom jobspec diff used a naive string equality check, which can result in unnecessary plan diffs due to inconsequential changes, like comments or spaces being added/removed.

By reusing the same logic as the jobspec field diff we compare the job struct as it would be submitted to the Nomad API.

Closes #349
Closes #290

The previous implementation of the custom jobspec diff used a naive
string equality check, which can result in unnecessary plan diffs due to
inconsequential changes, like comments or spaces being added/removed.

By reusing the same logic as the `jobspec` field diff we compare the job
struct as it would be submitted to the Nomad API.
@lgfa29 lgfa29 merged commit cc2b3f9 into main Jul 26, 2023
1 of 2 checks passed
@lgfa29 lgfa29 deleted the b-fix-jobspec-diff branch July 26, 2023 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants