Skip to content

Commit

Permalink
feat: debug giteacontainer
Browse files Browse the repository at this point in the history
  • Loading branch information
ElderMatt committed Dec 12, 2023
1 parent b2ed2c2 commit 6033ec3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/operator/gitea.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ async function execGiteaCLICommand(object: k8s.V1Pod) {
const containerStatuses = object.status?.containerStatuses || []
const giteaContainer = containerStatuses.find((container) => container.name === 'gitea')
// Check if the gitea container is 'READY'
console.debug('GiteaContainer: ', giteaContainer)
if (giteaContainer && !giteaContainer.ready) {
console.debug('Gitea container is not ready: ', giteaContainer.state!)
return
Expand Down

0 comments on commit 6033ec3

Please sign in to comment.