Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
origin-web-common
Overview
Overview
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
Java-于龙
origin-web-common
Commits
96ef8470
Unverified
Commit
96ef8470
authored
Apr 10, 2018
by
Sam Padgett
Committed by
GitHub
Apr 10, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #322 from spadgett/v1beta1-partial-objects
Request v1beta1/PartialObjectMetadataList
parents
e69c3b67
c7f37004
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
26 deletions
+8
-26
origin-web-common-services.js
dist/origin-web-common-services.js
+2
-8
origin-web-common.js
dist/origin-web-common.js
+2
-8
origin-web-common.min.js
dist/origin-web-common.min.js
+2
-2
dataService.js
src/services/dataService.js
+2
-8
No files found.
dist/origin-web-common-services.js
View file @
96ef8470
...
...
@@ -1842,14 +1842,8 @@ angular.module('openshiftCommonServices')
angular
.
module
(
'openshiftCommonServices'
)
.
factory
(
'DataService'
,
function
(
$cacheFactory
,
$http
,
$ws
,
$rootScope
,
$q
,
API_CFG
,
APIService
,
Logger
,
$timeout
,
base64
,
base64util
)
{
// Accept PartialObjectMetadataList. Unfortunately we can't use the Accept
// header to fallback to JSON due to an API server content negotiation bug.
// https://github.com/kubernetes/kubernetes/issues/50519
//
// This is a potential version skew issue for when the web console runs in
// a pod where we potentially need to support different server versions.
// https://trello.com/c/9oaUh8xP
var
ACCEPT_PARTIAL_OBJECT_METADATA_LIST
=
'application/json;as=PartialObjectMetadataList;v=v1alpha1;g=meta.k8s.io'
;
// This will request just a list of the object metadata, falling back to application/json if needed.
var
ACCEPT_PARTIAL_OBJECT_METADATA_LIST
=
'application/json;as=PartialObjectMetadataList;v=v1beta1;g=meta.k8s.io,application/json'
;
function
Data
(
array
)
{
this
.
_data
=
{};
...
...
dist/origin-web-common.js
View file @
96ef8470
...
...
@@ -3160,14 +3160,8 @@ angular.module('openshiftCommonServices')
angular
.
module
(
'openshiftCommonServices'
)
.
factory
(
'DataService'
,
[
"$cacheFactory"
,
"$http"
,
"$ws"
,
"$rootScope"
,
"$q"
,
"API_CFG"
,
"APIService"
,
"Logger"
,
"$timeout"
,
"base64"
,
"base64util"
,
function
(
$cacheFactory
,
$http
,
$ws
,
$rootScope
,
$q
,
API_CFG
,
APIService
,
Logger
,
$timeout
,
base64
,
base64util
)
{
// Accept PartialObjectMetadataList. Unfortunately we can't use the Accept
// header to fallback to JSON due to an API server content negotiation bug.
// https://github.com/kubernetes/kubernetes/issues/50519
//
// This is a potential version skew issue for when the web console runs in
// a pod where we potentially need to support different server versions.
// https://trello.com/c/9oaUh8xP
var
ACCEPT_PARTIAL_OBJECT_METADATA_LIST
=
'application/json;as=PartialObjectMetadataList;v=v1alpha1;g=meta.k8s.io'
;
// This will request just a list of the object metadata, falling back to application/json if needed.
var
ACCEPT_PARTIAL_OBJECT_METADATA_LIST
=
'application/json;as=PartialObjectMetadataList;v=v1beta1;g=meta.k8s.io,application/json'
;
function
Data
(
array
)
{
this
.
_data
=
{};
...
...
dist/origin-web-common.min.js
View file @
96ef8470
...
...
@@ -1759,13 +1759,13 @@ f.prototype._uniqueKey = function(e, t, n, r) {
var
o
,
i
=
n
&&
n
.
namespace
||
_
.
get
(
n
,
"project.metadata.name"
)
||
n
.
projectName
,
a
=
_
.
get
(
r
,
"http.params"
),
s
=
this
.
_urlForResource
(
e
,
t
,
n
,
null
,
angular
.
extend
({},
{},
{
namespace
:
i
}));
return
o
=
s
?
s
.
toString
()
:
e
||
"<unknown>"
,
o
+=
w
(
a
||
{}),
_
.
get
(
r
,
"partialObjectMetadataList"
)
?
o
+
"#application/json;as=PartialObjectMetadataList;v=v1
alpha1;g=meta.k8s.io
"
:
o
;
return
o
=
s
?
s
.
toString
()
:
e
||
"<unknown>"
,
o
+=
w
(
a
||
{}),
_
.
get
(
r
,
"partialObjectMetadataList"
)
?
o
+
"#application/json;as=PartialObjectMetadataList;v=v1
beta1;g=meta.k8s.io,application/json
"
:
o
;
},
f
.
prototype
.
_startListOp
=
function
(
e
,
n
,
r
)
{
r
=
r
||
{};
var
o
=
_
.
get
(
r
,
"http.params"
)
||
{},
i
=
this
.
_uniqueKey
(
e
,
null
,
n
,
r
);
this
.
_listInFlight
(
i
,
!
0
);
var
a
=
{};
r
.
partialObjectMetadataList
&&
(
a
.
Accept
=
"application/json;as=PartialObjectMetadataList;v=v1
alpha1;g=meta.k8s.io
"
);
r
.
partialObjectMetadataList
&&
(
a
.
Accept
=
"application/json;as=PartialObjectMetadataList;v=v1
beta1;g=meta.k8s.io,application/json
"
);
var
s
,
c
=
this
;
if
(
n
.
projectPromise
&&
!
e
.
equals
(
"projects"
))
n
.
projectPromise
.
done
(
function
(
l
)
{
if
(
!
(
s
=
c
.
_urlForResource
(
e
,
null
,
n
,
!
1
,
_
.
assign
({},
o
,
{
...
...
src/services/dataService.js
View file @
96ef8470
...
...
@@ -4,14 +4,8 @@
angular
.
module
(
'openshiftCommonServices'
)
.
factory
(
'DataService'
,
function
(
$cacheFactory
,
$http
,
$ws
,
$rootScope
,
$q
,
API_CFG
,
APIService
,
Logger
,
$timeout
,
base64
,
base64util
)
{
// Accept PartialObjectMetadataList. Unfortunately we can't use the Accept
// header to fallback to JSON due to an API server content negotiation bug.
// https://github.com/kubernetes/kubernetes/issues/50519
//
// This is a potential version skew issue for when the web console runs in
// a pod where we potentially need to support different server versions.
// https://trello.com/c/9oaUh8xP
var
ACCEPT_PARTIAL_OBJECT_METADATA_LIST
=
'application/json;as=PartialObjectMetadataList;v=v1alpha1;g=meta.k8s.io'
;
// This will request just a list of the object metadata, falling back to application/json if needed.
var
ACCEPT_PARTIAL_OBJECT_METADATA_LIST
=
'application/json;as=PartialObjectMetadataList;v=v1beta1;g=meta.k8s.io,application/json'
;
function
Data
(
array
)
{
this
.
_data
=
{};
...
...
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