Skip to content

Commit 68ccbf9

Browse files
committed
Update docs on PAT secrets to be current with functionality
Update documentation on using personal access tokens with DevWorkspaces to reflect recent changes (e.g. that mount-path is ignored and /.git-credentials is used instead now). Signed-off-by: Angel Misevski <[email protected]>
1 parent a3db721 commit 68ccbf9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docs/additional-configuration.adoc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,17 +137,16 @@ Labelling secrets with `controller.devfile.io/devworkspace_pullsecret: true` mar
137137
Note: As for automatically mounting secrets, it is necessary to apply the `controller.devfile.io/watch-secret` label to image pull secrets
138138

139139
## Adding git credentials to a workspace
140-
Labelling secrets with `controller.devfile.io/git-credential` marks the secret as containing git credentials. All git credential secrets will be merged into a single secret (leaving the original resources in-tact). See https://git-scm.com/docs/git-credential-store#_storage_format[git documentation] for details on the file format for this configuration. For example
140+
Labelling secrets with `controller.devfile.io/git-credential` marks the secret as containing git credentials. All git credential secrets will be merged into a single secret (leaving the original resources intact). The merged credentials secret is mounted to `/.git-credentials/credentials`. See https://git-scm.com/docs/git-credential-store#_storage_format[git documentation] for details on the file format for this configuration. For example
141141
[source,yaml]
142142
----
143143
kind: Secret
144144
apiVersion: v1
145145
metadata:
146146
name: git-credentials-secret
147-
annotations:
148-
controller.devfile.io/mount-path: /tmp/.git-credentials/
149147
labels:
150148
controller.devfile.io/git-credential: 'true'
149+
controller.devfile.io/watch-secret: 'true'
151150
type: Opaque
152151
data:
153152
credentials: https://{USERNAME}:{PERSONAL_ACCESS_TOKEN}@{GIT_WEBSITE}

0 commit comments

Comments
 (0)