Azure / Azure/azure-libraries-for-java
[FEATURE REQ] Azure Container Service (AKS) define with RBACenabled true is not possible?
- Lingua principale
- Java
- Stelle
- 97
- Fork
- 102
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
I am using the azure-libraries-for-java to create a kubernetes cluster with withRBACEnabled true. The define() does not have the option withRBACEnabled and the cluster cannot be updated to set this property.
KubernetesCluster kubernetesCluster = azure.kubernetesClusters().define(kubernetesClusterVO.getAksName())
.withRegion(kubernetesClusterVO.getRegion())
.withNewResourceGroup(kubernetesClusterVO.getResourceGroupName())
.withLatestVersion()
.withRootUsername(kubernetesClusterVO.getRootUserName())
.withSshKey(sshKeys.getSshPublicKey())
.withServicePrincipalClientId(kubernetesClusterVO.getServicePrincipalClientId())
.withServicePrincipalSecret(kubernetesClusterVO.getServicePrincipalSecret())
.defineAgentPool(kubernetesClusterVO.getAgentpoolName())
.withVirtualMachineSize(kubernetesClusterVO.getVMSizeType())
.withAgentPoolVirtualMachineCount(kubernetesClusterVO.getAgentPoolVMCount())
.attach()
.withDnsPrefix(kubernetesClusterVO.getDnsNamePrefix())
.create();
The cluster is created with RBACEnabled false. No option to change it.
Update attempt using the java library
/**…more code..**/
item = item.update()
.withRBACEnabled()
.apply();
Error description
com.microsoft.azure.CloudException: Changing property 'enableRBAC' is not allowed.: Changing property 'enableRBAC' is not allowed.
Thank you.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Start from the KubernetesCluster define() and update() entry points shown in the issue, then trace how AKS properties are sent during cluster creation. Check the Azure model and existing tests for enableRBAC support. Done means the Java library can request RBAC during creation and clearly handles the update limitation.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- azure, java, kubernetes
- Ambito
- cloud, infrastructure
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100