-
Notifications
You must be signed in to change notification settings - Fork 27
Jobs that error don't have the sidecar killed by pepr #687
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
Comments
Should validate the intent here and make sure that jobs are able to retry on failure as expected. Likely will need to update the lines in question to not consider the exit code. |
5 tasks
noahpb
pushed a commit
that referenced
this issue
Sep 25, 2024
## Description Ensure Istio sidecar is killed if Job pod exits with non-zero exit status. Tested with Jobs (exit code zero and non-zero) ```yaml apiVersion: batch/v1 kind: Job metadata: name: failing-job namespace: keycloak spec: template: spec: containers: - name: fail-container image: quay.io/keycloak/keycloak:25.0.6 command: ["sh", "-c", "echo 'This will fail'; exit 1"] restartPolicy: Never backoffLimit: 3 --- apiVersion: batch/v1 kind: Job metadata: name: success-job namespace: keycloak spec: template: spec: containers: - name: succeed-container image: quay.io/keycloak/keycloak:25.0.6 command: ["sh", "-c", "echo 'This will succeed'; exit 0"] restartPolicy: Never backoffLimit: 3 ``` ## Related Issue Fixes #687 ## Type of change - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Other (security config, docs update, etc) ## Checklist before merging - [ ] Test, docs, adr added or updated as needed - [ ] [Contributor Guide](https://github.com/defenseunicorns/uds-template-capability/blob/main/CONTRIBUTING.md) followed Co-authored-by: Micah Nagel <[email protected]>
docandrew
pushed a commit
that referenced
this issue
Sep 25, 2024
## Description Ensure Istio sidecar is killed if Job pod exits with non-zero exit status. Tested with Jobs (exit code zero and non-zero) ```yaml apiVersion: batch/v1 kind: Job metadata: name: failing-job namespace: keycloak spec: template: spec: containers: - name: fail-container image: quay.io/keycloak/keycloak:25.0.6 command: ["sh", "-c", "echo 'This will fail'; exit 1"] restartPolicy: Never backoffLimit: 3 --- apiVersion: batch/v1 kind: Job metadata: name: success-job namespace: keycloak spec: template: spec: containers: - name: succeed-container image: quay.io/keycloak/keycloak:25.0.6 command: ["sh", "-c", "echo 'This will succeed'; exit 0"] restartPolicy: Never backoffLimit: 3 ``` ## Related Issue Fixes #687 ## Type of change - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Other (security config, docs update, etc) ## Checklist before merging - [ ] Test, docs, adr added or updated as needed - [ ] [Contributor Guide](https://github.com/defenseunicorns/uds-template-capability/blob/main/CONTRIBUTING.md) followed Co-authored-by: Micah Nagel <[email protected]>
UnicornChance
pushed a commit
that referenced
this issue
Sep 26, 2024
## Description Ensure Istio sidecar is killed if Job pod exits with non-zero exit status. Tested with Jobs (exit code zero and non-zero) ```yaml apiVersion: batch/v1 kind: Job metadata: name: failing-job namespace: keycloak spec: template: spec: containers: - name: fail-container image: quay.io/keycloak/keycloak:25.0.6 command: ["sh", "-c", "echo 'This will fail'; exit 1"] restartPolicy: Never backoffLimit: 3 --- apiVersion: batch/v1 kind: Job metadata: name: success-job namespace: keycloak spec: template: spec: containers: - name: succeed-container image: quay.io/keycloak/keycloak:25.0.6 command: ["sh", "-c", "echo 'This will succeed'; exit 0"] restartPolicy: Never backoffLimit: 3 ``` ## Related Issue Fixes #687 ## Type of change - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Other (security config, docs update, etc) ## Checklist before merging - [ ] Test, docs, adr added or updated as needed - [ ] [Contributor Guide](https://github.com/defenseunicorns/uds-template-capability/blob/main/CONTRIBUTING.md) followed Co-authored-by: Micah Nagel <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps to reproduce
Expected result
Pepr kills istio sidecar so that the job pod can restart/retry
Actual Result
Job pod sidecar runs forever so job never retries/eventually completes
Severity/Priority
Medium, can break automated deployments
The text was updated successfully, but these errors were encountered: