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

Return err if db-migration fails #318

Merged
merged 1 commit into from
Sep 9, 2021

Conversation

vinamra28
Copy link
Member

Changes

Earlier db-migration does not returns with error code if it fails and thus
we had to check the logs for the failure. With this PR if the migration
fails it will return an exit code and thus the job will fail.

Also updated the Deployment docs and also fixed some formatting of the
docs.

Signed-off-by: vinamra28 vinjain@redhat.com

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

  • Includes tests (if functionality changed/added)
  • Run API Unit Tests, Lint Checks, API Design, Golden Files with make api-check
  • Run UI Unit Tests, Lint Checks with make ui-check
  • Commit messages follow commit message best practices

See the contribution guide for more details.

@tekton-robot tekton-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Sep 6, 2021
@@ -122,23 +126,26 @@ db-migration-8vhpd 0/1 Completed 0 17s

You can also check the logs using `kubectl logs -n tekton-hub db-migration-8vhpd`
Copy link
Member

Choose a reason for hiding this comment

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

I think we can delete this line now

$ kubectl get pods -n tekton-hub
NAME READY STATUS RESTARTS AGE
db-589d44fdd5-ksf8v 1/1 Running 0 50s
db-migration-8vhpd 0/1 Error 0 17s
Copy link
Member Author

Choose a reason for hiding this comment

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

@PuneetPunamiya
Copy link
Member

/approve

@tekton-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: PuneetPunamiya

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 6, 2021
Earlier db-migration does not returns with error code if it fails and thus
we had to check the logs for the failure. With this PR if the migration
fails it will return an exit code and thus the job will fail.

Also updated the Deployment docs and also fixed some formatting of the
docs.

Signed-off-by: vinamra28 <vinjain@redhat.com>
@pratap0007
Copy link
Contributor

lgtm

@piyush-garg
Copy link
Contributor

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 9, 2021
@tekton-robot tekton-robot merged commit 537db4c into tektoncd:main Sep 9, 2021
@vinamra28 vinamra28 deleted the deployment-cleanup branch September 9, 2021 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants