Skip to content
This repository was archived by the owner on May 9, 2023. It is now read-only.

Commit fbb938b

Browse files
committed
Docs update
1 parent 7bd1960 commit fbb938b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -207,12 +207,12 @@ While using a username as a registry identifier (docker.io/username) is a common
207207

208208
```
209209
TOKEN=$(gcloud auth print-access-token)
210-
tm set registry-auth gcr --registry eu.gcr.io --username oauth2accesstoken --project foo --password $TOKEN
210+
tm set registry-auth gcr --registry eu.gcr.io --project my-org/my-project --username oauth2accesstoken --password $TOKEN
211211
tm generate python
212212
tm deploy -f python --registry-secret gcr --wait
213213
```
214214

215-
As a result, Knative service image will be pushed to `eu.gcr.io/foo/` registry
215+
As a result, Knative service image will be pushed to `eu.gcr.io/my-org/my-project` registry
216216

217217

218218
#### Unauthenticated registry

cmd/set.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func cmdSetRegistryCreds(clientset *client.ConfigSet) *cobra.Command {
4949
}
5050

5151
setRegistryCredsCmd.Flags().StringVar(&rc.Host, "registry", "", "Registry host address")
52-
setRegistryCredsCmd.Flags().StringVar(&rc.ProjectID, "project", "", "If set, use this value instead of the username in image URL: <host>/<project>/<image>")
52+
setRegistryCredsCmd.Flags().StringVar(&rc.ProjectID, "project", "", "If set, use this value instead of the username in image names. Example: gcr.io/<project>")
5353
setRegistryCredsCmd.Flags().StringVar(&rc.Username, "username", "", "Registry username")
5454
setRegistryCredsCmd.Flags().StringVar(&rc.Password, "password", "", "Registry password")
5555
setRegistryCredsCmd.Flags().BoolVar(&rc.Pull, "pull", false, "Indicates if this token must be used for pull operations only")

0 commit comments

Comments
 (0)