You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/data-sources/akscluster.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -109,6 +109,7 @@ Optional:
109
109
-`api_server_access_config` (Block List, Max: 1) API Server Access Config (see [below for nested schema](#nestedblock--spec--config--api_server_access_config))
110
110
-`auto_upgrade_config` (Block List, Max: 1) Auto Upgrade Config (see [below for nested schema](#nestedblock--spec--config--auto_upgrade_config))
111
111
-`disk_encryption_set` (String) Resource ID of the disk encryption set to use for enabling
112
+
-`identity_config` (Block List, Max: 1) Managed Identity Config (see [below for nested schema](#nestedblock--spec--config--identity_config))
112
113
-`linux_config` (Block List, Max: 1) Linux Config (see [below for nested schema](#nestedblock--spec--config--linux_config))
113
114
-`node_resource_group_name` (String) Name of the resource group containing nodepools.
114
115
-`sku` (Block List, Max: 1) Azure Kubernetes Service SKU (see [below for nested schema](#nestedblock--spec--config--sku))
### Nested Schema for `spec.config.identity_config`
218
+
219
+
Optional:
220
+
221
+
-`type` (String) Type of managed identity used by the cluster (default IDENTITY_TYPE_SYSTEM_ASSIGNED). Allowed values include: IDENTITY_TYPE_SYSTEM_ASSIGNED or IDENTITY_TYPE_USER_ASSIGNED
222
+
-`user_assigned` (Block List, Max: 1) User Assigned Managed Identity Config (see [below for nested schema](#nestedblock--spec--config--identity_config--user_assigned))
### Nested Schema for `spec.config.identity_config.user_assigned`
226
+
227
+
Required:
228
+
229
+
-`resource_id` (String) The ARM resource ID of user assigned identity in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'
Copy file name to clipboardExpand all lines: docs/resources/akscluster.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -130,6 +130,7 @@ Optional:
130
130
-`api_server_access_config` (Block List, Max: 1) API Server Access Config (see [below for nested schema](#nestedblock--spec--config--api_server_access_config))
131
131
-`auto_upgrade_config` (Block List, Max: 1) Auto Upgrade Config (see [below for nested schema](#nestedblock--spec--config--auto_upgrade_config))
132
132
-`disk_encryption_set` (String) Resource ID of the disk encryption set to use for enabling
133
+
-`identity_config` (Block List, Max: 1) Managed Identity Config (see [below for nested schema](#nestedblock--spec--config--identity_config))
133
134
-`linux_config` (Block List, Max: 1) Linux Config (see [below for nested schema](#nestedblock--spec--config--linux_config))
134
135
-`node_resource_group_name` (String) Name of the resource group containing nodepools.
135
136
-`sku` (Block List, Max: 1) Azure Kubernetes Service SKU (see [below for nested schema](#nestedblock--spec--config--sku))
### Nested Schema for `spec.config.identity_config`
239
+
240
+
Optional:
241
+
242
+
-`type` (String) Type of managed identity used by the cluster (default IDENTITY_TYPE_SYSTEM_ASSIGNED). Allowed values include: IDENTITY_TYPE_SYSTEM_ASSIGNED or IDENTITY_TYPE_USER_ASSIGNED
243
+
-`user_assigned` (Block List, Max: 1) User Assigned Managed Identity Config (see [below for nested schema](#nestedblock--spec--config--identity_config--user_assigned))
### Nested Schema for `spec.config.identity_config.user_assigned`
247
+
248
+
Required:
249
+
250
+
-`resource_id` (String) The ARM resource ID of user assigned identity in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'
Copy file name to clipboardExpand all lines: internal/resources/akscluster/schema.go
+39Lines changed: 39 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -205,6 +205,13 @@ var ClusterConfig = &schema.Resource{
205
205
MaxItems: 1,
206
206
Elem: AutoUpgradeConfig,
207
207
},
208
+
identityConfigKey: {
209
+
Type: schema.TypeList,
210
+
Description: "Managed Identity Config",
211
+
Optional: true,
212
+
MaxItems: 1,
213
+
Elem: ManagedIdentityConfig,
214
+
},
208
215
},
209
216
}
210
217
@@ -514,6 +521,38 @@ var AutoUpgradeConfig = &schema.Resource{
514
521
},
515
522
}
516
523
524
+
varManagedIdentityConfig=&schema.Resource{
525
+
Schema: map[string]*schema.Schema{
526
+
typeKey: {
527
+
Type: schema.TypeString,
528
+
Description: "Type of managed identity used by the cluster (default IDENTITY_TYPE_SYSTEM_ASSIGNED). Allowed values include: IDENTITY_TYPE_SYSTEM_ASSIGNED or IDENTITY_TYPE_USER_ASSIGNED",
Description: "The ARM resource ID of user assigned identity in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'",
551
+
Required: true,
552
+
},
553
+
},
554
+
}
555
+
517
556
// NodepoolConfig defines the info and nodepool spec for AKS clusters.
518
557
//
519
558
// Note: ForceNew is not used in any of the elements because this is a part of
0 commit comments