Skip to content

Commit 02dfc0f

Browse files
committed
Add instructions to reference pull secret from bundle
* add instructions for image pull from private registry within bundle * relates to operator-framework/operator-sdk#6622 Signed-off-by: Simone-Rodigari <[email protected]>
1 parent e6eada2 commit 02dfc0f

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

content/en/docs/Tasks/make-catalog-available-on-cluster.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,23 @@ spec:
8585
interval: 10m
8686
```
8787

88-
[creating-a-catalog-steps]: /docs/tasks/creating-a-catalog/#creating-a-catalog
88+
If the `imagePullSecret` is referenced in the bundle, for instance when the controller-manager image is pulled from a private registry, there is no place in the API to tell OLM to attach the `imagePullSecrets`. As a consequence, permissions to pull the image should be added directly to the controller-manager deployment configurations. This can be achieved by updating `config/manager/manager.yaml` and adding `deployment.spec.template.spec.imagePullSecrets` with the required secret name.
89+
90+
```yaml
91+
apiVersion: apps/v1
92+
kind: Deployment
93+
metadata:
94+
name: controller-manager
95+
namespace: system
96+
...
97+
spec:
98+
...
99+
spec:
100+
imagePullSecrets:
101+
- name: "registry-auth-secret-name"
102+
```
103+
104+
> Note: It is required for the `imagePullSecret` to be present in the same namespace where the controller is deployed for the controller pod to start.
105+
106+
107+
[creating-a-catalog-steps]: /docs/tasks/creating-a-catalog/#creating-a-catalog

0 commit comments

Comments
 (0)