Skip to content

Commit

Permalink
Merge pull request #92 from Quansight/lineformatting
Browse files Browse the repository at this point in the history
Lineformatting
  • Loading branch information
prasunanand authored Sep 28, 2020
2 parents 8c13b3d + ddd7c5e commit 502661a
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 19 deletions.
2 changes: 1 addition & 1 deletion qhub/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.15
0.1.16
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ jobs:
tf_actions_subcommand: 'plan'
tf_actions_working_dir: 'infrastructure'
tf_actions_comment: true
{% if cookiecutter.prefect is defined %}
{%- if cookiecutter.prefect is defined %}
{% raw %}
args: '-var="prefect_token=${{ secrets.PREFECT_TOKEN }}"'
{% endraw %}
{% endif %}
{%- endif %}
Original file line number Diff line number Diff line change
Expand Up @@ -69,20 +69,20 @@ jobs:
tf_actions_subcommand: 'plan'
tf_actions_working_dir: 'infrastructure'
tf_actions_comment: true
{% if cookiecutter.prefect is defined %}
{%- if cookiecutter.prefect is defined %}
{% raw %}
args: '-var="prefect_token=${{ secrets.PREFECT_TOKEN }}"'
{% endraw %}
{% endif %}
{%- endif %}
- name: 'Terraform Apply'
uses: hashicorp/terraform-github-actions@master
with:
tf_actions_version: 0.12.24
tf_actions_subcommand: 'apply'
tf_actions_working_dir: 'infrastructure'
tf_actions_comment: true
{% if cookiecutter.prefect is defined %}
{%- if cookiecutter.prefect is defined %}
{% raw %}
args: '-var="prefect_token=${{ secrets.PREFECT_TOKEN }}"'
{% endraw %}
{%- endraw %}
{% endif %}
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ module "kubernetes" {
availability_zones = var.availability_zones

additional_node_group_roles = [
"roles/storage.objectViewer"
"roles/storage.objectViewer",
"roles/storage.admin"
]

additional_node_group_oauth_scopes = [
"https://www.googleapis.com/auth/devstorage.read_only"
"https://www.googleapis.com/auth/cloud-platform"
]

node_groups = [
Expand All @@ -33,19 +34,19 @@ module "kubernetes" {
instance_type = "{{ nodegroup_config.instance }}"
min_size = {{ nodegroup_config.min_nodes }}
max_size = {{ nodegroup_config.max_nodes }}
{% if "preemptible" in nodegroup_config %}
{%- if "preemptible" in nodegroup_config %}
preemptible = {{ "true" if nodegroup_config.preemptible else "false" }}
{% endif %}
{% if nodegroup.guest_accelerators is defined %}
{%- endif %}
{%- if nodegroup.guest_accelerators is defined %}
guest_accelerators = [
{% for accelerator in nodegroup_config.guest_accelerators %}
{
type = "{{ accelerator.name }}"
count = {{ accelerator.count }}
}
{
type = "{{ accelerator.name }}"
count = {{ accelerator.count }}
}
{% endfor %}
]
{% endif %}
{%- endif %}
},
{% endfor %}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ variable "dask-worker-image" {
}
}

{% if cookiecutter.prefect is defined %}
{%- if cookiecutter.prefect is defined %}
variable "prefect_token" {
type = string
}
{% endif %}
{%- endif %}

0 comments on commit 502661a

Please sign in to comment.