astefanutti commented on a change in pull request #2696:
URL: https://github.com/apache/camel-k/pull/2696#discussion_r733813074
##########
File path: pkg/platform/defaults.go
##########
@@ -149,7 +150,15 @@ func configureRegistry(ctx context.Context, c
client.Client, p *v1.IntegrationPl
}
}
}
-
+ if p.Status.Build.Registry.Address == "" {
Review comment:
I think it won't work for local install, as the operator service account
do not have required permission.
I think the best solution is to create a dedicated ClusterRole with:
```yaml
rules:
- apiGroups: [""]
resources: ["configmaps"]
resourceNames: ["local-registry-hosting"]
verbs: ["get"]
```
And a RoleBinding projecting that ClusterRole on the `kube-public` namespace
for the operator service account.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]