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

Deploy to ephemeral env in pr_check #791

Merged

Conversation

bmclaughlin
Copy link
Contributor

@bmclaughlin bmclaughlin commented Jun 2, 2021

Draft PR until #776, #786 are merged. Merged.

Issue: AAH-582

@bmclaughlin bmclaughlin requested a review from cutwater June 2, 2021 20:40
@bmclaughlin bmclaughlin marked this pull request as ready for review June 3, 2021 14:49
@bmclaughlin bmclaughlin force-pushed the deploy-to-ephemeral-environment branch from a763d57 to c7c62f1 Compare June 3, 2021 14:53
@bmclaughlin bmclaughlin force-pushed the deploy-to-ephemeral-environment branch from c7c62f1 to dace112 Compare June 3, 2021 18:03
@alikins
Copy link
Contributor

alikins commented Jun 4, 2021

Looks ok to me, assuming $CICD_ROOT/deploy_ephemeral_env.sh exists.

But I know nothing of clowder, so not a review.

namespace: automation-hub
spec:
# The name of the ClowdEnvironment providing the services
envName: automation-hub-env
Copy link

Choose a reason for hiding this comment

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

you may want to use ${ENV_NAME} for the value and add a parameter ENV_NAME which will be assigned by e.g. the prod env value here https://gitlab.cee.redhat.com/service/app-interface/blob/master/data/products/insights/environments/production.yml#L53

deployments:
- name: galaxy-api
podSpec:
image: quay.io/cloudservices/automation-hub-galaxy-ng
Copy link

Choose a reason for hiding this comment

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

You would want to parameterized the image tag e.g.
image: quay.io/cloudservices/automation-hub-galaxy-ng:${IMAGE_TAG}

name: automation-hub
version: 12
# Creates a Service on port 8000
webServices:
Copy link

Choose a reason for hiding this comment

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

@bmclaughlin bmclaughlin force-pushed the deploy-to-ephemeral-environment branch from d81f707 to adec54f Compare June 4, 2021 21:41
@bmclaughlin bmclaughlin force-pushed the deploy-to-ephemeral-environment branch from adec54f to c56405e Compare June 4, 2021 21:47
Copy link

@jameswnl jameswnl left a comment

Choose a reason for hiding this comment

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

This is good to go.

Will need to implement health check probes in the api code in a fellowup PR.

@bmclaughlin bmclaughlin merged commit 0db3075 into ansible:master Jun 8, 2021
@bmclaughlin bmclaughlin deleted the deploy-to-ephemeral-environment branch June 8, 2021 13:46
cutwater pushed a commit to cutwater/galaxy_ng that referenced this pull request Jul 7, 2021
* Deploy Automation Hub to ephemeral environments.
* Correct clowd-app template in order to deploy to ephemeral env
* Parameterize ENV_NAME, IMAGE_NAME, IMAGE_TAG
* Move webServices key under galaxy-api deployment
Issue: AAH-582

(cherry picked from commit 5998f2a62c720e311a77248a9814bb67331cf2ea)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants