Skip to content

Commit d91e0b1

Browse files
authored
Add instructions to reference pull secret from bundle (#321)
Signed-off-by: Simone-Rodigari <[email protected]>
1 parent abc2105 commit d91e0b1

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

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

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,26 @@ 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 operator Deployment's manifest by adding the required secret name to the list `deployment.spec.template.spec.imagePullSecrets`.
89+
90+
For the [operator-sdk](https://sdk.operatorframework.io/) abstraction, the operator Deployment's manifest is found under `config/manager/manager.yaml`. Below is an example of a controller-manager Deployment's manifest configured with an `imagePullSecret` to pull container images from a private registry.
91+
92+
```yaml
93+
# config/manager/manager.yaml
94+
apiVersion: apps/v1
95+
kind: Deployment
96+
metadata:
97+
name: controller-manager
98+
namespace: system
99+
...
100+
spec:
101+
...
102+
spec:
103+
imagePullSecrets:
104+
- name: "registry-auth-secret-name"
105+
```
106+
107+
> 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.
108+
109+
110+
[creating-a-catalog-steps]: /docs/tasks/creating-a-catalog/#creating-a-catalog

0 commit comments

Comments
 (0)