You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 10, 2023. It is now read-only.
Unexported registry secret 'test-secret' from all namespaces
173
173
```
174
+
175
+
## Workflow for adding a private package repository and installation of a private package
176
+
177
+
You can add a private package repository and install a private package using the following procedure:
178
+
179
+
1. First, create the namespace in which the secret is getting added to:
180
+
181
+
```sh
182
+
kubectl create namespace <NAMESPACE>
183
+
```
184
+
185
+
2. Before adding a private package repository, registry secret should be added to the cluster. If you are planning to add the private repository in the same namespace as the registry secret, it suffices to run the following command. Otherwise, please use step '3.a'.
Added registry secret '<SECRET-NAME>' into namespace '<SECRET-NAMESPACE>'
196
+
```
197
+
198
+
3. In case you want to add the private repository in a different namespace than the namespace in which the secret was added to, you need to export the secret to all other namespaces. Please be aware that by doing so, the given secret contents will be available to ALL users in ALL namespaces. Please ensure that included registry credentials allow only read-only access to the registry with minimal necessary scope. You can export the secret to other namespaces using one of the following options:
199
+
200
+
a. You can export the secret to all other namespaces at the time of adding the secret:
5. Verify that the private package repository has been successfully added to the target namespace by running. You should ensure that the status field be 'Reconcile succeeded':
248
+
249
+
```sh
250
+
tanzu package repository get <REPOSITORY-NAME> --namespace <TARGET-NAMESPACE>
251
+
```
252
+
253
+
6. List the available packages by running:
254
+
255
+
```sh
256
+
tanzu package available list --namespace <TARGET-NAMESPACE>
257
+
```
258
+
259
+
7. List version information for the package by running:
260
+
261
+
```sh
262
+
tanzu package available list <PACKAGE-NAME> --namespace <TARGET-NAMESPACE>
263
+
```
264
+
265
+
8. Install the private package with a specific version:
0 commit comments