- 27 Dec, 2018 1 commit
-
-
Geoff Simmons authored
This adds the client API for the Custom Resource in the group ingress.varnish-cache.org, with generated code for the API. Also adds the pkg/ path to the project, and moves the Makefile up to the root directory, so that code builds in pkg/ and cmd/.
-
- 26 Dec, 2018 1 commit
-
-
Geoff Simmons authored
Enables out-of-cluster runs.
-
- 23 Dec, 2018 2 commits
-
-
Geoff Simmons authored
-
Geoff Simmons authored
This commit includes a comprehensive refactoring of the controller: - ResourceEventHandlers dispatch work to a workqueue for a worker that in turn dispatches work to a separate queue for each namespace. For each namespace, there is a worker that syncs the various resources. - The controller uses a SharedInformer, with Informers and Listers for each resource type. The Listers are handed off to the namespace-specific workers. - Separate source files contain code for syncing Endpoints, Ingress, Service and Secret. - Added the controller CLI options: -namespace: for single-namespace deployments -templatedir: to locate the templates for VCL - The director for templates is given either by the templatedir CLI option or the TEMPLATE_DIR env variable. This makes it possible to run the controller from the command-line, and run tests from any working directory. - The Ingress annotation ingress.varnish-cache.org/varnish-svc identifies the Service name of the Varnish Service intended to implement it. If the annotation is absent, then the controller looks for exactly one Service in the namespace with the label "app:varnish-ingress". If none is found, the Ingress is rejected. (This is not yet documented.) - Docs and examples updated - Example for single-namespace deployment added.
-
- 18 Dec, 2018 1 commit
-
-
Geoff Simmons authored
When go.mod & go.sum are unchanged in the layer, no downloads are necessary. This greatly saves time for the image builds.
-
- 16 Dec, 2018 1 commit
-
-
Geoff Simmons authored
-
- 15 Dec, 2018 2 commits
-
-
Geoff Simmons authored
-
Geoff Simmons authored
-
- 14 Dec, 2018 5 commits
-
-
Geoff Simmons authored
-
Geoff Simmons authored
-
Geoff Simmons authored
-
Geoff Simmons authored
-
Geoff Simmons authored
-
- 13 Dec, 2018 1 commit
-
-
Geoff Simmons authored
-
- 11 Dec, 2018 1 commit
-
-
Geoff Simmons authored
-
- 10 Dec, 2018 6 commits
-
-
Geoff Simmons authored
-
Geoff Simmons authored
-
Geoff Simmons authored
-
Geoff Simmons authored
-
Geoff Simmons authored
-
Geoff Simmons authored
The Ingress namespace/name and UID do not change, so we cannot depend on those fields alone. - For each endpoint update, consider an Ingress update. - For the candidate Ingress, compute the VCL spec. - Compute a canonical form for VCL specs. - Compute a hash for a VCL spec. - The Ingress is updated if the canonical form of its VCL spec is not deeply equal to the current VCL spec. - VCL configs are identified by the hash (in addition to namespace/name and UID of the Ingress).
-
- 09 Dec, 2018 2 commits
-
-
Geoff Simmons authored
-
Geoff Simmons authored
Periodically checks the state of each Varnish instance, and updates their configurations (for example if they don't have an up-to-date Ingress configuration).
-
- 07 Dec, 2018 3 commits
-
-
Geoff Simmons authored
-
Geoff Simmons authored
-
Geoff Simmons authored
- Don't keep admin connections open indefinitely -- when needed, open a connection, do work, close the connection. - Don't reload or re-label VCL configs if already loaded or labelled. - More verbose debug level logging.
-
- 05 Dec, 2018 3 commits
-
-
Geoff Simmons authored
-
Geoff Simmons authored
-
Geoff Simmons authored
-
- 04 Dec, 2018 2 commits
-
-
Geoff Simmons authored
-
Geoff Simmons authored
-
- 29 Nov, 2018 3 commits
-
-
Geoff Simmons authored
-
Geoff Simmons authored
-
Geoff Simmons authored
Docs are not yet updated in this commit.
-
- 22 Nov, 2018 1 commit
-
-
Geoff Simmons authored
-
- 21 Nov, 2018 5 commits
-
-
Geoff Simmons authored
-
Geoff Simmons authored
-
Geoff Simmons authored
-
Geoff Simmons authored
-
Geoff Simmons authored
-