This repository has been archived by the owner on Mar 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ship default vals platform behavior (#205)
* ship default vals platform behavior * build * Update integration tests to use app command (#204) * ship default vals platform behavior * build
- Loading branch information
1 parent
4c85a5c
commit 39586b6
Showing
14 changed files
with
207 additions
and
55 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"v1":{"config":{"test_option":""}}} | ||
{"v1":{"config":{}}} |
47 changes: 47 additions & 0 deletions
47
integration/base/default-values/expected/.ship/release.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,47 @@ | ||
|
||
--- | ||
assets: | ||
v1: | ||
- inline: | ||
contents: | | ||
#!/bin/sh | ||
echo namespace is {{repl ConfigOption "namespace"}} | ||
echo cluster is {{repl ConfigOption "cluster"}} | ||
echo ingress controller is {{repl ConfigOption "ingress"}} | ||
echo scheduler is {{repl ConfigOption "scheduler"}} | ||
echo environment is {{repl ConfigOption "environment"}} | ||
echo pod is {{repl ConfigOption "pod"}} | ||
dest: ./scripts/echo.sh | ||
mode: 0777 | ||
|
||
config: | ||
v1: | ||
- name: default-values-bug | ||
description: information about your kubernetes cluster | ||
items: | ||
# Customer-value provided, no vendor-default: should use customer-provided value and write namespace:customer-value to `state.json` | ||
- name: namespace | ||
type: text | ||
# Customer-value provided, vendor-default provided: should use customer-provided value and write cluster:customer-value to `state.json` | ||
- name: cluster | ||
type: text | ||
default: Bravo | ||
# No customer-value, vendor-default provided: should use vendor-default and NOT render ingress to `state.json` | ||
- name: ingress | ||
type: text | ||
default: Charlie | ||
# Empty value in state.json, vendor-default: should use empty value and write scheduler:"" to state.json | ||
- name: scheduler | ||
type: text | ||
default: Delta | ||
# Vendor-supplied default == customer-supplied value: should use customer-supplied value and write environment:customer-value to `state.json` | ||
- name: environment | ||
type: text | ||
default: Epsilon | ||
# No customer-value, no vendor-default: should use <> and write pod:<> to `state.json` | ||
- name: pod | ||
type: text | ||
|
||
lifecycle: | ||
v1: | ||
- render: {} |
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 @@ | ||
{"v1":{"config":{"cluster":"Ovarb","environment":"Epsilon","namespace":"Alpha","scheduler":""}}} |
7 changes: 7 additions & 0 deletions
7
integration/base/default-values/expected/installer/scripts/echo.sh
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,7 @@ | ||
#!/bin/sh | ||
echo namespace is Alpha | ||
echo cluster is Ovarb | ||
echo ingress controller is Charlie | ||
echo scheduler is | ||
echo environment is Epsilon | ||
echo pod is |
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,47 @@ | ||
|
||
--- | ||
assets: | ||
v1: | ||
- inline: | ||
contents: | | ||
#!/bin/sh | ||
echo namespace is {{repl ConfigOption "namespace"}} | ||
echo cluster is {{repl ConfigOption "cluster"}} | ||
echo ingress controller is {{repl ConfigOption "ingress"}} | ||
echo scheduler is {{repl ConfigOption "scheduler"}} | ||
echo environment is {{repl ConfigOption "environment"}} | ||
echo pod is {{repl ConfigOption "pod"}} | ||
dest: ./scripts/echo.sh | ||
mode: 0777 | ||
|
||
config: | ||
v1: | ||
- name: default-values-bug | ||
description: information about your kubernetes cluster | ||
items: | ||
# Customer-value provided, no vendor-default: should use customer-provided value and write namespace:customer-value to `state.json` | ||
- name: namespace | ||
type: text | ||
# Customer-value provided, vendor-default provided: should use customer-provided value and write cluster:customer-value to `state.json` | ||
- name: cluster | ||
type: text | ||
default: Bravo | ||
# No customer-value, vendor-default provided: should use vendor-default and NOT render ingress to `state.json` | ||
- name: ingress | ||
type: text | ||
default: Charlie | ||
# Empty value in state.json, vendor-default: should use empty value and write scheduler:"" to state.json | ||
- name: scheduler | ||
type: text | ||
default: Delta | ||
# Vendor-supplied default == customer-supplied value: should use customer-supplied value and write environment:customer-value to `state.json` | ||
- name: environment | ||
type: text | ||
default: Epsilon | ||
# No customer-value, no vendor-default: should use <> and write pod:<> to `state.json` | ||
- name: pod | ||
type: text | ||
|
||
lifecycle: | ||
v1: | ||
- render: {} |
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 @@ | ||
{"v1":{"config":{"cluster":"Ovarb","environment":"Epsilon","namespace":"Alpha","scheduler":""}}} |
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 @@ | ||
customer_id: "-Am-_6i5pw0u4AbspOwKN4lZUCn49u_G" | ||
installation_id: "PYRBRKHcTSbMPFJqz3a_82p_kR00DPdz" | ||
release_version: "0.1.4" |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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