@@ -1314,10 +1314,10 @@ function OverviewController($scope,
1314
1314
1315
1315
var canI = $filter ( 'canI' ) ;
1316
1316
// The canI check on watch should be temporary until we have a different solution for handling secret parameters
1317
- if ( CatalogService . SERVICE_CATALOG_ENABLED && canI ( { resource : 'instances ' , group : 'servicecatalog.k8s.io' } , 'watch' ) ) {
1317
+ if ( CatalogService . SERVICE_CATALOG_ENABLED && canI ( { resource : 'serviceinstances ' , group : 'servicecatalog.k8s.io' } , 'watch' ) ) {
1318
1318
watches . push ( DataService . watch ( {
1319
1319
group : 'servicecatalog.k8s.io' ,
1320
- resource : 'instances '
1320
+ resource : 'serviceinstances '
1321
1321
} , context , function ( serviceInstances ) {
1322
1322
state . serviceInstances = serviceInstances . by ( 'metadata.name' ) ;
1323
1323
_ . each ( state . serviceInstances , function ( instance ) {
@@ -1330,10 +1330,10 @@ function OverviewController($scope,
1330
1330
} , { poll : limitWatches , pollInterval : DEFAULT_POLL_INTERVAL } ) ) ;
1331
1331
}
1332
1332
1333
- if ( CatalogService . SERVICE_CATALOG_ENABLED && canI ( { resource : 'bindings ' , group : 'servicecatalog.k8s.io' } , 'watch' ) ) {
1333
+ if ( CatalogService . SERVICE_CATALOG_ENABLED && canI ( { resource : 'serviceinstancecredentials ' , group : 'servicecatalog.k8s.io' } , 'watch' ) ) {
1334
1334
watches . push ( DataService . watch ( {
1335
1335
group : 'servicecatalog.k8s.io' ,
1336
- resource : 'bindings '
1336
+ resource : 'serviceinstancecredentials '
1337
1337
} , context , function ( bindings ) {
1338
1338
state . bindings = bindings . by ( 'metadata.name' ) ;
1339
1339
overview . bindingsByInstanceRef = _ . groupBy ( state . bindings , 'spec.instanceRef.name' ) ;
@@ -1347,7 +1347,7 @@ function OverviewController($scope,
1347
1347
state . limitRanges = response . by ( "metadata.name" ) ;
1348
1348
} ) ;
1349
1349
1350
- if ( CatalogService . SERVICE_CATALOG_ENABLED && canI ( { resource : 'instances ' , group : 'servicecatalog.k8s.io' } , 'watch' ) ) {
1350
+ if ( CatalogService . SERVICE_CATALOG_ENABLED && canI ( { resource : 'serviceinstances ' , group : 'servicecatalog.k8s.io' } , 'watch' ) ) {
1351
1351
// TODO: update to behave like ImageStreamResolver
1352
1352
// - we may not even need to list these... perhaps just fetch the ones we need when needed
1353
1353
// If we can't watch instances don't bother getting service classes either
0 commit comments