Skip to content

Commit 857ab4b

Browse files
committed
cleanup
1 parent 4cc8dd2 commit 857ab4b

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

packages/cli/src/commands/apply.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export default async (
106106
) => {
107107
try {
108108
const client = new KubernetesClient({
109-
restEndpoint: argv.clientUrl || 'http://127.0.0.1:8001'
109+
restEndpoint: argv.clientUrl
110110
});
111111

112112
const filePath = argv.f || argv._?.[0] || await promptYamlFilePath(prompter, argv);

packages/cli/src/commands/cluster-info.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default async (
1010
) => {
1111
try {
1212
const client = new KubernetesClient({
13-
restEndpoint: _argv.clientUrl || 'http://127.0.0.1:8001'
13+
restEndpoint: _argv.clientUrl
1414
});
1515

1616
console.log(chalk.blue('Kubernetes cluster info:'));

packages/cli/src/commands/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export default async (
4848
) => {
4949
try {
5050
const client = new KubernetesClient({
51-
restEndpoint: argv.clientUrl || 'http://127.0.0.1:8001'
51+
restEndpoint: argv.clientUrl
5252
});
5353

5454
const subcommand = argv._?.[0];

packages/cli/src/commands/deploy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ export default async (
196196
try {
197197
// Initialize Kubernetes client
198198
const client = new KubernetesClient({
199-
restEndpoint: argv.clientUrl || 'http://127.0.0.1:8001'
199+
restEndpoint: argv.clientUrl
200200
});
201201

202202
// Create deployment

packages/cli/src/commands/exec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export default async (
141141
) => {
142142
try {
143143
const client = new KubernetesClient({
144-
restEndpoint: argv.clientUrl || 'http://127.0.0.1:8001'
144+
restEndpoint: argv.clientUrl
145145
});
146146

147147
const namespace = argv.n || argv.namespace || getCurrentNamespace();

packages/cli/src/commands/get.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export default async (
127127
) => {
128128
try {
129129
const client = new KubernetesClient({
130-
restEndpoint: argv.clientUrl || 'http://127.0.0.1:8001'
130+
restEndpoint: argv.clientUrl
131131
});
132132

133133
const namespace = argv.n || argv.namespace || getCurrentNamespace();

packages/cli/src/commands/logs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export default async (
9999
) => {
100100
try {
101101
const client = new KubernetesClient({
102-
restEndpoint: argv.clientUrl || 'http://127.0.0.1:8001'
102+
restEndpoint: argv.clientUrl
103103
});
104104

105105
const namespace = argv.n || argv.namespace || getCurrentNamespace();

packages/cli/src/commands/port-forward.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export default async (
144144
) => {
145145
try {
146146
const client = new KubernetesClient({
147-
restEndpoint: argv.clientUrl || 'http://127.0.0.1:8001'
147+
restEndpoint: argv.clientUrl
148148
});
149149

150150
const namespace = argv.n || argv.namespace || getCurrentNamespace();

0 commit comments

Comments
 (0)