Skip to content

Commit 146a659

Browse files
committed
add gcloud kubectl auth plugin to devbox
1 parent fadb118 commit 146a659

File tree

4 files changed

+83
-49
lines changed

4 files changed

+83
-49
lines changed

devbox.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"gh@latest",
77
"go@latest",
88
"go-task@latest",
9-
"google-cloud-sdk@latest",
9+
"path:gcloud#google-cloud-sdk",
1010
"gum@latest",
1111
"jq@latest",
1212
"k9s@latest",

devbox.lock

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -289,54 +289,6 @@
289289
}
290290
}
291291
},
292-
"google-cloud-sdk@latest": {
293-
"last_modified": "2024-05-22T06:18:38Z",
294-
"resolved": "github:NixOS/nixpkgs/3f316d2a50699a78afe5e77ca486ad553169061e#google-cloud-sdk",
295-
"source": "devbox-search",
296-
"version": "475.0.0",
297-
"systems": {
298-
"aarch64-darwin": {
299-
"outputs": [
300-
{
301-
"name": "out",
302-
"path": "/nix/store/s3hak6b0mmb2hx86h3nw0ycw8yb00d8y-google-cloud-sdk-475.0.0",
303-
"default": true
304-
}
305-
],
306-
"store_path": "/nix/store/s3hak6b0mmb2hx86h3nw0ycw8yb00d8y-google-cloud-sdk-475.0.0"
307-
},
308-
"aarch64-linux": {
309-
"outputs": [
310-
{
311-
"name": "out",
312-
"path": "/nix/store/5p94d16aqg8a04bin4pcz19zmsmadp99-google-cloud-sdk-475.0.0",
313-
"default": true
314-
}
315-
],
316-
"store_path": "/nix/store/5p94d16aqg8a04bin4pcz19zmsmadp99-google-cloud-sdk-475.0.0"
317-
},
318-
"x86_64-darwin": {
319-
"outputs": [
320-
{
321-
"name": "out",
322-
"path": "/nix/store/a55rqgn3b6ycvkl8i9radrfkp7p1yisn-google-cloud-sdk-475.0.0",
323-
"default": true
324-
}
325-
],
326-
"store_path": "/nix/store/a55rqgn3b6ycvkl8i9radrfkp7p1yisn-google-cloud-sdk-475.0.0"
327-
},
328-
"x86_64-linux": {
329-
"outputs": [
330-
{
331-
"name": "out",
332-
"path": "/nix/store/yfkm1jl2frrvgzyxqc53f3szvnk0xgmj-google-cloud-sdk-475.0.0",
333-
"default": true
334-
}
335-
],
336-
"store_path": "/nix/store/yfkm1jl2frrvgzyxqc53f3szvnk0xgmj-google-cloud-sdk-475.0.0"
337-
}
338-
}
339-
},
340292
"gum@latest": {
341293
"last_modified": "2024-05-12T16:19:40Z",
342294
"resolved": "github:NixOS/nixpkgs/3281bec7174f679eabf584591e75979a258d8c40#gum",

gcloud/flake.lock

Lines changed: 61 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gcloud/flake.nix

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
description = "Google Cloud SDK with GKE auth plugin";
3+
4+
inputs = {
5+
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
6+
flake-utils.url = "github:numtide/flake-utils";
7+
};
8+
9+
outputs = { self, nixpkgs, flake-utils}:
10+
flake-utils.lib.eachDefaultSystem (system:
11+
let
12+
pkgs = import nixpkgs {
13+
inherit system;
14+
};
15+
in {
16+
packages = {
17+
google-cloud-sdk = pkgs.google-cloud-sdk.withExtraComponents [pkgs.google-cloud-sdk.components.gke-gcloud-auth-plugin];
18+
};
19+
}
20+
);
21+
}

0 commit comments

Comments
 (0)