message: Add cluster to query params of websocket requests
  Current active cluster was missing from websocket requests made with the k8sWatch util function, which was causing outdated data to be shown on resource pages when switching between clusters that both have the resource defined.
diff: @@ -43,7 +43,7 @@ export const getK8sResourcePath = (model: K8sModel, options: Options): string =>
  u += `/${options.path}`;
  }
  if (!_.isEmpty(options.queryParams)) {
  - const q = _.map(options.queryParams, function(v, k) {
  + const q = _.map(options.queryParams, (v, k) => {
  return `${k}=${v}`;
  });
  u += `?${q.join('&')}`;
  @@ -109,11 +109,11 @@ export const toRequirements = (selector: Selector = {}): MatchExpression[] => {
  Object.keys(matchLabels || {})
  .sort()
  - .forEach(function(k) {
  + .forEach((k) => {
  requirements.push(createEquals(k, matchLabels[k]));
  });
  - (matchExpressions || []).forEach(function(me) {
  + (matchExpressions || []).forEach((me) => {
  requirements.push(me);
  });
  @@ -132,6 +132,7 @@ export const k8sWatch = (
  resourceVersion?: string;
  ns?: string;
  fieldSelector?: string;
  + cluster?: string;
  } = {},
  wsOptions: {
  [key: string]: any;
  @@ -169,6 +170,10 @@ export const k8sWatch = (
  opts.ns = query.ns;
  }
  + if (query.cluster) {
  + queryParams.cluster = encodeURIComponent(query.cluster);
  + }
  +
  if (query.resourceVersion) {
  queryParams.resourceVersion = encodeURIComponent(query.resourceVersion);
  }
  