Skip to content

Commit 4c13d47

Browse files
authored
Joshd/fix mermaid inputs outputs (#37)
* fix mermaid diagram input and output names * Automated commit of npm build result and updated readme files --------- Co-authored-by: jdewinne <[email protected]>
1 parent 7f55adf commit 4c13d47

File tree

14 files changed

+103
-3
lines changed

14 files changed

+103
-3
lines changed

archive-channel/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ title: Archive Channel
66
---
77
graph LR
88
archive_channel["Archive Channel"]
9+
app_slug["app-slug"]
10+
api_token["api-token"]
11+
channel_slug["channel-slug"]
912
app_slug ---> archive_channel
1013
api_token ---> archive_channel
1114
channel_slug ---> archive_channel

archive-customer/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ title: Archive Customer
66
---
77
graph LR
88
archive_customer["Archive Customer"]
9+
api_token["api-token"]
10+
customer_id["customer-id"]
911
api_token ---> archive_customer
1012
customer_id ---> archive_customer
1113
```

create-cluster/README.md

+13
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,19 @@ title: Create Cluster
66
---
77
graph LR
88
create_cluster["Create Cluster"]
9+
api_token["api-token"]
10+
kubernetes_distribution["kubernetes-distribution"]
11+
kubernetes_version["kubernetes-version"]
12+
cluster_name["cluster-name"]
13+
ttl["ttl"]
14+
disk["disk"]
15+
nodes["nodes"]
16+
instance_type["instance-type"]
17+
timeout_minutes["timeout-minutes"]
18+
kubeconfig_path["kubeconfig-path"]
19+
export_kubeconfig["export-kubeconfig"]
20+
cluster_id["cluster-id"]
21+
cluster_kubeconfig["cluster-kubeconfig"]
922
api_token ---> create_cluster
1023
kubernetes_distribution ---> create_cluster
1124
kubernetes_version ---> create_cluster

create-customer/README.md

+12
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,18 @@ title: Create Customer
66
---
77
graph LR
88
create_customer["Create Customer"]
9+
app_slug["app-slug"]
10+
api_token["api-token"]
11+
customer_name["customer-name"]
12+
customer_email["customer-email"]
13+
license_type["license-type"]
14+
channel_slug["channel-slug"]
15+
expires_in["expires-in"]
16+
entitlements["entitlements"]
17+
is_kots_install_enabled["is-kots-install-enabled"]
18+
customer_id["customer-id"]
19+
license_id["license-id"]
20+
license_file["license-file"]
921
app_slug ---> create_customer
1022
api_token ---> create_customer
1123
customer_name ---> create_customer

create-release/README.md

+8
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ title: Replicated create release
66
---
77
graph LR
88
replicated_create_release["Replicated create release"]
9+
app_slug["app-slug"]
10+
api_token["api-token"]
11+
chart["chart"]
12+
yaml_dir["yaml-dir"]
13+
promote_channel["promote-channel"]
14+
version["version"]
15+
channel_slug["channel-slug"]
16+
release_sequence["release-sequence"]
917
app_slug ---> replicated_create_release
1018
api_token ---> replicated_create_release
1119
chart ---> replicated_create_release

docs/generate-readme/action-to-mermaid.py

+7-3
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,28 @@ def generate_mermaid(action_yaml_file):
1212
data = yaml.load(f, Loader=yaml.FullLoader)
1313

1414
# Add action node
15+
nodes = []
1516
action = Node(data['name'])
17+
nodes.append(action)
1618
# Add input nodes
1719
inputs = []
1820
if 'inputs' in data:
1921
for input_name in data['inputs']:
20-
input = Node(input_name)
22+
input = Node(input_name, input_name)
23+
nodes.append(input)
2124
inputs.append(Link(input, action))
2225

2326
# Add output nodes
2427
outputs = []
2528
if 'outputs' in data:
2629
for output_name in data['outputs']:
27-
output = Node(output_name)
30+
output = Node(output_name, output_name)
31+
nodes.append(output)
2832
outputs.append(Link(action, output))
2933

3034
chart = MermaidDiagram(
3135
title=data['name'],
32-
nodes=[action],
36+
nodes=nodes,
3337
links=inputs+outputs,
3438
orientation = 'left to right'
3539
)

get-customer-instances/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ title: Get Customer Instances
66
---
77
graph LR
88
get_customer_instances["Get Customer Instances"]
9+
app_slug["app-slug"]
10+
api_token["api-token"]
11+
matrix["matrix"]
912
app_slug ---> get_customer_instances
1013
api_token ---> get_customer_instances
1114
get_customer_instances ---> matrix

helm-install/README.md

+10
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@ title: Install a Helm chart to a cluster
66
---
77
graph LR
88
install_a_helm_chart_to_a_cluster["Install a Helm chart to a cluster"]
9+
helm_path["helm-path"]
10+
kubeconfig["kubeconfig"]
11+
registry_username["registry-username"]
12+
registry_password["registry-password"]
13+
chart["chart"]
14+
version["version"]
15+
name["name"]
16+
namespace["namespace"]
17+
values["values"]
18+
run_preflights["run-preflights"]
919
helm_path ---> install_a_helm_chart_to_a_cluster
1020
kubeconfig ---> install_a_helm_chart_to_a_cluster
1121
registry_username ---> install_a_helm_chart_to_a_cluster

kots-install/README.md

+9
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@ title: KOTS Install
66
---
77
graph LR
88
kots_install["KOTS Install"]
9+
kubeconfig["kubeconfig"]
10+
kots_version["kots-version"]
11+
app_slug["app-slug"]
12+
app_version_label["app-version-label"]
13+
shared_password["shared-password"]
14+
license_file["license-file"]
15+
config_values["config-values"]
16+
namespace["namespace"]
17+
wait_duration["wait-duration"]
918
kubeconfig ---> kots_install
1019
kots_version ---> kots_install
1120
app_slug ---> kots_install

prepare-cluster/README.md

+14
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,20 @@ title: Prepare Cluster
66
---
77
graph LR
88
prepare_cluster["Prepare Cluster"]
9+
app_slug["app-slug"]
10+
api_token["api-token"]
11+
chart["chart"]
12+
yaml_dir["yaml-dir"]
13+
kubernetes_distribution["kubernetes-distribution"]
14+
kubernetes_version["kubernetes-version"]
15+
ttl["ttl"]
16+
helm_values["helm-values"]
17+
helm_chart_name["helm-chart-name"]
18+
helm_run_preflights["helm-run-preflights"]
19+
kots_config_values["kots-config-values"]
20+
kots_wait_duration["kots-wait-duration"]
21+
cluster_id["cluster-id"]
22+
cluster_kubeconfig["cluster-kubeconfig"]
923
app_slug ---> prepare_cluster
1024
api_token ---> prepare_cluster
1125
chart ---> prepare_cluster

promote-release/README.md

+5
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ title: Promote Release
66
---
77
graph LR
88
promote_release["Promote Release"]
9+
app_slug["app-slug"]
10+
api_token["api-token"]
11+
channel_to["channel-to"]
12+
release_sequence["release-sequence"]
13+
release_version["release-version"]
914
app_slug ---> promote_release
1015
api_token ---> promote_release
1116
channel_to ---> promote_release

remove-cluster/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ title: Remove cluster
66
---
77
graph LR
88
remove_cluster["Remove cluster"]
9+
api_token["api-token"]
10+
cluster_id["cluster-id"]
911
api_token ---> remove_cluster
1012
cluster_id ---> remove_cluster
1113
```

report-compatibility-result/README.md

+7
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ title: Report Compatibility Result
66
---
77
graph LR
88
report_compatibility_result["Report Compatibility Result"]
9+
app_slug["app-slug"]
10+
api_token["api-token"]
11+
release_sequence["release-sequence"]
12+
kubernetes_distribution["kubernetes-distribution"]
13+
kubernetes_version["kubernetes-version"]
14+
success["success"]
15+
notes["notes"]
916
app_slug ---> report_compatibility_result
1017
api_token ---> report_compatibility_result
1118
release_sequence ---> report_compatibility_result

upgrade-cluster/README.md

+8
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ title: Upgrade Cluster
66
---
77
graph LR
88
upgrade_cluster["Upgrade Cluster"]
9+
api_token["api-token"]
10+
cluster_id["cluster-id"]
11+
kubernetes_version["kubernetes-version"]
12+
timeout_minutes["timeout-minutes"]
13+
kubeconfig_path["kubeconfig-path"]
14+
export_kubeconfig["export-kubeconfig"]
15+
cluster_id["cluster-id"]
16+
cluster_kubeconfig["cluster-kubeconfig"]
917
api_token ---> upgrade_cluster
1018
cluster_id ---> upgrade_cluster
1119
kubernetes_version ---> upgrade_cluster

0 commit comments

Comments
 (0)