Describe the bug
I've installed the GitOps Operator onto a new, uncustomized install of OpenShift 4.7(.5). I'm trying to deploy a simple webserver consisting of:
- A
Namespace
- A
Deployment
- A
Configmap
- A
Service
- A
Route
The GitOps operator is able to create to create the Namespace and
the ConfigMap, but is unable to create the remaining resources due
to permission problems. E.g:
-
deployments.apps is forbidden: User
"system:serviceaccount:openshift-gitops:openshift-gitops-argocd-application-controller"
cannot create resource "deployments" in API group "apps" in the
namespace "oai-demo"
-
routes.route.openshift.io is forbidden: User
"system:serviceaccount:openshift-gitops:openshift-gitops-argocd-application-controller"
cannot create resource "routes" in API group "route.openshift.io" in
the namespace "oai-demo"
Additionally, in the log for the application controller pod, I also
see:
time="2021-05-05T12:15:09Z" level=error msg="Unable to create audit
event: events is forbidden: User
\"system:serviceaccount:openshift-gitops:openshift-gitops-argocd-application-controller\"
cannot create resource \"events\" in API group \"\" in the namespace
\"openshift-gitops\"" application=oai-demo-webserver
dest-namespace=openshift-gitops
dest-server="https://kubernetes.default.svc" reason=OperationCompleted
type=Warning
It looks as if there are a number of permissions not configured
correctly out of the box.
Expected behavior
I expect the GitOps operator to successfully deploy an application.
Describe the bug
I've installed the GitOps Operator onto a new, uncustomized install of OpenShift 4.7(.5). I'm trying to deploy a simple webserver consisting of:
NamespaceDeploymentConfigmapServiceRouteThe GitOps operator is able to create to create the
Namespaceandthe
ConfigMap, but is unable to create the remaining resources dueto permission problems. E.g:
Additionally, in the log for the application controller pod, I also
see:
It looks as if there are a number of permissions not configured
correctly out of the box.
Expected behavior
I expect the GitOps operator to successfully deploy an application.