Skip to content

Commit

Permalink
feat: PAYMCLOUD-140 added kubernetes private dns zone output (#371)
Browse files Browse the repository at this point in the history
* PAYMCLOUD-140 - added aks managed dns zone output

* updated minimum required version
  • Loading branch information
mamari90 authored Nov 13, 2024
1 parent 56033d4 commit 3f2d914
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 14 deletions.
5 changes: 5 additions & 0 deletions kubernetes_cluster/10_outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ output "private_fqdn" {
description = "The FQDN for the Kubernetes Cluster when private link has been enabled, which is only resolvable inside the Virtual Network used by the Kubernetes Cluster."
}

output "managed_private_dns_zone_name" {
value = local.managed_private_dns_zone_name
description = "The managed private dns zone name for the Kubernetes Cluster when private link has been enabled. Derived from private_fqdn"
}

output "kubelet_identity_id" {
value = azurerm_kubernetes_cluster.this.kubelet_identity[0].object_id
description = "The Object ID of the user-defined Managed Identity assigned to the Kubelets.If not specified a Managed Identity is created automatically. Changing this forces a new resource to be created."
Expand Down
4 changes: 4 additions & 0 deletions kubernetes_cluster/99_locals.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
locals {
aks_fqdn_levels = length(split(".", azurerm_kubernetes_cluster.this.private_fqdn))
managed_private_dns_zone_name = join(".", slice(split(".", azurerm_kubernetes_cluster.this.private_fqdn), 1, local.aks_fqdn_levels))
}
2 changes: 1 addition & 1 deletion kubernetes_cluster/99_versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "~>3.100"
version = "~>3.105"
}
null = {
source = "hashicorp/null"
Expand Down
15 changes: 8 additions & 7 deletions kubernetes_cluster/README.md

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions kubernetes_cluster_udr/10_outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,8 @@ output "managed_resource_group_name" {
value = azurerm_kubernetes_cluster.this.node_resource_group
description = " The auto-generated Resource Group which contains the resources for this Managed Kubernetes Cluster."
}

output "managed_private_dns_zone_name" {
value = local.managed_private_dns_zone_name
description = "The managed private dns zone name for the Kubernetes Cluster when private link has been enabled. Derived from private_fqdn"
}
4 changes: 4 additions & 0 deletions kubernetes_cluster_udr/99_locals.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
locals {
aks_fqdn_levels = length(split(".", azurerm_kubernetes_cluster.this.private_fqdn))
managed_private_dns_zone_name = join(".", slice(split(".", azurerm_kubernetes_cluster.this.private_fqdn), 1, local.aks_fqdn_levels))
}
13 changes: 7 additions & 6 deletions kubernetes_cluster_udr/README.md

Large diffs are not rendered by default.

0 comments on commit 3f2d914

Please sign in to comment.