@@ -5,8 +5,9 @@ from a private Git repository.
55
66The Validated Patterns framework supports deploying from both SSH-secured and
77HTTPS-secured (PAT) private repositories. The mechanism works by creating an
8- ArgoCD repository secret ** before** the pattern is deployed, so that both the
9- Cluster ArgoCD and Hub ArgoCD instances can pull the pattern manifests.
8+ ArgoCD repository secret ** before** the pattern is deployed, so that the VP
9+ operator can propagate credentials to all ArgoCD instances managed by the
10+ pattern.
1011
1112> [ !NOTE]
1213> The upstream documentation is at
@@ -71,21 +72,6 @@ bootstrap_secrets:
7172 value : " true"
7273 - name : sshPrivateKey
7374 path : ~/.ssh/ztvp-deploy-key
74- # ACM workaround (see Troubleshooting)
75- - name : vp-private-repo-credentials
76- targetNamespaces :
77- - openshift-gitops
78- labels :
79- argocd.argoproj.io/secret-type : repository
80- fields :
81- - name : type
82- value : git
83- - name : url
84- value : git@github.com:YOUR-ORG/layered-zero-trust.git
85- - name : insecureIgnoreHostKey
86- value : " true"
87- - name : sshPrivateKey
88- path : ~/.ssh/ztvp-deploy-key
8975` ` `
9076
9177### 4. Deploy
@@ -139,21 +125,6 @@ bootstrap_secrets:
139125 value : YOUR-USERNAME
140126 - name : password
141127 path : ~/.config/validated-patterns/git-pat
142- # ACM workaround (see Troubleshooting)
143- - name : vp-private-repo-credentials
144- targetNamespaces :
145- - openshift-gitops
146- labels :
147- argocd.argoproj.io/secret-type : repository
148- fields :
149- - name : type
150- value : git
151- - name : url
152- value : https://github.com/YOUR-ORG/layered-zero-trust.git
153- - name : username
154- value : YOUR-USERNAME
155- - name : password
156- path : ~/.config/validated-patterns/git-pat
157128` ` `
158129
159130> [!NOTE]
@@ -192,8 +163,14 @@ for actual access; the validation is only a local convenience check.
192163
1931643. The `TOKEN_SECRET` and `TOKEN_NAMESPACE` Make variables set the
194165 ` tokenSecret` and `tokenSecretNamespace` fields on the Pattern Custom
195- Resource, which propagates the credentials to all ArgoCD instances
196- managed by the pattern.
166+ Resource. The VP operator copies the secret as
167+ ` vp-private-repo-credentials` into `vp-gitops` (its managed ArgoCD
168+ namespace).
169+
170+ 4. The ACM chart (0.2.x+) `vp-private-hub-policy` copies credentials from
171+ ` global.vpArgoNamespace` , which the VP operator automatically sets to
172+ ` vp-gitops` . This allows the policy to find the secret the VP operator
173+ placed there without any manual override.
197174
198175# # Verifying
199176
@@ -206,10 +183,19 @@ oc get secret private-repo -n openshift-operators \
206183
207184Expected output : ` repository`
208185
186+ Confirm the VP operator propagated the credential to `vp-gitops` :
187+
188+ ` ` ` shell
189+ oc get secret vp-private-repo-credentials -n vp-gitops \
190+ -o jsonpath='{.metadata.labels.argocd\. argoproj\. io/secret-type}'
191+ ` ` `
192+
193+ Expected output : ` repository`
194+
209195Check the Cluster ArgoCD can see the repository :
210196
211197` ` ` shell
212- oc get application layered-zero-trust-hub -n openshift -gitops \
198+ oc get application layered-zero-trust-hub -n vp -gitops \
213199 -o jsonpath='{.status.sync.status}'
214200` ` `
215201
@@ -218,11 +204,11 @@ Expected output: `Synced` (or `OutOfSync` if you have uncommitted changes).
218204# # Troubleshooting
219205
220206* **ACM shows Degraded (vp-private-hub-policy NonCompliant)** -- The ACM
221- chart policy copies repo credentials from `openshift-gitops`, but the VP
222- operator only places them in `vp-gitops`. Fix this by adding a second
223- ` bootstrap_secrets ` entry named `vp-private-repo-credentials` targeting
224- ` openshift-gitops ` (see the "ACM workaround" section in
225- ` values-secret.yaml.template ` ). Then re-run `load-secrets` .
207+ chart 0.1.x has `openshift-gitops` hardcoded in the private-repo policy
208+ template, but the VP operator (0.0.70+) places credentials in
209+ ` vp-gitops ` . Ensure `values-hub.yaml` uses ACM chart 0.2.x or later
210+ (`chartVersion : 0.2.*`), which reads `global.vpArgoNamespace` -- a value
211+ the VP operator sets automatically .
226212
227213* **ArgoCD shows "repository not accessible"** -- Verify the SSH key or PAT
228214 has read access. For SSH, confirm the key has no passphrase (`ssh-keygen
0 commit comments