Azure / azure-service-operator

Azure Service Operator allows you to create Azure resources using kubectl
https://azure.github.io/azure-service-operator/
MIT License
739 stars 194 forks source link

Feature: Support running operations like `az aks invoke ... ` via aso #3769

Open mjnovice opened 8 months ago

mjnovice commented 8 months ago

az aks invoke ... like operations are not supported by the ASO currently. Can we have a declarative spec for running operations ?

theunrepentantgeek commented 8 months ago

Can you please expand on what you're wanting, and how you think it fits into the existing design goals of ASO? This doesn't seem like a good fit to me, but I'm open to persuasion. ASO is not intended as a replacement for az.

matthchr commented 8 months ago

Spoke with @mjnovice on Slack - basically they are asking for ASO to fabricate Job equivalent for the runCommand REST API AKS offers: https://github.com/Azure/azure-rest-api-specs/blob/main/specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2023-11-01/managedClusters.json#L2100

I think we could do that but obviously it takes quite a bit more manual massaging to do that in a Kubernetes context as it's an action by default and we'd need to wrap resource-like desired state behavior around it.

Not impossible as we've done it for other things (SQL users primarily), but not clear how much user desire there is for it either. I figured we could have an issue tracking it and see if others in the community were interested (and/or possibly wanted to contribute it)

theunrepentantgeek commented 1 month ago

We haven't seen any other user desire for this, as yet.