... | ... |
@@ -847,17 +847,20 @@ Create a new secret based on a key file or on files within a directory |
847 | 847 |
|
848 | 848 |
[options="nowrap"] |
849 | 849 |
---- |
850 |
- // Create a new secret named my-secret with a key named ssh-privatekey |
|
850 |
+ # Create a new secret named my-secret with a key named ssh-privatekey |
|
851 | 851 |
$ oc secrets new my-secret ~/.ssh/ssh-privatekey |
852 | 852 |
|
853 |
- // Create a new secret named my-secret with keys named ssh-privatekey and ssh-publickey instead of the names of the keys on disk |
|
853 |
+ # Create a new secret named my-secret with keys named ssh-privatekey and ssh-publickey instead of the names of the keys on disk |
|
854 | 854 |
$ oc secrets new my-secret ssh-privatekey=~/.ssh/id_rsa ssh-publickey=~/.ssh/id_rsa.pub |
855 | 855 |
|
856 |
- // Create a new secret named my-secret with keys for each file in the folder "bar" |
|
856 |
+ # Create a new secret named my-secret with keys for each file in the folder "bar" |
|
857 | 857 |
$ oc secrets new my-secret path/to/bar |
858 | 858 |
|
859 |
- // Create a new .dockercfg secret named my-secret |
|
859 |
+ # Create a new .dockercfg secret named my-secret |
|
860 | 860 |
$ oc secrets new my-secret path/to/.dockercfg |
861 |
+ |
|
862 |
+ # Create a new .docker/config.json secret named my-secret |
|
863 |
+ $ oc secrets new my-secret .dockerconfigjson=path/to/.docker/config.json |
|
861 | 864 |
---- |
862 | 865 |
==== |
863 | 866 |
|
... | ... |
@@ -29,17 +29,20 @@ with a name and file path, in which case the given name will be used. Specifying |
29 | 29 |
using with all valid keys in that directory. |
30 | 30 |
` |
31 | 31 |
|
32 |
- newExample = ` // Create a new secret named my-secret with a key named ssh-privatekey |
|
32 |
+ newExample = ` # Create a new secret named my-secret with a key named ssh-privatekey |
|
33 | 33 |
$ %[1]s my-secret ~/.ssh/ssh-privatekey |
34 | 34 |
|
35 |
- // Create a new secret named my-secret with keys named ssh-privatekey and ssh-publickey instead of the names of the keys on disk |
|
35 |
+ # Create a new secret named my-secret with keys named ssh-privatekey and ssh-publickey instead of the names of the keys on disk |
|
36 | 36 |
$ %[1]s my-secret ssh-privatekey=~/.ssh/id_rsa ssh-publickey=~/.ssh/id_rsa.pub |
37 | 37 |
|
38 |
- // Create a new secret named my-secret with keys for each file in the folder "bar" |
|
38 |
+ # Create a new secret named my-secret with keys for each file in the folder "bar" |
|
39 | 39 |
$ %[1]s my-secret path/to/bar |
40 | 40 |
|
41 |
- // Create a new .dockercfg secret named my-secret |
|
42 |
- $ %[1]s my-secret path/to/.dockercfg` |
|
41 |
+ # Create a new .dockercfg secret named my-secret |
|
42 |
+ $ %[1]s my-secret path/to/.dockercfg |
|
43 |
+ |
|
44 |
+ # Create a new .docker/config.json secret named my-secret |
|
45 |
+ $ %[1]s my-secret .dockerconfigjson=path/to/.docker/config.json` |
|
43 | 46 |
) |
44 | 47 |
|
45 | 48 |
type CreateSecretOptions struct { |