Repository navigation
Dipowell/crud jobs v2 #1202
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
Merged
Merged
Dipowell/crud jobs v2 #1202
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
bf14cd9
feat: add job workload template
diamondpowell de35c28
feat: add job workload support to NodePoolCRUD
diamondpowell 3afff9b
feat: add job condition checking to KubernetesClient
diamondpowell 7cc2901
feat: wire job command through CLI
diamondpowell 8296f5e
feat: wire job step into CRUD pipeline
diamondpowell 18fce22
test: add unit tests for job workload
diamondpowell 6683a74
test: add unit tests for job condition checking
diamondpowell cb8c3ad
test: configure pipeline test for job validation
diamondpowell 074f895
fix: add Job kind support to manifest apply/update/delete
diamondpowell d04eb4b
revert: restore pipeline test placeholder after validation
diamondpowell 48c6e66
Address Copilot review: delete jobs before recreate, remove eager fai…
diamondpowell a3e1832
refactor(crud): use workload_common_parser for job subcommand
diamondpowell ac4d91b
refactor(k8s): share condition logic between wait_for_job_completed a…
diamondpowell 119d8c4
test: update wait_for_job_completed tests for refactored condition logic
diamondpowell 85eeda3
refactor(k8s): remove misleading debug logs from condition check func…
diamondpowell File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| apiVersion: batch/v1 | ||
| kind: Job | ||
| metadata: | ||
| name: myapp-{{NODE_POOL_NAME}}-{{INDEX}} | ||
|
diamondpowell marked this conversation as resolved.
Resolved
|
||
| labels: | ||
| app: {{LABEL_VALUE}} | ||
| spec: | ||
| completions: {{JOB_COMPLETIONS}} | ||
| template: | ||
| metadata: | ||
| labels: | ||
| app: {{LABEL_VALUE}} | ||
| spec: | ||
| restartPolicy: Never | ||
| containers: | ||
| - name: {{LABEL_VALUE}} | ||
| image: mcr.microsoft.com/oss/nginx/nginx:1.21.6 | ||
| command: ["nginx", "-t"] | ||
| ports: | ||
| - containerPort: 80 | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.