diff --git a/CHANGELOG.md b/CHANGELOG.md index 0380dd95eec..ce91a79767b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ #### Bugs * Fix #1796: Check if BouncyCastle provider is set * Fix #1724: createOrReplace function does not work properly for Custom defined resources +* Fix #1803: Missing "/" in request url while using customresource client * Fix #1789: Create or replace on operation seems broken * Fix #1782: Informer Deadlock; Fix lock typo in SharedProcessor @@ -11,6 +12,7 @@ * Fix #1797: Utils.waitUntilReady should record the stack trace of the caller before rethrowing an exception * Add support for filtering labels by EXISTS/NOT_EXISTS via the single argument versions of `.withLabel` and `.withoutLabel` * Schedule reconnect in case of HTTP_GONE when watching; the rescheduled connect will start from beginning of history by not specifying resourceVersion + #### Dependency Upgrade * Updated Knative Serving to v0.9.90 * Update Tekton to v0.7.0 diff --git a/kubernetes-client/src/main/java/io/fabric8/kubernetes/client/dsl/internal/RawCustomResourceOperationsImpl.java b/kubernetes-client/src/main/java/io/fabric8/kubernetes/client/dsl/internal/RawCustomResourceOperationsImpl.java index a14c4920c89..fa7b67634fb 100644 --- a/kubernetes-client/src/main/java/io/fabric8/kubernetes/client/dsl/internal/RawCustomResourceOperationsImpl.java +++ b/kubernetes-client/src/main/java/io/fabric8/kubernetes/client/dsl/internal/RawCustomResourceOperationsImpl.java @@ -536,7 +536,13 @@ private String fetchUrl(String name, String namespace, Map label } private String fetchUrl(String namespace, Map labels) { + if (config.getMasterUrl() == null) { + return null; + } + StringBuilder urlBuilder = new StringBuilder(config.getMasterUrl()); + + urlBuilder.append(config.getMasterUrl().endsWith("/") ? "" : "/"); urlBuilder.append("apis/") .append(customResourceDefinition.getGroup()) .append("/")