acorn-io / runtime

A simple application deployment framework built on Kubernetes

Home Page:https://docs.acorn.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Should be able to expose default values with which app gets deployed in `acorn edit` editor.

sangee2004 opened this issue · comments

acorn version - v0.9.2-28-ga822ff9d+a822ff9d

Steps to reproduce the problem:

  1. Have a cluster level default compute class
  2. Deploy app with following Acornfile without passing any values to "--region" and "compute-class"
args: {
	newtext: "hello"
	number:  1
	decimal: 1.1
}
containers: {
	mywebnew: {
		name:  "testweb1"
		image: "nginx"
		scale: 1
		ports: publish: "80/http"
		files: {
			"/usr/share/nginx/html/index.html": args.newtext
			"/usr/share/nginx/html/test.html":  "modified"
			"/usr/share/nginx/html/test1.html": "\(args.decimal)"
		}
                memory: 256Mi
	}
}
  1. acorn edit <app-name> presents only image info in the editor
    image: "bd8c72f919a741cec4163b8aefcfd37e2e382381aac657937e6067f7eb3bcf8c"

Expected Behavior:

  1. We should be able to present details relating to default "region" and "compute-class" that was picked for app deployment.
  2. We should also be able to present details relating to default args with which app was deployed.