-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
load tile_name variable from bake configuration
Co-authored-by: Ramkumar Vengadakrishnan <ramkumar.vengadakrishnan@broadcom.com>
- Loading branch information
Showing
12 changed files
with
156 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
internal/acceptance/workflows/testdata/tiles/multiple-tile-names/Kilnfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
bake_configurations: | ||
- tile_name: hello | ||
metadata_filepath: product_template.yml | ||
variables_filepaths: | ||
- variables/hello.yml | ||
icon_filepath: "gopher.png" | ||
instance_groups_directories: | ||
- job_types | ||
properties_directories: | ||
- configuration | ||
- tile_name: goodbye | ||
metadata_filepath: product_template.yml | ||
variables_filepaths: | ||
- variables/goodbye.yml | ||
icon_filepath: "gopher.png" | ||
instance_groups_directories: | ||
- job_types | ||
properties_directories: | ||
- configuration |
3 changes: 3 additions & 0 deletions
3
internal/acceptance/workflows/testdata/tiles/multiple-tile-names/Kilnfile.lock
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
stemcell_criteria: | ||
os: ubuntu-jammy | ||
version: "1.329" |
5 changes: 5 additions & 0 deletions
5
...rnal/acceptance/workflows/testdata/tiles/multiple-tile-names/configuration/networking.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
- name: port | ||
type: port | ||
configurable: true | ||
default: 8080 |
Binary file added
BIN
+61.4 KB
internal/acceptance/workflows/testdata/tiles/multiple-tile-names/gopher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
55 changes: 55 additions & 0 deletions
55
internal/acceptance/workflows/testdata/tiles/multiple-tile-names/job_types/hello.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: hello-server | ||
label: Server | ||
resource_label: Server | ||
description: HTTP Server | ||
|
||
templates: [] | ||
|
||
static_ip: 1 | ||
dynamic_ip: 0 | ||
|
||
max_in_flight: 1 | ||
single_az_only: true | ||
|
||
instance_definition: | ||
name: instances | ||
type: integer | ||
label: Instances | ||
configurable: true | ||
default: 1 | ||
constraints: | ||
min: 0 | ||
max: 1 | ||
|
||
resource_definitions: | ||
- name: ram | ||
type: integer | ||
label: RAM | ||
configurable: true | ||
default: 1024 | ||
constraints: | ||
min: 1024 | ||
|
||
- name: ephemeral_disk | ||
type: integer | ||
label: Ephemeral Disk | ||
configurable: true | ||
default: 4000 | ||
constraints: | ||
min: 2000 | ||
|
||
- name: persistent_disk | ||
type: integer | ||
label: Persistent Disk | ||
configurable: false | ||
default: 4000 | ||
constraints: | ||
min: 2000 | ||
|
||
- name: cpu | ||
type: integer | ||
label: CPU | ||
configurable: true | ||
default: 1 | ||
constraints: | ||
min: 1 |
29 changes: 29 additions & 0 deletions
29
internal/acceptance/workflows/testdata/tiles/multiple-tile-names/product_template.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
name: $( variable "tile_name" ) | ||
label: "some label" | ||
description: "some description" | ||
icon_image: $( icon ) | ||
|
||
metadata_version: "2.7.0" | ||
minimum_version_for_upgrade: 0.1.0 | ||
product_version: $( version ) | ||
provides_product_versions: | ||
- name: hello | ||
version: $( version ) | ||
|
||
rank: 90 | ||
serial: false | ||
|
||
releases: [] | ||
|
||
stemcell_criteria: $( stemcell ) | ||
|
||
job_types: | ||
- $( instance_group "hello-server" ) | ||
|
||
runtime_configs: [] | ||
|
||
property_blueprints: | ||
- $( property "port" ) | ||
|
||
form_types: [] |
2 changes: 2 additions & 0 deletions
2
internal/acceptance/workflows/testdata/tiles/multiple-tile-names/variables/goodbye.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
label: "goodbye" | ||
description: "some description" |
2 changes: 2 additions & 0 deletions
2
internal/acceptance/workflows/testdata/tiles/multiple-tile-names/variables/hello.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
label: "hello" | ||
description: "some description" |
1 change: 1 addition & 0 deletions
1
internal/acceptance/workflows/testdata/tiles/multiple-tile-names/version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1.2.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters