Skip to content

Commit

Permalink
Update some deno flags e.g. unstable
Browse files Browse the repository at this point in the history
  • Loading branch information
danopia committed Sep 17, 2024
1 parent 3ec886d commit 168c22f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/get-resource.ts
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env -S deno run --unstable --allow-env
#!/usr/bin/env -S deno run --unstable-http --allow-env --allow-read=/var/run/secrets/kubernetes.io

import { autoDetectClient } from '../mod.ts';

Expand Down
5 changes: 2 additions & 3 deletions examples/kubectl-port-forward.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env -S deno run --allow-run=kubectl
#!/usr/bin/env -S deno run --allow-run=kubectl --no-prompt

// This libary does not implement Kubernetes port-forwarding.
// If you would like to serve ports on localhost that proxy to a pod,
Expand Down Expand Up @@ -49,8 +49,7 @@ status.then(status => {
});

// Copy output lines (port-forward progress) to stderr
const stream = process.stdout.readable
for await (const line of stream
for await (const line of process.stdout
.pipeThrough(new TextDecoderStream())
.pipeThrough(new TextLineStream())) {
console.error('kubectl says:', line);
Expand Down
Empty file modified examples/stream-logs.ts
100644 → 100755
Empty file.
Empty file modified examples/watch-resources.ts
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions transports/via-kubeconfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ const isVerbose = Deno.args.includes('--verbose');
*
* Deno flags to use this client:
* Basic KubeConfig: --allow-read=$HOME/.kube --allow-net --allow-env
* CA cert fix: --unstable --allow-read=$HOME/.kube --allow-net --allow-env
* In-cluster 1: --allow-read=/var/run/secrets/kubernetes.io --allow-net --unstable
* CA cert fix: --unstable-http --allow-read=$HOME/.kube --allow-net --allow-env
* In-cluster 1: --allow-read=/var/run/secrets/kubernetes.io --allow-net --unstable-http
* In-cluster 2: --allow-read=/var/run/secrets/kubernetes.io --allow-net --cert=/var/run/secrets/kubernetes.io/serviceaccount/ca.crt
*
* Unstable features:
Expand Down

0 comments on commit 168c22f

Please sign in to comment.