Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
k8s-vcl-reloader
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
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
uplex-varnish
k8s-vcl-reloader
Commits
0f1ad8ca
Commit
0f1ad8ca
authored
May 12, 2023
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gofmt/golint updates (whitespace only)
parent
6d344815
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
17 deletions
+17
-17
apiclient.go
pkg/apiclient/apiclient.go
+5
-5
worker.go
pkg/apiclient/worker.go
+4
-4
varnish.go
pkg/varnish/varnish.go
+8
-8
No files found.
pkg/apiclient/apiclient.go
View file @
0f1ad8ca
...
...
@@ -116,11 +116,11 @@ type Client struct {
// NewClient creates an API client.
//
//
log: logger initialized at startup
//
kubeClient: k8s client initialized at startup
//
vc: Varnish controller
//
infFactory: SharedInformerFactory to create informers & listers for
//
the k8s standard client APIs
//
log: logger initialized at startup
//
kubeClient: k8s client initialized at startup
//
vc: Varnish controller
//
infFactory: SharedInformerFactory to create informers & listers for
//
the k8s standard client APIs
func
NewClient
(
log
*
logrus
.
Logger
,
kubeClient
kubernetes
.
Interface
,
...
...
pkg/apiclient/worker.go
View file @
0f1ad8ca
...
...
@@ -236,10 +236,10 @@ type NamespaceQueues struct {
// NewNamespaceQueues creates a NamespaceQueues object.
//
//
log: logger initialized at startup
//
vController: Varnish controller initialied at startup
//
listers: client-go/lister instance for each resource type
//
recorder: Event broadcaster initialized at startup
//
log: logger initialized at startup
//
vController: Varnish controller initialied at startup
//
listers: client-go/lister instance for each resource type
//
recorder: Event broadcaster initialized at startup
func
NewNamespaceQueues
(
log
*
logrus
.
Logger
,
updater
*
SpecUpdater
,
...
...
pkg/varnish/varnish.go
View file @
0f1ad8ca
...
...
@@ -73,12 +73,12 @@ type Controller struct {
// NewController returns an instance of Controller.
//
//
log: logger object initialized at startup
//
home: Varnish home directory
//
tmplMap: map of template paths to file paths
//
loadFile: file to be named in a VCL load command
//
admTimeout: connection timeout for the Varnish admin port
//
monIntvl: interval at which to run the monitor
//
log: logger object initialized at startup
//
home: Varnish home directory
//
tmplMap: map of template paths to file paths
//
loadFile: file to be named in a VCL load command
//
admTimeout: connection timeout for the Varnish admin port
//
monIntvl: interval at which to run the monitor
func
NewController
(
log
*
logrus
.
Logger
,
home
string
,
...
...
@@ -164,7 +164,7 @@ func (vc *Controller) getAddrSecret() (string, []byte, error) {
// Update a Varnish Service to implement an configuration.
//
//
spec: VCL spec corresponding to the configuration
//
spec: VCL spec corresponding to the configuration
func
(
vc
*
Controller
)
Update
(
spec
*
vcl
.
Spec
)
error
{
var
err
error
...
...
@@ -258,7 +258,7 @@ func (vc *Controller) Update(spec *vcl.Spec) error {
// HasConfig returns true iff a configuration is already loaded for a
// Varnish Service (so a new sync attempt is not necessary).
//
//
spec: VCL specification derived from the configuration
//
spec: VCL specification derived from the configuration
func
(
vc
*
Controller
)
HasConfig
(
spec
vcl
.
Spec
)
bool
{
if
vc
.
spec
==
nil
{
return
false
...
...
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