@@ -92,7 +92,7 @@ func NewCommandCLI(name, fullName string, in io.Reader, out, errout io.Writer) *
92
92
f := clientcmd .New (cmds .PersistentFlags ())
93
93
94
94
loginCmd := login .NewCmdLogin (fullName , f , in , out , errout )
95
- secretcmds := secrets .NewCmdSecrets (secrets .SecretsRecommendedName , fullName + " " + secrets .SecretsRecommendedName , f , in , out , errout , fullName + " edit" )
95
+ secretcmds := secrets .NewCmdSecrets (secrets .SecretsRecommendedName , fullName + " " + secrets .SecretsRecommendedName , f , out , errout )
96
96
97
97
groups := ktemplates.CommandGroups {
98
98
{
@@ -185,6 +185,10 @@ func NewCommandCLI(name, fullName string, in io.Reader, out, errout io.Writer) *
185
185
}
186
186
groups .Add (cmds )
187
187
188
+ ocEditFullName := fullName + " edit"
189
+ ocSecretsFullName := fullName + " " + secrets .SecretsRecommendedName
190
+ ocSecretsNewFullName := ocSecretsFullName + " " + secrets .NewSecretRecommendedCommandName
191
+
188
192
filters := []string {
189
193
"options" ,
190
194
"deploy" ,
@@ -193,6 +197,10 @@ func NewCommandCLI(name, fullName string, in io.Reader, out, errout io.Writer) *
193
197
moved (fullName , "set volume" , cmds , set .NewCmdVolume (fullName , f , out , errout )),
194
198
moved (fullName , "logs" , cmds , cmd .NewCmdBuildLogs (fullName , f , out )),
195
199
moved (fullName , "secrets link" , secretcmds , secrets .NewCmdLinkSecret ("add" , fullName , f , out )),
200
+ moved (fullName , "create secret" , secretcmds , secrets .NewCmdCreateSecret (secrets .NewSecretRecommendedCommandName , fullName , f , out )),
201
+ moved (fullName , "create secret" , secretcmds , secrets .NewCmdCreateDockerConfigSecret (secrets .CreateDockerConfigSecretRecommendedName , fullName , f , out , ocSecretsNewFullName , ocEditFullName )),
202
+ moved (fullName , "create secret" , secretcmds , secrets .NewCmdCreateBasicAuthSecret (secrets .CreateBasicAuthSecretRecommendedCommandName , fullName , f , in , out , ocSecretsNewFullName , ocEditFullName )),
203
+ moved (fullName , "create secret" , secretcmds , secrets .NewCmdCreateSSHAuthSecret (secrets .CreateSSHAuthSecretRecommendedCommandName , fullName , f , out , ocSecretsNewFullName , ocEditFullName )),
196
204
}
197
205
198
206
changeSharedFlagDefaults (cmds )
0 commit comments