Serverless should set SourceUpdateFailed
condition in case secret for git authorization is missing
#1419
Labels
kind/bug
Categorizes issue or PR as related to a bug.
Description
User misconfiguration for git sourced function (missing secret) is not reflected in function's
Configured
condition.Instead - the
Configured
condition remainsnil
which is not a valid final state of function reconciliation.In such case neither user, nor kyma monitoring is not able to detect it and act accordingly.
Reason
Improved UX: User - should be able to see Configured False with reason
SourceUpdateFailed
and a call for action. (I.e make sure the secret needed for git authorization is there)Improved Operations SLA fulfilment: Setting up proper error reason in function conditions allows us to detect it as user misconfiguration and not treat that as serverless downtime.
Expected result
Having configured git function from private repository and providing a name for non-existing secret should end up reconciling the function status into Configure false because of
SourceUpdateFailed
Actual result
Having configured git function from private repository and providing a name for non-existing secret keeps the conditions nil which is seen as downtime and eats up disruption budget (downtime)
Attachments
serverless/components/serverless/pkg/apis/serverless/v1alpha2/function_types.go
Line 246 in 766c1db
The text was updated successfully, but these errors were encountered: