Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dinky
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangpeng
dinky
Commits
4af8b343
Unverified
Commit
4af8b343
authored
Jan 10, 2024
by
kylinmac
Committed by
GitHub
Jan 10, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix-2962][gateway] fix kubernetesClient (#2963)
Co-authored-by:
macheng
<
macheng01@huice.com
>
parent
19bc1aaa
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
KubernetesGateway.java
.../java/org/dinky/gateway/kubernetes/KubernetesGateway.java
+2
-1
No files found.
dinky-gateway/src/main/java/org/dinky/gateway/kubernetes/KubernetesGateway.java
View file @
4af8b343
...
@@ -50,6 +50,7 @@ import cn.hutool.core.io.FileUtil;
...
@@ -50,6 +50,7 @@ import cn.hutool.core.io.FileUtil;
import
cn.hutool.core.lang.Assert
;
import
cn.hutool.core.lang.Assert
;
import
cn.hutool.core.text.StrFormatter
;
import
cn.hutool.core.text.StrFormatter
;
import
cn.hutool.core.util.ReflectUtil
;
import
cn.hutool.core.util.ReflectUtil
;
import
io.fabric8.kubernetes.client.Config
;
import
io.fabric8.kubernetes.client.DefaultKubernetesClient
;
import
io.fabric8.kubernetes.client.DefaultKubernetesClient
;
import
io.fabric8.kubernetes.client.KubernetesClient
;
import
io.fabric8.kubernetes.client.KubernetesClient
;
...
@@ -120,7 +121,7 @@ public abstract class KubernetesGateway extends AbstractGateway {
...
@@ -120,7 +121,7 @@ public abstract class KubernetesGateway extends AbstractGateway {
if
(
TextUtils
.
isEmpty
(
k8sConfig
.
getKubeConfig
()))
{
if
(
TextUtils
.
isEmpty
(
k8sConfig
.
getKubeConfig
()))
{
kubernetesClient
=
new
DefaultKubernetesClient
();
kubernetesClient
=
new
DefaultKubernetesClient
();
}
else
{
}
else
{
kubernetesClient
=
DefaultKubernetesClient
.
fromConfig
(
k8sConfig
.
getKubeConfig
(
));
kubernetesClient
=
new
DefaultKubernetesClient
(
Config
.
fromKubeconfig
(
k8sConfig
.
getKubeConfig
()
));
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment