Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ EXAMPLES:

ARGS:
name=<generated> Name of the SSH key. Max length is 1000
public-key SSH public key. Currently only the ssh-rsa, ssh-dss (DSA), ssh-ed25519 and ecdsa keys with NIST curves are supported. Max length is 65000
public-key SSH public key. Currently only the ssh-rsa, ssh-dss (DSA), ssh-ed25519 and ecdsa keys with NIST curves are supported. Max length is 65000 (Support file loading with @/path/to/file)
[project-id] Project ID to use. If none is passed the default project ID will be used

FLAGS:
Expand Down
2 changes: 2 additions & 0 deletions internal/namespaces/iam/v1alpha1/custom.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ func GetCommands() *core.Commands {
cmds.MustFind("iam", "policy", "create").Override(iamPolicyCreateBuilder)
cmds.MustFind("iam", "policy", "get").Override(iamPolicyGetBuilder)

cmds.MustFind("iam", "ssh-key", "create").ArgSpecs.GetByName("public-key").CanLoadFile = true

iamCmd := cmds.MustFind("iam", "api-key", "get")
iamCmd.ArgsType = iamApiKeyCustomBuilder.argType
iamCmd.ArgSpecs = iamApiKeyCustomBuilder.argSpecs
Expand Down
Loading