Skip to content

OKE Cluster Tag Updates Not Applied During Reconciliation #451

@chetan79

Description

@chetan79

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):

  1. Create an OKE cluster using CAPI OCI provider with initial tags
  2. Verify tags are applied during creation (check OCI console)
  3. Update the FreeformTags or DefinedTags in the OCIManagedCluster CRD:
  4. Apply the changes
  5. Wait for reconciliation to complete
  6. 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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions