Skip to content

Add instructions to reference pull secret from bundle #321

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion content/en/docs/Tasks/make-catalog-available-on-cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,26 @@ spec:
interval: 10m
```

[creating-a-catalog-steps]: /docs/tasks/creating-a-catalog/#creating-a-catalog
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`.

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.

```yaml
# config/manager/manager.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: controller-manager
namespace: system
...
spec:
...
spec:
imagePullSecrets:
- name: "registry-auth-secret-name"
```

> 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.


[creating-a-catalog-steps]: /docs/tasks/creating-a-catalog/#creating-a-catalog