Skip to content

Commit

Permalink
Fix #1803: Missing "/" in request url while using customresource client
Browse files Browse the repository at this point in the history
  • Loading branch information
rohanKanojia committed Oct 9, 2019
1 parent 6889a05 commit eed0c10
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
### 4.6-SNAPSHOT
#### Bugs
* 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

#### Improvements
* Add support for filtering labels by EXISTS/NOT_EXISTS via the single argument versions of `.withLabel` and `.withoutLabel`
* Add support for filtering labels by EXISTS/NOT-EXISTS via the single argument versions of `.withLabel` and `.withoutLabel`
#### Dependency Upgrade
* Updated Knative Serving to v0.9.90
* Update Tekton to v0.7.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,13 @@ private Map<String, Object> convertJsonStringToMap(String objectAsString) throws
}

private String fetchUrl(String namespace, Map<String, String> 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("/")
Expand Down

0 comments on commit eed0c10

Please sign in to comment.