uffizzi
uffizzi copied to clipboard
Issues with deployment in failed state
- Connect uffizzitest docker hub account
- Create preview from compose file
uffizzi preview create compose.yml
. File contains a mistake: The image from compose file does not exist in the docker hub.
services:
webhooks_test_app:
image: uffizzitest/aaaa-webhooks-test-app:latest
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
x-uffizzi-ingress:
service: webhooks_test_app
port: 80
x-uffizzi-continuous-preview:
delete_preview_after: 1h
delete_preview_when_image_tag_is_updated: true
deploy_preview_when_image_tag_is_created: true
Result 1. Deployment failed Error
Deployment Not Found
Expected Result: Show message Deployment Failed
- Run
uffizzi preview update deployment-NUMBER test-compose/compose.ym
Result 2. Deployment cannot be updated. Error:
undefined method `kind' for nil:NilClass
Expected result: We need to update the failed deployment and if it fails again - show Deployment failed
message
To reproduce the error:
- Connect to
uffizzi_cli
- Create preview from compose file
bundle exec uffizzi preview create compose.yml
Example file:
services:
webhooks_test_app:
image: uffizzitest/aaaa-webhooks-test-app:latest
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
x-uffizzi-ingress:
service: webhooks_test_app
port: 80
x-uffizzi-continuous-preview:
delete_preview_after: 1h
delete_preview_when_image_tag_is_updated: true
deploy_preview_when_image_tag_is_created: true
- Because the image in the
compose.yml
is invalid, this will return the messageDeployment failed
TESTED on prod:
Issures was created: https://github.com/UffizziCloud/uffizzi_app/issues/255 https://github.com/UffizziCloud/uffizzi_app/issues/243 https://github.com/UffizziCloud/uffizzi_platform/issues/240