From 841f997973af14f100d8ad2b49dbea218b3a26f4 Mon Sep 17 00:00:00 2001 From: Sean Pedersen Date: Mon, 2 Dec 2024 15:19:33 -0700 Subject: [PATCH 1/3] add eksctl support --- plugins/aws/eksctl.go | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 plugins/aws/eksctl.go diff --git a/plugins/aws/eksctl.go b/plugins/aws/eksctl.go new file mode 100644 index 00000000..c84ec16b --- /dev/null +++ b/plugins/aws/eksctl.go @@ -0,0 +1,26 @@ +package aws + +import ( + "github.com/1Password/shell-plugins/sdk" + "github.com/1Password/shell-plugins/sdk/needsauth" + "github.com/1Password/shell-plugins/sdk/schema" + "github.com/1Password/shell-plugins/sdk/schema/credname" +) + +func eksctlCLI() schema.Executable { + return schema.Executable{ + Name: "eksctl CLI", + Runs: []string{"eksctl"}, + DocsURL: sdk.URL("https://eksctl.io/"), + NeedsAuth: needsauth.IfAll( + needsauth.NotForHelpOrVersion(), + needsauth.NotWithoutArgs(), + ), + Uses: []schema.CredentialUsage{ + { + Name: credname.AccessKey, + Provisioner: CLIProvisioner{}, + }, + }, + } +} From c7c3f15b203f003b321f4d20f388285c17d1f6bc Mon Sep 17 00:00:00 2001 From: Sean Pedersen Date: Mon, 2 Dec 2024 15:20:06 -0700 Subject: [PATCH 2/3] add eksctlCLI exacutable --- plugins/aws/plugin.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/aws/plugin.go b/plugins/aws/plugin.go index a19eeca1..bd3d3e5e 100644 --- a/plugins/aws/plugin.go +++ b/plugins/aws/plugin.go @@ -18,6 +18,7 @@ func New() schema.Plugin { Executables: []schema.Executable{ AWSCLI(), AWSCDKToolkit(), + eksctlCLI(), }, } -} +} \ No newline at end of file From b59fbfcb7100e46d6e51dfde42096854bcfd3818 Mon Sep 17 00:00:00 2001 From: Sean Pedersen Date: Wed, 4 Dec 2024 12:05:41 -0700 Subject: [PATCH 3/3] gofmt on plugin.go --- plugins/aws/plugin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/aws/plugin.go b/plugins/aws/plugin.go index bd3d3e5e..75255e7d 100644 --- a/plugins/aws/plugin.go +++ b/plugins/aws/plugin.go @@ -21,4 +21,4 @@ func New() schema.Plugin { eksctlCLI(), }, } -} \ No newline at end of file +}