Skip to content

Commit ea0b78f

Browse files
authored
Merge pull request #302 from sassoftware/staging
6.4.0 - March 30, 2023
2 parents 3999569 + 597d520 commit ea0b78f

36 files changed

+647
-239
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ARG TERRAFORM_VERSION=1.0.0
2-
ARG AZURECLI_VERSION=2.24.2
2+
ARG AZURECLI_VERSION=2.45.0
33

44
FROM hashicorp/terraform:$TERRAFORM_VERSION as terraform
55
FROM mcr.microsoft.com/azure-cli:$AZURECLI_VERSION

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Access to an **Azure Subscription** and an [**Identity**](./docs/user/TerraformA
6060
- [Terraform](https://www.terraform.io/downloads.html) - v1.0.0
6161
- [kubectl](https://kubernetes.io/docs/tasks/tools/install-kubectl) - v1.24
6262
- [jq](https://stedolan.github.io/jq/) - v1.6
63-
- [Azure CLI](https://docs.microsoft.com/en-us/cli/azure) - (optional - useful as an alternative to the Azure Portal) - v2.24.2
63+
- [Azure CLI](https://docs.microsoft.com/en-us/cli/azure) - (optional - useful as an alternative to the Azure Portal) - v2.45.0
6464

6565
#### Docker Requirements:
6666
- [Docker](https://docs.docker.com/get-docker/)

container-structure-test.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright © 2020-2023, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
14
schemaVersion: "2.0.0"
25

36
fileExistenceTests:
@@ -26,7 +29,7 @@ commandTests:
2629
- -c
2730
- |
2831
az version -o tsv
29-
expectedOutput: ["2.24.2\t2.24.2\t1.0.6"]
32+
expectedOutput: ["2.45.0\t2.45.0\t1.0.8"]
3033

3134
metadataTest:
3235
workdir: "/viya4-iac-azure"

docker-entrypoint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#!/usr/bin/env bash
2+
3+
# Copyright © 2020-2023, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
4+
# SPDX-License-Identifier: Apache-2.0
5+
26
set -e
37

48
# setup container user

docs/CONFIG-VARS.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ You can use `default_public_access_cidrs` to set a default range for all created
8383
| :--- | ---: | ---: | ---: | :--- |
8484
| vnet_address_space | Address space for created vnet | string | "192.168.0.0/16" | This variable is ignored when vnet_name is set (AKA bring your own vnet). |
8585
| subnets | Subnets to be created and their settings | map(object) | *check below* | This variable is ignored when subnet_names is set (AKA bring your own subnets). All defined subnets must exist within the vnet address space. |
86-
| cluster_egress_type | The outbound (egress) routing method to be used for this Kubernetes Cluster | string | "loadBalancer" | Possible values: <ul><li>`loadBalancer`<li>`userDefinedRouting`</ul> By default, AKS will create and use a [loadbalancer](https://docs.microsoft.com/en-us/azure/aks/load-balancer-standard) for outgoing connections.<p>Set to `userDefinedRouting` when using your own network [egress](https://docs.microsoft.com/en-us/azure/aks/egress-outboundtype). |
86+
| cluster_egress_type | The outbound (egress) routing method to be used for this Kubernetes Cluster | string | "loadBalancer" | Possible values: <ul><li>`loadBalancer`<li>`userDefinedRouting`</ul> By default, AKS will create and use a [loadbalancer](https://docs.microsoft.com/en-us/azure/aks/load-balancer-standard) for outgoing connections.<p>Set to `userDefinedRouting` when using your own network [egress](https://docs.microsoft.com/en-us/azure/aks/egress-outboundtype).|
87+
| aks_network_plugin | Network plugin to use for networking. Currently supported values are `azure` and `kubenet`| string | `kubenet`| For details see Azure's documentation on: [configure kubenet](https://docs.microsoft.com/en-us/azure/aks/configure-kubenet), [Configure Azure CNI](https://learn.microsoft.com/en-us/azure/aks/configure-azure-cni).<br>**Note**: To support Azure CNI your Subnet must be large enough to accommodate the nodes, pods, and all Kubernetes and Azure resources that might be provisioned in your cluster.<br>To calculate the minimum subnet size including an additional node for upgrade operations use formula: `(number of nodes + 1) + ((number of nodes + 1) * maximum pods per node that you configure)` <br>Example for a 5 node cluster: `(5) + (5 * 110) = 555 (/22 or larger)`|
88+
| aks_network_policy | Sets up network policy to be used with Azure CNI. Network policy allows to control the traffic flow between pods. Currently supported values are `calico` and `azure`.| string | `azure`| Network policy can only be used when `aks_network_plugin` is set to `azure`. |
8789

8890

8991
The default values for the `subnets` variable are as follows:

files/tools/iac_git_info.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/usr/bin/env bash
22

3+
# Copyright © 2020-2023, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
4+
# SPDX-License-Identifier: Apache-2.0
5+
36
# We need to return an error if things don't work
47
set -e
58

files/tools/iac_tooling_version.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/usr/bin/env bash
22

3+
# Copyright © 2020-2023, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
4+
# SPDX-License-Identifier: Apache-2.0
5+
36
# We need to return an error if things don't work
47
set -e
58

files/tools/terraform_env_variable_helper.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/usr/bin/env bash
22

3+
# Copyright © 2020-2023, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
4+
# SPDX-License-Identifier: Apache-2.0
5+
36
echo -e "\nUsage: You must have an active az cli login 'az login' before this script will work"
47
echo -e "\nUsage: Run an export referenced in line 8 or 9 before this script before continuing"
58
echo " For example: export YOURSP=your-SP-name or export YOURSP=\$USER"

iam.tf

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1+
# Copyright © 2020-2023, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
14
data "azurerm_user_assigned_identity" "uai" {
2-
count = var.aks_identity == "uai" ? ( var.aks_uai_name == null ? 0 : 1 ) : 0
5+
count = var.aks_identity == "uai" ? (var.aks_uai_name == null ? 0 : 1) : 0
36
name = var.aks_uai_name
47
resource_group_name = local.network_rg.name
58
}
69

710
resource "azurerm_user_assigned_identity" "uai" {
8-
count = var.aks_identity == "uai" ? ( var.aks_uai_name == null ? 1 : 0 ) : 0
11+
count = var.aks_identity == "uai" ? (var.aks_uai_name == null ? 1 : 0) : 0
912
name = "${var.prefix}-aks-identity"
1013
resource_group_name = local.aks_rg.name
1114
location = var.location

locals.tf

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright © 2020-2023, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
14
locals {
25

36
# Useful flags
@@ -20,9 +23,9 @@ locals {
2023
kubeconfig_path = var.iac_tooling == "docker" ? "/workspace/${local.kubeconfig_filename}" : local.kubeconfig_filename
2124

2225
# PostgreSQL
23-
default_postgres_configuration = [{name: "max_prepared_transactions", value: 1024}]
24-
postgres_servers = var.postgres_servers == null ? {} : { for k, v in var.postgres_servers : k => merge(var.postgres_server_defaults, v, ) }
25-
postgres_firewall_rules = [for addr in local.postgres_public_access_cidrs : { "name" : replace(replace(addr, "/", "_"), ".", "_"), "start_ip" : cidrhost(addr, 0), "end_ip" : cidrhost(addr, abs(pow(2, 32 - split("/", addr)[1]) - 1)) }]
26+
default_postgres_configuration = [{ name : "max_prepared_transactions", value : 1024 }]
27+
postgres_servers = var.postgres_servers == null ? {} : { for k, v in var.postgres_servers : k => merge(var.postgres_server_defaults, v, ) }
28+
postgres_firewall_rules = [for addr in local.postgres_public_access_cidrs : { "name" : replace(replace(addr, "/", "_"), ".", "_"), "start_ip" : cidrhost(addr, 0), "end_ip" : cidrhost(addr, abs(pow(2, 32 - split("/", addr)[1]) - 1)) }]
2629

2730
postgres_outputs = length(module.flex_postgresql) != 0 ? { for k, v in module.flex_postgresql :
2831
k => {

0 commit comments

Comments
 (0)