Skip to content

Commit

Permalink
Merge pull request #256 from sassoftware/staging
Browse files Browse the repository at this point in the history
5.3.0 - September 01, 2022
  • Loading branch information
riragh authored Sep 1, 2022
2 parents 6c7450d + 254b4f3 commit e257fd8
Show file tree
Hide file tree
Showing 14 changed files with 37 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ARG AZURECLI_VERSION=2.24.2

FROM hashicorp/terraform:$TERRAFORM_VERSION as terraform
FROM mcr.microsoft.com/azure-cli:$AZURECLI_VERSION
ARG KUBECTL_VERSION=1.22.10
ARG KUBECTL_VERSION=1.23.8

WORKDIR /viya4-iac-azure

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Access to an **Azure Subscription** and an [**Identity**](./docs/user/TerraformA

#### Terraform Requirements:
- [Terraform](https://www.terraform.io/downloads.html) - v1.0.0
- [kubectl](https://kubernetes.io/docs/tasks/tools/install-kubectl) - v1.22.10
- [kubectl](https://kubernetes.io/docs/tasks/tools/install-kubectl) - v1.23.8
- [jq](https://stedolan.github.io/jq/) - v1.6
- [Azure CLI](https://docs.microsoft.com/en-us/cli/azure) - (optional - useful as an alternative to the Azure Portal) - v2.24.2

Expand Down
2 changes: 1 addition & 1 deletion docs/CONFIG-VARS.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ Ubuntu 20.04 LTS is the operating system used on the Jump/NFS servers. Ubuntu cr
| :--- | ---: | ---: | ---: | ---: |
| partner_id | A GUID that is registered with Microsoft to facilitate partner resource usage attribution | string | "5d27f3ae-e49c-4dea-9aa3-b44e4750cd8c" | Defaults to SAS partner GUID. When you deploy this Terraform configuration, Microsoft can identify the installation of SAS software with the deployed Azure resources. Microsoft can then correlate the resources that are used to support the software. Microsoft collects this information to provide the best experiences with their products and to operate their business. The data is collected and governed by Microsoft's privacy policies, located at https://www.microsoft.com/trustcenter. |
| create_static_kubeconfig | Allows the user to create a provider / service account-based kubeconfig file | bool | true | A value of `false` will default to using the cloud provider's mechanism for generating the kubeconfig file. A value of `true` will create a static kubeconfig that uses a `Service Account` and `Cluster Role Binding` to provide credentials. |
| kubernetes_version | The AKS cluster Kubernetes version | string | "1.22.6" | |
| kubernetes_version | The AKS cluster Kubernetes version | string | "1.23.8" | |
| create_jump_vm | Create bastion host | bool | true | |
| create_jump_public_ip | Add public IP address to the jump VM | bool | true | |
| jump_vm_admin | Operating system Admin User for the jump VM | string | "jumpuser" | |
Expand Down
2 changes: 1 addition & 1 deletion examples/sample-input-byo.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ container_registry_sku = "Standard"
container_registry_admin_enabled = false

# AKS config
kubernetes_version = "1.22.6"
kubernetes_version = "1.23.8"
default_nodepool_min_nodes = 2
default_nodepool_vm_type = "Standard_D8s_v4"

Expand Down
2 changes: 1 addition & 1 deletion examples/sample-input-connect.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ container_registry_sku = "Standard"
container_registry_admin_enabled = false

# AKS config
kubernetes_version = "1.22.6"
kubernetes_version = "1.23.8"
default_nodepool_min_nodes = 2
default_nodepool_vm_type = "Standard_D8s_v4"

Expand Down
2 changes: 1 addition & 1 deletion examples/sample-input-ha.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ container_registry_sku = "Standard"
container_registry_admin_enabled = false

# AKS config
kubernetes_version = "1.22.6"
kubernetes_version = "1.23.8"
default_nodepool_min_nodes = 2
default_nodepool_vm_type = "Standard_D8s_v4"

Expand Down
2 changes: 1 addition & 1 deletion examples/sample-input-minimal.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ container_registry_sku = "Standard"
container_registry_admin_enabled = false

# AKS config
kubernetes_version = "1.22.6"
kubernetes_version = "1.23.8"
default_nodepool_min_nodes = 1
#v3 still has local temp storage
default_nodepool_vm_type = "Standard_D2_v3"
Expand Down
2 changes: 1 addition & 1 deletion examples/sample-input-ppg.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ container_registry_sku = "Standard"
container_registry_admin_enabled = false

# AKS config
kubernetes_version = "1.22.6"
kubernetes_version = "1.23.8"
default_nodepool_min_nodes = 2
default_nodepool_vm_type = "Standard_D8s_v4"

Expand Down
2 changes: 1 addition & 1 deletion examples/sample-input-singlestore.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ container_registry_sku = "Standard"
container_registry_admin_enabled = false

# AKS config
kubernetes_version = "1.22.6"
kubernetes_version = "1.23.8"
default_nodepool_min_nodes = 2
default_nodepool_vm_type = "Standard_D8s_v4"

Expand Down
2 changes: 1 addition & 1 deletion examples/sample-input.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ container_registry_sku = "Standard"
container_registry_admin_enabled = false

# AKS config
kubernetes_version = "1.22.6"
kubernetes_version = "1.23.8"
default_nodepool_min_nodes = 2
default_nodepool_vm_type = "Standard_D8s_v4"

Expand Down
2 changes: 1 addition & 1 deletion modules/azure_aks/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ variable "aks_cluster_max_pods" {

variable kubernetes_version {
description = "The AKS cluster K8s version"
default = "1.22.6"
default = "1.23.8"
}
variable "aks_cluster_endpoint_public_access_cidrs" {
description = "Kubernetes cluster access IP ranges"
Expand Down
24 changes: 23 additions & 1 deletion modules/kubeconfig/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ data "template_file" "kubeconfig_provider" {
data "kubernetes_secret" "sa_secret" {
count = var.create_static_kubeconfig ? 1 : 0
metadata {
name = kubernetes_service_account.kubernetes_sa.0.default_secret_name
name = kubernetes_secret.sa_secret.0.metadata.0.name
namespace = var.namespace
}

depends_on = [kubernetes_secret.sa_secret]
}

data "template_file" "kubeconfig_sa" {
Expand All @@ -40,8 +42,28 @@ data "template_file" "kubeconfig_sa" {
token = lookup(data.kubernetes_secret.sa_secret.0.data,"token", "")
namespace = var.namespace
}

depends_on = [data.kubernetes_secret.sa_secret]
}

# 1.24 change: Create service account secret
resource "kubernetes_secret" "sa_secret" {
count = var.create_static_kubeconfig ? 1 : 0
metadata {
name = local.service_account_secret_name
namespace = var.namespace
annotations = {
"kubernetes.io/service-account.name" = local.service_account_name
}
}

type = "kubernetes.io/service-account-token"

depends_on = [kubernetes_service_account.kubernetes_sa]
}

# Starting K8s v1.24+ hashicorp/terraform-provider-kubernetes issues warning message:
# "Warning: 'default_secret_name' is no longer applicable for Kubernetes 'v1.24.0' and above"
resource "kubernetes_service_account" "kubernetes_sa" {
count = var.create_static_kubeconfig ? 1 : 0
metadata {
Expand Down
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ variable "default_nodepool_vm_type" {
}
variable "kubernetes_version" {
description = "The AKS cluster K8s version"
default = "1.22.6"
default = "1.23.8"
}

variable "default_nodepool_max_nodes" {
Expand Down
4 changes: 2 additions & 2 deletions versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ terraform {
source = "hashicorp/azurerm"
version = "2.62.0"
}
azureread = {
azuread = {
source = "hashicorp/azuread"
version = "1.5.0"
}
Expand Down Expand Up @@ -37,7 +37,7 @@ terraform {
}
kubernetes = {
source = "hashicorp/kubernetes"
version = "2.3.1"
version = "2.13.0"
}
}
}

0 comments on commit e257fd8

Please sign in to comment.