- 29 Dec, 2020 7 commits
-
-
Geoff Simmons authored
Previously only files specified in the ConfigMap were checked for changed modification times. If only generated VCL sources were changed, usually due to Endpoint changes, and the VCL load failed for any reason, tehn afterward no changed VCL sources or changes in the ConfigMap were detected. This could lead to VCL never being updated after a change only in the generated VCLs, although the config does not correspond to the desired state of the cluster. Now we keep a record of the latest mtime of all VCL sources, including generated sources, and reload VCL if any of them are currently newer.
-
Geoff Simmons authored
-
Geoff Simmons authored
Types for literal structs don't need to be named when they are unambiguous.
-
Geoff Simmons authored
-
Geoff Simmons authored
-
Geoff Simmons authored
-
Geoff Simmons authored
-
- 11 Feb, 2020 5 commits
-
-
Geoff Simmons authored
At info level, log the latest known VCL mtime. Log all of the mtimes at debug level.
-
Geoff Simmons authored
-
Geoff Simmons authored
-
Geoff Simmons authored
-
Geoff Simmons authored
This may happen if the initial cache sync takes longer than the monitor interval.
-
- 31 Jan, 2020 1 commit
-
-
Geoff Simmons authored
Take no action for a deleted ConfigMap, other than resetting current knowledge of VCL mtimes.
-
- 13 Dec, 2019 1 commit
-
-
Geoff Simmons authored
This is a key in the ConfigMap used for VCL configuration. If set, and if the value is not empty, then the value is a version string for the VCL config. It is used in the generation of the VCL config name, and in the fqVersion function for VCL templates.
-
- 11 Dec, 2019 1 commit
-
-
Geoff Simmons authored
Eliminates a warning message at startup.
-
- 09 Dec, 2019 3 commits
-
-
Geoff Simmons authored
-
Geoff Simmons authored
After vcl_cooldown, VCLs since Varnish at least 6.3 go to cold temperature, but stay in the auto state. Cold state happens when a VCL is set to cold via vcl.state, in which case the temperature also goes cold. So an admin might hasten the discard by setting the cold state.
-
Geoff Simmons authored
-
- 05 Dec, 2019 2 commits
-
-
Geoff Simmons authored
It should be configurable whether this happens -- an admin may want to intentionally stop Varnish, and this feature would interfere with that.
-
Geoff Simmons authored
Get some mod tidy done while we're here.
-
- 29 Nov, 2019 1 commit
-
-
Geoff Simmons authored
-
- 27 Nov, 2019 1 commit
-
-
Geoff Simmons authored
-
- 21 Nov, 2019 1 commit
-
-
Geoff Simmons authored
In case Pod names ever change without changing endpoint addresses.
-
- 20 Nov, 2019 3 commits
-
-
Geoff Simmons authored
-
Geoff Simmons authored
-
Geoff Simmons authored
We don't need a binary-to-text encoding for the hash, we just test the binary result. We also don't need to sort []Endpoint or hash Service.
-
- 19 Nov, 2019 4 commits
-
-
Geoff Simmons authored
-
Geoff Simmons authored
-
Geoff Simmons authored
-
Geoff Simmons authored
InitTemplates() takes a map of template paths to file paths, and returns a map of parsed template to file paths. Add WriteTemplate(), which takes a parsed template and a file path, and generates VCL at the path from a spec and the template. Meant for iteration on the map returned by InitTemplates().
-
- 18 Nov, 2019 1 commit
-
-
Geoff Simmons authored
-
- 17 Nov, 2019 2 commits
-
-
Geoff Simmons authored
-
Geoff Simmons authored
-