Closed fourthisle closed 1 year ago
After further investigation, it turns out that this change request is not required. While installing the resource to be watched, the central-component (component deployed on KCP) needs to apply an owned-by
annotation with the namespace/name
combination of which Kyma CR (or any tuple identifier it may choose) to the to-be-watched resource. The watcher will send that back in the owner
field in the KCP payload sent to the listener endpoint.
The following is a sample secret resource that contains the owned-by
annotation referencing the SKR, which corresponds to the Kyma CR kyma-sample
belonging to the kcp-system
namespace:
---
apiVersion: v1
kind: Secret
metadata:
name: keb-secret
namespace: kcp-system
labels:
"operator.kyma-project.io/watched-by": "lifecycle-manager"
"operator.kyma-project.io/managed-by": "lifecycle-manager"
annotations:
"operator.kyma-project.io/owned-by": "kcp-system/kyma-sample"
data:
config: Y29uZmln
cfg: Y2Zn
proposed solution will not work for existing secrets, it would require KEB to update all existing btp-manager secrets on all clusters by adding annotations, and we would prefer not to do that.
This issue or PR has been automatically marked as stale due to the lack of recent activity. Thank you for your contributions.
This bot triages issues and PRs according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, the issue is closedYou can:
/remove-lifecycle stale
/close
If you think that I work incorrectly, kindly raise an issue with the problem.
/lifecycle stale
This issue or PR has been automatically marked as stale due to the lack of recent activity. Thank you for your contributions.
This bot triages issues and PRs according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, the issue is closedYou can:
/remove-lifecycle stale
/close
If you think that I work incorrectly, kindly raise an issue with the problem.
/lifecycle stale
This issue or PR has been automatically closed due to the lack of activity. Thank you for your contributions.
This bot triages issues and PRs according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, the issue is closedYou can:
/reopen
/remove-lifecycle stale
If you think that I work incorrectly, kindly raise an issue with the problem.
/close
@kyma-bot: Closing this issue.
Description:
In the current watcher-listener payload, it is not possible to know which SKR the watched resource belongs to. The payload should be extended to include this information as it enables KCP components other than lifecycle-manager which have use cases to watch SKR resources.
AC: