Skip to content

[Runtime] Resolved references missing from desired Spec during rm.Create call #1187

@vijtrip2

Description

@vijtrip2

Currently inside reconciler.go, the sequence of operations during resource creation is

  1. Resolve resource references
  2. Perform AWSResourceManager.ReadOne operation
  3. NotFound Error returned by ReadOne call
  4. Call setResourceManaged i.e. Add finalizer to the resource
  5. Perform AWSResourceManager.Create call.

The resolved references are important for building ReadOne and Create requests and the problem with above sequence is that the kc.Patch call from setResourceManaged(step 4) method restores the desired Spec from etcd and the resolved references(step 1) get reset.

The solution should make sure that resolved references are present in desired spec while performing AWSResourceManager.Create call

Metadata

Metadata

Assignees

Labels

kind/bugCategorizes issue or PR as related to a bug.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions