Commit Graph

4678 Commits

Author SHA1 Message Date
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
Roberto Bruggemann
8b4ae3dfe6 Add release 1.7.1 to CHANGELOG 2018-01-23 11:35:06 +00:00
Filip Barl
66b9185728 Merge pull request #3030 from weaveworks/1727-remove-default-values-from-url-hash
Remove default values from URL state hash
2018-01-22 17:04:52 +01:00
Filip Barl
7e729ddb6a Fixed the failing tests. 2018-01-22 15:52:52 +01:00
Filip Barl
4b4a861f7a Remove all the default Scope state values from the URL. 2018-01-22 15:52:52 +01:00
Filip Barl
f3297adb09 Merge pull request #3028 from weaveworks/correctly-handle-time-travel-resume-through-url
Correctly handle Time Travel resuming in Monitor
2018-01-22 15:50:37 +01:00
Roland Schilter
f96dd4a532 client: Fix uptime sort in table view (#3038)
* client: Fix uptime sort in table view

Duration dataType for table columns is now sorted as numeric value.
Default sorting is kept as ascending and text is left-aligned, unlike
numbers.

* Make non-second unit show up in tests
2018-01-22 15:31:44 +01:00
Roberto Bruggemann
2d26c7201f Merge pull request #3037 from weaveworks/failed-to-connect-to-api
Check if k8s resources are supported in `runReflectorUntil`
2018-01-22 14:18:04 +00:00
Filip Barl
39c95a97c3 Correctly handle Time Travel resuming in Monitor. 2018-01-22 15:16:16 +01:00
Filip Barl
c56ff7e15b Merge pull request #3036 from weaveworks/3029-change-paused-at-timestamp-back-to-string
Change pausedAt format from moment() back to ISO string
2018-01-22 15:11:52 +01:00
Roberto Bruggemann
2f9e2fc9ce Check if k8s resources are supported in runReflectorUntil
`isResourceSupported` checks whether a kubernetes resource is supported by the api server.
This ensures that, if the probe is unable to communicate with the api server, the call is retried until a true/false response.

If `isResourceSupported` returns false, `ListAndWatch` is not called and `runReflectorUntil` just exits.
2018-01-22 13:46:55 +00:00
Filip Barl
382b0c6951 Fixed appendTime function and its tests. 2018-01-22 14:31:16 +01:00
Filip Barl
77b691ca0b Change pausedAt format from moment() back to ISO string for easier handling. 2018-01-19 19:26:39 +01:00
Roberto Bruggemann
ea0b5499d9 Merge pull request #3034 from weaveworks/very-high-cpu-on-get-logs
logReadCloser: ensure EOF after `Close()`
2018-01-19 15:01:51 +00:00
Roberto Bruggemann
9198f6b38b logReadCloser: ensure loop terminates if channels are closed
Adding the !EOF check to the loop condition ensures not reading from closed channels.
2018-01-19 14:23:13 +00:00
Roberto Bruggemann
d1d370ce01 logReadCloser: ensure reader errors yield EOF
This change makes the underlying reader set their corresponding `eof` slot to true on termination.
This make the overall logReadCloser converge to EOF in case of errors of the underlying readers, therefore prevent spinning on read.

`bufio.Reader.ReadBytes` may not return io.EOF when `Close()` closes the underlying reader.
For instance, closing logReadCloser from the Scope App makes `bufio.Reader.ReadBytes` produce the following error: `http2: response body closed`.
2018-01-19 14:13:29 +00:00
Roberto Bruggemann
f3c1183cd9 Merge pull request #3023 from weaveworks/release-1.7
Release 1.7.0
2018-01-17 18:19:01 +00:00
Filip Barl
0dedbeac07 Merge pull request #3025 from weaveworks/3024-stop-page-router-on-unmount
Stop page router on App unmount
2018-01-17 16:22:43 +01:00
Filip Barl
acfe66c6fe Stop page router on App unmount. 2018-01-17 15:42:03 +01:00
Roberto Bruggemann
889fbea83e Update Scope version in docs to 1.7.0 v1.7.0 2018-01-17 13:55:40 +00:00
Roberto Bruggemann
ae46d8c186 Add release 1.7.0 to CHANGELOG 2018-01-17 13:55:35 +00:00
Roberto Bruggemann
e37a147d94 Merge pull request #3021 from weaveworks/terminal-not-connected
Set a timeout to Terminal animation
2018-01-16 18:53:25 +00:00
Roberto Bruggemann
c00ab5e9e7 Set a timeout to Terminal animation
If the animation has no effect, `onTransitionEnd`'s handler is not be called.
Since `onTransitionEnd`'s handler controls whether the terminal is shown or not (by passing `connect=true` as a Terminal prop), set the `animated` variable to true after a timeout.

Please see:
* https://stackoverflow.com/questions/2087510/callback-on-css-transition/11354026#11354026
* https://github.com/scttnlsn/backbone.viewkit/issues/4
* https://forums.xamarin.com/discussion/58456/why-isnt-my-transitionlistener-getting-called
2018-01-15 14:28:03 +00:00
Roberto Bruggemann
f42e22098e Merge pull request #3014 from weaveworks/stop-fetching-replicasets
Stop fetching ReplicaSets and ReplicationControllers
2018-01-15 10:33:30 +00:00
Roberto Bruggemann
50b182bff5 Rename CaptureResource -> CaptureDeployment
The function now only takes Deployments into account.
2018-01-11 17:01:03 +00:00
Filip Barl
bad20b6137 Merge pull request #3019 from weaveworks/2018-01-10-bump-ui-components-version
Bump ui-components to v0.4.18
2018-01-10 12:36:49 +01:00
Matthias Radestock
601a6b4369 Merge pull request #3016 from weaveworks/extract-endpoint-render
refactor: extract common code in endpoint mapping
2018-01-10 11:10:43 +00:00
Filip Barl
6264b0b296 Bump ui-components to v0.4.18 2018-01-10 11:38:02 +01:00
Matthias Radestock
f2bdbbde22 tiny tidy-up / refactor 2018-01-10 10:37:29 +00:00
Roberto Bruggemann
5a2e214140 Merge pull request #3013 from weaveworks/multi-container-log
Reading pod logs returns all container logs
2018-01-09 11:33:32 +00:00
Roberto Bruggemann
37ca2833f6 Merge pull request #3017 from weaveworks/namespace-fix
'updateKubeFilters` returns early if there are no namespaces
2018-01-08 18:13:47 +00:00
Roberto Bruggemann
00639d9476 logReaderCloser: remove stopChannels
Replace them with sync.WaitGroup.
2018-01-08 18:11:44 +00:00
Roberto Bruggemann
d3c53bacd6 'updateKubeFilters` returns early if there are no namespaces
This change makes sure an empty `APITopologyOptionGroup` struct is not created for namespaces, if there are no namespaces to report.
2018-01-08 17:37:49 +00:00
Matthias Radestock
fd5fa7a962 refactor: extract common code in endpoint mapping
This isn't quite as neat as we'd want to make it, because two of the
three call sites still require a closure, but it's still an
improvement.

Note that every instance of MapEndpoints only ever maps to one
topology, which, furthermore, is a core report topology. Hence we can
just parameterise MapEndpoints with that topology, and then the map
functions can return just the node ids.
2018-01-07 08:20:06 +00:00
bianca cheng costanzo
53793717d5 Merge pull request #3011 from weaveworks/lightgray-standardisation
Simplifying backgrounds to match lightgray in service-ui and ui-compo…
2018-01-05 18:29:29 +01:00
Bianca Cheng Costanzo
715ff54263 Row alteration coloring 2018-01-05 17:46:45 +01:00
Roberto Bruggemann
b4e3f85e89 LogReadCloser interleaves 'by line' for each container
Also, prepend each line with '[ContainerName]'.
2018-01-05 14:40:52 +00:00