Skip to content

Commit

Permalink
refactoring cluster name nuki logic
Browse files Browse the repository at this point in the history
  • Loading branch information
robcxyz committed Aug 11, 2020
1 parent c80b27c commit 494e132
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 41 deletions.
5 changes: 5 additions & 0 deletions polkadot/api/aws/nuki.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ region:
type: stat
input: "{{ nuki.aws_region }}"

cluster_name:
type: input
message: What do you want to call your cluster?
default: "{{nuki.namespace}}-{{nuki.environment}}-{{nuki.region}}"

k8s_enabled:
type: confirm
message: Do you want to use kubernetes?
Expand Down
5 changes: 5 additions & 0 deletions polkadot/api/azure/nuki.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ region:
type: stat
input: "{{ nuki.azure_region }}"

cluster_name:
type: input
message: What do you want to call your cluster?
default: "{{nuki.namespace}}-{{nuki.environment}}-{{nuki.region}}"

# Network
network_:
type: nukikata
Expand Down
5 changes: 5 additions & 0 deletions polkadot/api/do/nuki.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ region:
type: stat
input: "{{ nuki.aws_region }}"

cluster_name:
type: input
message: What do you want to call your cluster?
default: "{{nuki.namespace}}-{{nuki.environment}}-{{nuki.region}}"

# Network
network_:
type: nukikata
Expand Down
36 changes: 0 additions & 36 deletions polkadot/api/do/test/do_test.go

This file was deleted.

5 changes: 5 additions & 0 deletions polkadot/api/gcp/nuki.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ region:
message: Which GCP region?
choices: "{{ nuki.gcp_regions_options_ }}"

cluster_name:
type: input
message: What do you want to call your cluster?
default: "{{nuki.namespace}}-{{nuki.environment}}-{{nuki.region}}"

available_azs_:
type: gcp_azs
region: "{{ nuki.region }}"
Expand Down
5 changes: 0 additions & 5 deletions polkadot/api/nuki.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ secrets_read_:
context_file: "{{ nuki.scripts_dir_ }}/secrets.yaml"
existing_context: "{{ nuki }}"

cluster_name:
type: input
message: What do you want to call your cluster?
default: "{{nuki.namespace}}-{{nuki.environment}}-{{nuki.region}}"

# Regions
## Aws
aws_provider:
Expand Down

0 comments on commit 494e132

Please sign in to comment.