-
Notifications
You must be signed in to change notification settings - Fork 38
Description
What happened:
Tags applied to existing OKE clusters via CRDs are admitted into the cluster's spec but never reflected in the actual OKE cluster in the OCI console. When users attempt to update FreeformTags or DefinedTags fields in the OCIManagedCluster
CRD, the changes are successfully admitted into the cluster spec but never applied to the actual OKE cluster in OCI.
What you expected to happen:
Tag changes in the CRD should be applied to the actual OKE cluster and be visible in the OCI console, similar to how tags work during cluster creation.
How to reproduce it (as minimally and precisely as possible):
- Create an OKE cluster using CAPI OCI provider with initial tags
- Verify tags are applied during creation (check OCI console)
- Update the FreeformTags or DefinedTags in the OCIManagedCluster CRD:
- Apply the changes
- Wait for reconciliation to complete
- Check OCI console - tags are not updated
Anything else we need to know?:
The issue is in cloud/scope/managed_control_plane.go
in the UpdateControlPlane()
function. The UpdateClusterDetails
struct is missing tag fields that are present in CreateClusterDetails
:
Environment:
- CAPOCI version:
- Cluster-API version (use
clusterctl version
): any latest versions