Skip to content
This repository has been archived by the owner on May 15, 2021. It is now read-only.

Commit

Permalink
KB-54: resource get url always returns simple url for not namespaced …
Browse files Browse the repository at this point in the history
…resources
  • Loading branch information
uqee committed Dec 1, 2017
1 parent c9defdd commit 9804233
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/k8s/resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ export function resourceDecorate(group, version) {
}

export function resourceGetUrl(resource, namespace) {
return namespace
return resource.namespaced && namespace
? `${resource[URL_PART_GROUP]}/namespaces/${namespace}/${resource[URL_PART_RESOURCE]}`
: resource[URL];
}

0 comments on commit 9804233

Please sign in to comment.