Skip to content

Commit 22f8a22

Browse files
committed
Incorrect User-Agent #3857 Read version from Configuration
1 parent 6b9649e commit 22f8a22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kubernetes/src/main/java/io/kubernetes/client/openapi/ApiClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ private void init() {
140140
json = new JSON();
141141

142142
// Set default User-Agent.
143-
setUserAgent("Kubernetes Java Client/25.0.0-SNAPSHOT");
143+
setUserAgent(String.join("/", "Kubernetes Java Client", Configuration.VERSION));
144144

145145
authentications = new HashMap<String, Authentication>();
146146
}

0 commit comments

Comments
 (0)