Commit Graph

4714 Commits

Author SHA1 Message Date
Bryan Boreham
04002f3287 Fix doc string for -probe.kubernetes 2018-02-19 17:41:32 +00:00
Bryan Boreham
dc1b768e73 Allow Kubernetes node-name to be set from env var
If we have the node-name then we can save work requesting the list of
local pods from kubelet.  And the best way to get the node name is via
the "downwards api", i.e. put this in the Daemonset Yaml:

        - name: KUBERNETES_NODENAME
          valueFrom:
            fieldRef:
              apiVersion: v1
              fieldPath: spec.nodeName
2018-02-19 17:31:04 +00:00
Bryan Boreham
b742846835 Optimise processTopology() (#3074)
* Add a benchmark for processprocessTopology()

* Shortcut merging with an empty set

* Use more efficient apis to create process node
2018-02-19 10:13:58 +00:00
Bryan Boreham
f72ced3380 Add topology.ReplaceNode() for efficiency (#3073)
* Add topology.ReplaceNode() for efficiency

In some places AddNode() was called after adding to an existing node,
in which case the Merge() is just a waste of time.
2018-02-19 10:13:31 +00:00
Matthias Radestock
474298c39c Merge pull request #3075 from weaveworks/no-return-topology-add
refactor: don't return receiver in Topology.AddNode()
2018-02-19 09:16:20 +00:00
Matthias Radestock
5b30b668ae refactor: don't return receiver in Topology.AddNode()
This had little use and was obscuring the mutating nature of
AddNode().
2018-02-19 05:10:04 +00:00
Bryan Boreham
c879cc65d3 Merge pull request #3062 from weaveworks/omitempty-idlist
Set 'omitempty' on Node Adjacency
2018-02-18 13:29:48 +00:00
Roberto Bruggemann
8bb79f0efc Merge pull request #3070 from weaveworks/monitor-flag
Disable detail panel link
2018-02-16 11:06:58 +00:00
Roberto Bruggemann
72255468c1 Disable detail panel link
The link is disabled if the `monitor` flag is not true.
If Weave Cloud runs without Monitor, the link is dead. The flag allows to pass Weave Cloud's Monitor state down to Scope.
2018-02-15 17:22:18 +00:00
Brice Fernandes
e106568dda Create README.md 2018-02-15 10:36:49 +00:00
Filip Barl
7f7d2d4964 Merge pull request #3066 from weaveworks/3015-dynamic-table-height
Relative positioning for Table view tables
2018-02-13 13:29:22 +01:00
Filip Barl
89c3e330f2 Use relative positioning of Table view tables. 2018-02-13 13:25:48 +01:00
Filip Barl
2101a28c36 Merge pull request #3065 from weaveworks/always-show-time-travel
Show Time Travel at all times in Weave Cloud
2018-02-13 11:54:54 +01:00
Filip Barl
dcb193d654 Addressed @foot's comments. 2018-02-13 11:51:37 +01:00
Filip Barl
165f3be2b4 Always show time travel. 2018-02-12 13:38:36 +01:00
Roberto Bruggemann
14f77fc0a8 Merge pull request #3060 from weaveworks/service-cpu-mem-link-to-monitor
Replace service cpu/mem link to 'Monitor'
2018-02-09 16:47:18 +00:00
Roberto Bruggemann
95a490da3a Service metrics: fix naming assumption
The link returned by service metrics is now built by looking up the deployment name in `report.Report` instead of assuming the service and the deployment have the same name.
2018-02-08 14:13:50 +00:00
Bryan Boreham
cb6edfeec1 Set 'omitempty' on Node Adjacency
Looks like an omission
2018-02-07 13:39:54 +00:00
Roberto Bruggemann
23f8d40355 Replace service cpu/mem link to 'Monitor'
The previous link to 'Monitor' contained a recording rule metric, and since not all Weave Clound instances have recording rules, the link would redirect to a 'Monitor' page without data points.
The recording rule metric has been substituted with the underlying query.
2018-02-07 13:11:01 +00:00
Simon
8ac481137e Merge pull request #3054 from weaveworks/only-show-image-status-on-controllers
Fixes bug showing "container image status" on all resource types
2018-02-06 09:22:17 +01:00
Matthias Radestock
20c57134c1 Merge pull request #3052 from weaveworks/3051-gke-perms
revamp install instructions
2018-02-05 15:18:36 +00:00
Matthias Radestock
7e807175d9 link to k8s instructions from openshift instructions 2018-02-05 14:44:24 +00:00
Matthias Radestock
a855358901 remove some references to 'standalone' mode
since _all_ the instructions refer to that.
2018-02-05 14:44:24 +00:00
Matthias Radestock
be1445bcb6 revamp installation instruction structure 2018-02-05 14:44:24 +00:00
Matthias Radestock
5ffd0a841b clarify the difference between standalone and Weave Cloud install 2018-02-05 14:44:24 +00:00
Matthias Radestock
07aaee2294 add GKE instructions 2018-02-05 14:44:24 +00:00
Matthias Radestock
a5ed279c15 tweak k8s instructions 2018-02-05 14:44:24 +00:00
Matthias Radestock
a2b78e223d extol more Weave Cloud goodness 2018-02-05 14:44:24 +00:00
Matthias Radestock
0de93e4584 cosmetic: remove trailing whitespace 2018-02-05 14:44:24 +00:00
Matthias Radestock
cf8019333f consolidate Weave Cloud instructions
The instructions for installing via Weave Cloud were rather out of
date, and in any case are embedded in Weave Cloud itself, so there is
no point repeating them here.
2018-02-05 14:44:24 +00:00
Roberto Bruggemann
ec3fa4de50 Merge pull request #3055 from weaveworks/release-1.7
Release 1.7.3
2018-02-05 14:37:45 +00:00
Roberto Bruggemann
b3572d1f30 Update scope version in docs to 1.7.3 v1.7.3 2018-02-05 13:59:40 +00:00
Roberto Bruggemann
f6af3f6591 Add release 1.7.3 to CHANGELOG 2018-02-05 13:59:36 +00:00
Roberto Bruggemann
ca95703033 Merge pull request #3050 from weaveworks/async-reflectors
Create reflectors asynchronously
2018-02-05 13:12:01 +00:00
Roberto Bruggemann
37771a0607 Create reflectors asynchronously
Reflectors are created and run within the same function, asynchronously from the main thread.
Creating reflectors may require calls to the kubernetes api, which can return errors.
API errors are not handled in the main thread, but are handled asynchronously by retries.
2018-02-05 12:01:59 +00:00
Simon Howe
d5829f21cb Fixes bug showing "container image status" on all resource types
- It should only be visible on the kubernetes contoller node-details
  panels.
- This fixes a bug where we were showing it on all node-details if you
  were on the controller topology.
2018-02-05 11:45:13 +01:00
Roberto Bruggemann
35d97bc2bd Merge pull request #3048 from weaveworks/release-1.7
Release 1.7.2
2018-02-02 11:31:44 +00:00
Roberto Bruggemann
af2ed85d37 Update scope version in docs to 1.7.2 v1.7.2 2018-02-02 10:51:18 +00:00
Roberto Bruggemann
3d8a88c46b Add release 1.7.2 to CHANGELOG 2018-02-02 10:51:09 +00:00
Roberto Bruggemann
9874ff3b2e Merge pull request #3045 from weaveworks/close-log-pipe
Close terminal pipe, when closing the pod panel
2018-02-01 13:30:12 +00:00
Roberto Bruggemann
520ca3a570 Close terminal pipe, when closing the pod panel
Moving `deletePipe()` in `componentWillUnmount()` ensures the pipe is deleted when:
1. the terminal is closed
2. the terminal is closed when closing the pod panel

The pipe still does not get deleted when popping out the terminal.
2018-01-31 15:07:55 +00:00
Roberto Bruggemann
8c627b50bd Merge pull request #3044 from weaveworks/cronjobs-1.8
Fetch cronjobs from 'batch/v1beta1'
2018-01-30 17:33:40 +00:00
Roberto Bruggemann
f4b55b3cf0 Fetch cronjobs from 'batch/v1beta1'
This applies if kubernetes' version is >= 1.8.
Otherwise fetch cronjobs from 'batch/v2alpha1'.
2018-01-30 17:04:32 +00:00
Roberto Bruggemann
710d665c41 Upgrade k8s.io/client-go to kubernetes-1.9.1
Upgraded from 99c19923, branch release-3.0.

This required fetching or upgrading the following:
* k8s.io/api to kubernetes-1.9.1
* k8s.io/apimachinery to kubernetes-1.9.1
* github.com/juju/ratelimit to 1.0.1
* github.com/spf13/pflag to 4c012f6d

Also, update Scope's imports/function calls to be compatible with the new client.
2018-01-30 10:14:42 +00:00
Matthias Radestock
ed7c73ffdf Merge pull request #3042 from kinvolk/iaguis/update-tcptracer-bpf
vendor: bump tcptracer-bpf

Fixes #2796
2018-01-29 18:27:42 +00:00
Iago López Galeiras
9f3e7d3ddc vendor: bump tcptracer-bpf
This includes:

* an eBPF object built with a newer kernel (4.14)
* an increased threshold for guessing offsets, which is necessary for
the eBPF tracer to work on Google's Container-Optimized OS (used by
GKE)
2018-01-26 14:04:58 +01:00
Roberto Bruggemann
848b1264ff Merge pull request #3039 from weaveworks/release-1.7
Release 1.7.1
2018-01-23 12:50:40 +00:00
Matthias Radestock
6cfb095d6f Merge pull request #3041 from weaveworks/update-install-namespace
Update install instructions to use weave namespace
2018-01-23 12:38:13 +00:00
Marcus Cobden
ecd0205e16 Update install instructions to use weave namespace 2018-01-23 11:39:37 +00:00
Roberto Bruggemann
d2b4d05e80 Update scope version in docs to 1.7.1 v1.7.1 2018-01-23 11:35:10 +00:00