-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
new resource azurerm_arc_kubernetes_provisioned_cluster_instance
#27143
base: main
Are you sure you want to change the base?
Conversation
Hi @teowa, Thank you! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @teowa,
Thanks for this PR - I've taken a look through and left some comments inline. If we can fix those up, this should be good to go 👍
} | ||
|
||
func (ArcKubernetesProvisionedClusterInstanceResource) ResourceType() string { | ||
return "azurerm_arc_kubernetes_provisioned_cluster_instance" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be azurerm_arc_kubernetes_provisioned_cluster
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed
ValidateFunc: validation.StringIsNotEmpty, | ||
}, | ||
}, | ||
"os_sku": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what sku
will be used if os_sku
is not configured?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed to required
MaxItems: 1, | ||
Elem: &pluginsdk.Resource{ | ||
Schema: map[string]*pluginsdk.Schema{ | ||
"authorized_ip_ranges": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why it's not Required
since it's the only sub property of cluster_vm_access_profile
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed to required
ValidateFunc: validation.IsIPv4Address, | ||
ConflictsWith: []string{"network_profile.0.load_balancer_profile"}, | ||
}, | ||
"vm_size": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please put Required
fields ahead of Optional
ones
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
}, | ||
}, | ||
|
||
"kubernetes_version": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please put Required
fields ahead of Optional
ones
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
|
||
A `linux_profile` block supports the following: | ||
|
||
* `ssh_key` - (Required) A list of certificate public key used to authenticate with VMs through SSH. The certificate must be in PEM format with or without headers. Changing this forces a new Arc Kubernetes Provisioned Cluster Instance to be created. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* `ssh_key` - (Required) A list of certificate public key used to authenticate with VMs through SSH. The certificate must be in PEM format with or without headers. Changing this forces a new Arc Kubernetes Provisioned Cluster Instance to be created. | |
* `ssh_key` - (Required) A list of certificate public keys used to authenticate with VMs through SSH. The certificate must be in PEM format with or without headers. Changing this forces a new Arc Kubernetes Provisioned Cluster Instance to be created. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
|
||
A `network_profile` block supports the following: | ||
|
||
* `network_policy` - (Required) Network policy used for building Kubernetes network. Possible value is `calico`. Changing this forces a new Arc Kubernetes Provisioned Cluster Instance to be created. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* `network_policy` - (Required) Network policy used for building Kubernetes network. Possible value is `calico`. Changing this forces a new Arc Kubernetes Provisioned Cluster Instance to be created. | |
* `network_policy` - (Required) The network policy used for building Kubernetes network. The only possible value is `calico`. Changing this forces a new Arc Kubernetes Provisioned Cluster Instance to be created. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
|
||
* `pod_cidr` - (Required) A CIDR notation IP Address range from which to assign pod IPs. Changing this forces a new Arc Kubernetes Provisioned Cluster Instance to be created. | ||
|
||
* `load_balancer_profile` - (Optional) A `load_balancer_profile` block as defined above.Conflicts with `control_plane_profile.0.host_ip`. Changing this forces a new Arc Kubernetes Provisioned Cluster Instance to be created. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* `load_balancer_profile` - (Optional) A `load_balancer_profile` block as defined above.Conflicts with `control_plane_profile.0.host_ip`. Changing this forces a new Arc Kubernetes Provisioned Cluster Instance to be created. | |
* `load_balancer_profile` - (Optional) A `load_balancer_profile` block as defined above. Changing this forces a new Arc Kubernetes Provisioned Cluster Instance to be created. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
|
||
A `storage_profile` block supports the following: | ||
|
||
* `nfs_csi_driver_enabled` - (Optional) Should the NFS CSI Driver be enabled? Defaults to `true`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* `nfs_csi_driver_enabled` - (Optional) Should the NFS CSI Driver be enabled? Defaults to `true`. | |
* `nfs_csi_driver_enabled` - (Optional) Whether to enable the NFS CSI Driver. Defaults to `true`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
|
||
* `nfs_csi_driver_enabled` - (Optional) Should the NFS CSI Driver be enabled? Defaults to `true`. | ||
|
||
* `smb_csi_driver_enabled` - (Optional) Should the SMB CSI Driver be enabled? Defaults to `true`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* `smb_csi_driver_enabled` - (Optional) Should the SMB CSI Driver be enabled? Defaults to `true`. | |
* `smb_csi_driver_enabled` - (Optional) Whether to enable the SMB CSI Driver. Defaults to `true`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
Hi @lukasosterheider , yes, refer to the template from https://github.com/Azure/Edge-infrastructure-quickstart-template/blob/main/modules/aks-arc/main.tf. |
Great - thank you! :) |
azurerm_arc_kubernetes_provisioned_cluster_instance
azurerm_arc_kubernetes_provisioned_cluster
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @teowa ,
Thank you for your updates. LGTM~
Hi @teowa, Just looking very much forward to utilizing these resources :) |
@teowa - is this pr readyf or review? |
…m into provisioned_cluster_instance
…m into provisioned_cluster_instance
…m into provisioned_cluster_instance
azurerm_arc_kubernetes_provisioned_cluster
azurerm_arc_kubernetes_provisioned_cluster_instance
Community Note
Description
pending on #26916
new resource
azurerm_arc_kubernetes_provisioned_cluster_instance
swagger: https://github.com/Azure/azure-rest-api-specs/blob/main/specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/provisionedClusterInstances.json
doc: https://learn.microsoft.com/en-us/azure/aks/hybrid/aks-create-clusters-cli?toc=%2Fazure-stack%2Fhci%2Ftoc.json&bc=%2Fazure-stack%2Fbreadcrumb%2Ftoc.json
PR Checklist
For example: “
resource_name_here
- description of change e.g. adding propertynew_property_name_here
”Changes to existing Resource / Data Source
Testing
Tests depend on an existing custom location provisioned during HCI deployment
Change Log
Below please provide what should go into the changelog (if anything) conforming to the Changelog Format documented here.
azurerm_arc_kubernetes_provisioned_cluster_instance
This is a (please select all that apply):
Related Issue(s)
Fixes #0000
Note
If this PR changes meaningfully during the course of review please update the title and description as required.