Open skhalash opened 2 years ago
What should happen if the secret gets deleted after the LogPipeline got established?
@a-thaler Currently, the data from the referenced secrets is copied into a special secret owned by the operator. If a referenced secret is deleted, a copy still remains.
Some info about btp-operator
credentials rotation. Whenever automatic service binding is enabled, the controller creates new bindings (derived from the original bindings), which creates new secrets. So existing secrets remain untouched.
This issue has been automatically marked as stale due to the lack of recent activity. It will soon be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale due to the lack of recent activity. It will soon be closed if no further activity occurs. Thank you for your contributions.
Description
If a
logpipeline
, which references a non-existing secret, is deployed to a cluster, the following things should happen:event
should be generated, which indicates that referenced secret does not exist. The behavior should be similar to deploying a pod, which references a non-existing secret:logpipeline
until thesecret
is created.logpipeline
should be in thePending
state until thesecret
is created.Reasons
Generating an event makes it possible for a Kyma user to troubleshoot the problem by using
kubectl describe
. . Attachmentshttps://book-v1.book.kubebuilder.io/beyond_basics/creating_events.html