pulumi / pulumi-azure-native

Azure Native Provider
Apache License 2.0
125 stars 33 forks source link

Add ContainerserviceFunctions getKubernetesVersion #3513

Open elonazoulay opened 1 month ago

elonazoulay commented 1 month ago

Hello!

Issue details

The ContainerserviceFunctions class in the pulumi:azure artifact has getKubernetesVersion but the azure-native artifact does not. Do you recommend we just import both artifacts for now if we need, or is it worth adding this to azure-native? Or is there a getKubernetesVersion function in azure-native that I was not able to find?

Thank you!

Affected area/feature

pulumi-java pulumi:azure-native maven artifact.

danielrbradley commented 1 month ago

Yes, you can absolutely import both - they work well together.

Is the purpose of this function to get the kubernetes version of a specific cluster or to list the available kubernetes version?

Is looks like in Azure Native there's a kubernetes version property on a Managed Clusster - so you could just fetch the whole cluster. I can also see a ManagedClusters_ListKubernetesVersions operation in the upstream specifications but we don't currently include listing functions in the SDK yet.

elonazoulay commented 1 month ago

Yes, you can absolutely import both - they work well together.

Is the purpose of this function to get the kubernetes version of a specific cluster or to list the available kubernetes version?

Is looks like in Azure Native there's a kubernetes version property on a Managed Clusster - so you could just fetch the whole cluster. I can also see a ManagedClusters_ListKubernetesVersions operation in the upstream specifications but we don't currently include listing functions in the SDK yet.

Thanks @danielrbradley ! Yes, we use it to find the support kubernetes versions. Sounds good, for now that works (using both) - would it be something you would want? i.e. if we have enough time we can take a stab at contributing that.