github.com/replicatedhq/ship@v0.55.0/pkg/lifecycle/render/config/resolve/test-cases/api/nested-references-with-input.yml (about) 1 ## this has three options, charlie depends on bravo depends on alpha where bravo is hidden 2 ## charlie should have the same value as alpha 3 ## an input for alpha is provided 4 5 - name: Refrencing hidden const templated config items with input 6 input: 7 - {alpha: "a test input"} 8 config: 9 - name: alpha_group 10 description: Alpha Group 11 items: 12 - name: alpha 13 title: Alpha Value 14 type: text 15 default: "hello world" 16 17 - name: bravo 18 type: text 19 hidden: true 20 readonly: true 21 value: '{{repl ConfigOption "alpha"}}' 22 23 - name: charlie 24 title: Charlie Value 25 type: text 26 readonly: true 27 value: '{{repl ConfigOption "bravo"}}' 28 29 responses: 30 json: | 31 [ 32 { 33 "description": "Alpha Group", 34 "filters": null, 35 "items": [ 36 { 37 "affix": "", 38 "data_cmd": null, 39 "default": "hello world", 40 "default_cmd": null, 41 "filters": null, 42 "help_text": "", 43 "hidden": false, 44 "is_excluded_from_support": false, 45 "items": null, 46 "multi_value": null, 47 "multiple": false, 48 "name": "alpha", 49 "props": null, 50 "readonly": false, 51 "recommended": false, 52 "required": false, 53 "test_proc": null, 54 "title": "Alpha Value", 55 "type": "text", 56 "value": "a test input", 57 "value_cmd": null, 58 "when": "" 59 }, 60 { 61 "affix": "", 62 "data_cmd": null, 63 "default": "", 64 "default_cmd": null, 65 "filters": null, 66 "help_text": "", 67 "hidden": true, 68 "is_excluded_from_support": false, 69 "items": null, 70 "multi_value": null, 71 "multiple": false, 72 "name": "bravo", 73 "props": null, 74 "readonly": true, 75 "recommended": false, 76 "required": false, 77 "test_proc": null, 78 "title": "", 79 "type": "text", 80 "value": "a test input", 81 "value_cmd": null, 82 "when": "" 83 }, 84 { 85 "affix": "", 86 "data_cmd": null, 87 "default": "", 88 "default_cmd": null, 89 "filters": null, 90 "help_text": "", 91 "hidden": false, 92 "is_excluded_from_support": false, 93 "items": null, 94 "multi_value": null, 95 "multiple": false, 96 "name": "charlie", 97 "props": null, 98 "readonly": true, 99 "recommended": false, 100 "required": false, 101 "test_proc": null, 102 "title": "Charlie Value", 103 "type": "text", 104 "value": "a test input", 105 "value_cmd": null, 106 "when": "" 107 } 108 ], 109 "name": "alpha_group", 110 "test_proc": null, 111 "title": "", 112 "when": "" 113 } 114 ]