Application Already Exists Error (Gerrit VCS)βοΈ
ProblemβοΈ
User receives an error message when creating applications using Gerrit as a Git Server provider.
CauseβοΈ
Gerrit operator might get stuck during its work.
SolutionβοΈ
Restarting the Gerrit-related pods can be a solution to the problem:
-
Check the
GerritProject
,CodebaseImageStream
,CodebaseBranch
, andCodebase
custom resources related to the previously created application: -
Delete the custom resources that relate to the problem application using the
kubectl delete
command. -
Check the pods in your project namespace:
-
Delete the
gerrit-operator
andgerrit
pods so the replica set will be able to spin up new pods: -
Create the application again. Now it is supposed to create application successfully.