Skip to content

Commit

Permalink
Exclude template for check
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgianaElena committed Nov 22, 2024
1 parent 6953b1c commit b92be1c
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 21 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ repos:
rev: v3.0.0
hooks:
- id: terraform-fmt
exclude: terraform/aws/projects/template.tfvars

# Prevent unencrypted files from being committed
- repo: https://github.com/yuvipanda/pre-commit-hook-ensure-sops
Expand Down
14 changes: 8 additions & 6 deletions config/clusters/templates/aws/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@ hubs: []
# Uncomment the lines below once the support infrastructure was deployed and
# you are ready to add the first cluster

# - name: <hub_name>
{% for hub in hubs %}
# - name: {{ hub }}
# # Tip: consider changing this to something more human friendly
# display_name: "{{ cluster_name }} - <hub_name>"
# domain: <hub_name>.{{ cluster_name }}.2i2c.cloud
# helm_chart: {{ hub_type }}
# display_name: "{{ cluster_name }} - {{ hub }}"
# domain: {{ hub }}.{{ cluster_name }}.2i2c.cloud
# helm_chart: basehub
# helm_chart_values_files:
# - common.values.yaml
# - <hub_name>.values.yaml
# - enc-<hub_name>.secret.values.yaml
# - {{ hub }}.values.yaml
# - enc-{{ hub }}.secret.values.yaml
{% endfor %}
29 changes: 14 additions & 15 deletions terraform/aws/projects/template.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,25 @@ cluster_nodes_location = "{{ cluster_region }}a"

enable_aws_ce_grafana_backend_iam = true

# Tip: uncomment and fill the missing info in the lines below if you want
# Tip: uncomment and verify any missing info in the lines below if you want
# to setup scratch buckets for the hubs on this cluster.
#
#user_buckets = {
# "scratch-staging" : {
# "delete_after" : 7,
# "tags" : { "2i2c:hub-name" : "staging" },
# },
# # Tip: add more scratch buckets below, if this cluster will be multi-tenant
#}

# Tip: uncomment and fill the missing info in the lines below if you want
{% for hub in hubs %}
# "scratch-{{ hub }}" : {
# "delete_after" : 7,
# "tags" : { "2i2c:hub-name" : "{{ hub }}" },
# },
{% endfor %}

# Tip: uncomment and verify any missing info in the lines below if you want
# to setup specific cloud permissions for the buckets in this cluster.
#
#hub_cloud_permissions = {
# "staging" : {
# hub_cloud_permissions = {
{% for hub in hubs %}
# "{{ hub }}" : {
# "user-sa" : {
# bucket_admin_access : ["scratch-staging"],
# bucket_admin_access : ["scratch-{{ hub }}"],
# },
# },
# # Tip: add more namespaces below, if this cluster will be multi-tenant
#}

{% endfor %}

0 comments on commit b92be1c

Please sign in to comment.