mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 02:00:43 +00:00
Fixes images in details-panel after service -> resources change
This commit is contained in:
@@ -825,7 +825,8 @@ export function getImagesForService(orgId, serviceId) {
|
||||
serviceId
|
||||
});
|
||||
|
||||
api.getFluxImages(orgId, serviceId)
|
||||
// Use the fluxv2 api
|
||||
api.getFluxImages(orgId, serviceId, 2)
|
||||
.then((services) => {
|
||||
dispatch({
|
||||
type: ActionTypes.RECEIVE_SERVICE_IMAGES,
|
||||
|
||||
@@ -6,7 +6,7 @@ import { CircularProgress } from 'weaveworks-ui-components';
|
||||
|
||||
import { getImagesForService } from '../../actions/app-actions';
|
||||
|
||||
const topologyWhitelist = ['services', 'deployments'];
|
||||
const topologyWhitelist = ['kube-controllers'];
|
||||
|
||||
function getNewImages(images, currentId) {
|
||||
// Assume that the current image is always in the list of all available images.
|
||||
@@ -107,7 +107,8 @@ class NodeDetailsImageStatus extends React.PureComponent {
|
||||
|
||||
function mapStateToProps({ scope }, { metadata, name }) {
|
||||
const namespace = find(metadata, d => d.id === 'kubernetes_namespace');
|
||||
const serviceId = namespace ? `${namespace.value}/${name}` : null;
|
||||
const nodeType = find(metadata, d => d.id === 'kubernetes_node_type');
|
||||
const serviceId = (namespace && nodeType) ? `${namespace.value}:${nodeType.value.toLowerCase()}/${name}` : null;
|
||||
const { containers, isFetching, errors } = scope.getIn(['serviceImages', serviceId]) || {};
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user