-
Notifications
You must be signed in to change notification settings - Fork 427
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
Clarify identityRef
and identity
fields in AzureManagedControlPlaneClassSpec
#5202
Comments
Your interpretation of the CRD docs is correct. This is an unfortunate intersection between our tendency to try to align CAPZ field names with AKS API field names and the prior decision to call that field Overall, I think your correct read of the docs is a sign that we're doing about as well as we can here without changing the API. Is there some other specific change you'd like to see? |
Hi @nojnhuh , thanks for the reply. Given that the interpretation is correct, I can think of a few possible ideas.
I was about to suggest modifications to the documentation around moving away from v1 API towards ASO as potential v2, but I see that you have that in there already and since it's not set in stone, nothing to do there. As a general statement, I think the documentation could be much improved. While I completely understand "only" providing an API reference, the lack of rendered YAML templates as documentation is frustrating to work with (but this is due in part to my general aversion to needing to install |
When deploying a managed control plane thus:
If you don't provide
identity
for a user assigned identity, it won't deploy with the user UAI, even thoughidentityRef
is provided (and the intention is to use that reference). In my case, bothidentity
andidentityRef
point to the same identity. I realize that may not be the intention, but I can't find any descriptive documentation on what each really does to be able to understand each one.From https://capz.sigs.k8s.io/reference/v1beta1-api#infrastructure.cluster.x-k8s.io/v1beta1.AzureManagedControlPlaneClassSpec:
Kubernetes core/v1.ObjectReference
And:
Identity
Given the names, I would assume that they do the same thing, where one is a reference and the other is a directly encoded value. However, based on the CRD documentation, it seems like one is used by CAPI to reconcile, and the other is used by the cluster itself.
Any clarity would be appreciated.
The text was updated successfully, but these errors were encountered: