Skip to content

Pass uid as ansible_operator_meta.uid #5602

@venkataramanam

Description

@venkataramanam

Feature Request

Describe the problem you need a feature to resolve.

There are times during an Ansible Operator reconcile, when a k8s resource is created outside of Operator process. In order to help clean-up such resources by making them owned by the custom resource that is being reconciled, we will need to get hold of the uid of the custom resource. We can always fetch the custom resource in the Operator reconcile and get hold of the uid, but the custom resource might already have been fetched by the SDK and it can pass uid as ansible_operator_meta.uid. That would save an extra fetch on the custom resource.

Describe the solution you'd like.

Described above as part of problem statement.
Passing the uid as ansible_operator_meta.uid is an additive change and should not affect any Ansible Operator adopter

/language ansible

Metadata

Metadata

Assignees

Labels

language/ansibleIssue is related to an Ansible operator projectlifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.triage/supportIndicates an issue that is a support question.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions