Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
k8s-ingress
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
3
Merge Requests
3
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
uplex-varnish
k8s-ingress
Commits
34b3b06a
Commit
34b3b06a
authored
Dec 27, 2018
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a section to the dev docs about packages in the controller.
parent
0f9658b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
dev.md
docs/dev.md
+22
-0
No files found.
docs/dev.md
View file @
34b3b06a
...
@@ -114,6 +114,28 @@ The annotation MUST name fields used in the configuration manifests,
...
@@ -114,6 +114,28 @@ The annotation MUST name fields used in the configuration manifests,
otherwise the client APIs will not correctly retrieve data that was
otherwise the client APIs will not correctly retrieve data that was
written to configure the cluster.
written to configure the cluster.
## Packages
In addition to the packages in the
``pkg/client``
discussed above,
packages in the source are distinguished according to the separation
of concerns for the controller:
*
``pkg/controller``
encapsulates access to Kubernetes types and the
client API, watches for the API server, and use of the
[
client-go cache
](
https://godoc.org/k8s.io/client-go/tools/cache
)
.
Only sources in this package should import packages from
``k8s.io/``
and the
``pkg/client/``
paths.
*
``pkg/varnish``
encapsulates actions on Varnish instances to
realize configurations from Ingress and VarnishConfig resources.
This package imports
``code.uplex.de/uplex-varnish/varnishapi/admin``
,
which is a client for the
[
Varnish CLI
](
https://varnish-cache.org/docs/6.1/reference/varnish-cli.html
)
,
used to load VCL and administer Varnish instances.
*
``pkg/varnish/vcl``
encapsulates the use of templates to generate
VCL configurations.
## Makefile
## Makefile
Targets in the Makefile:
Targets in the Makefile:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment