Skip to content

Update to controller-runtime v0.XX.0 and adapt to native client.Apply #2707

@c-pius

Description

@c-pius

Description

Bump controller-runtime to v.0.XX.0 and migrate to the native client.Apply accordingly. For template-operator, this was done here: kyma-project/template-operator#398 Also note that for SubResourceWriter, it is not supported yet: #2706

The challenge we have in lifecycle-manager is that we have our own ProxyClient which must now implement the Apply method accordingly. To match the signature, we need to pass the object as machineryruntime.ApplyConfiguration, but it is not obvious how to get the GVK from that object to get the resource mapping. This needs to be thought through thoroughly.

Reasons

v0.22.0 of controller-runtime deprecated client.Apply in favor of "Native SSA Support" via client.Client.Apply. We need to adapt accordingly.

Acceptance Criteria

  • in KLM and template-operator

Feature Testing

No response

Testing approach

No response

Attachments

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions