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

hokusai review_app create implicitly forces docker tag to be review-app name. #243

Open
artsyjian opened this issue Nov 20, 2020 · 0 comments
Labels
low low importance

Comments

@artsyjian
Copy link
Contributor

$ hokusai version
0.5.12

$ hokusai review_app create --help
Usage: hokusai review_app create [OPTIONS] APP_NAME

  Creates the Kubernetes based resources defined in ./hokusai/{APP_NAME}.yml

Options:
  -v, --verbose  Verbose output
  -h, --help     Show this message and exit.

That leads one to believe that hokusai takes docker image tag from spec yml. However, in reality, the tag is hardcoded to be the app's name.

I had a use case where I wanted to use an already-existent tag that is not named after a review app. I was testing review_app commands (for k8s version update) on Force. I did not have a Force docker image locally, and due to the large image size, I did not want to build one for merely testing the create command. I just wanted to test that hokusai can spin up the deployment, whatever the tag. So I edited test-review-app.yml to specify staging as the image tag, thinking that hokusai would use that tag, but it didn't, because of the hardcoding.

I wonder what the reason is to have a tag param at all, since spec yml is required for the create command. If we maintain the param, perhaps we should expose it in the cli?

@artsyjian artsyjian added the low low importance label Apr 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
low low importance
Projects
None yet
Development

No branches or pull requests

1 participant