acorn-io / runtime

A simple application deployment framework built on Kubernetes
https://docs.acorn.io/
Apache License 2.0
1.13k stars 100 forks source link

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

Open sangee2004 opened 10 months ago

sangee2004 commented 10 months ago

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
    }
    }
  3. 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.