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
29ccdc21
Commit
29ccdc21
authored
May 11, 2020
by
Tim Leers
Committed by
Geoff Simmons
May 14, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use new informer factory method
parent
9d6e4837
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
main.go
cmd/main.go
+3
-7
No files found.
cmd/main.go
View file @
29ccdc21
...
...
@@ -183,17 +183,13 @@ func main() {
vcrInformerFactory
=
vcr_informers
.
NewSharedInformerFactory
(
vingClient
,
*
resyncPeriodF
)
}
else
{
informerFactory
=
informers
.
NewFilteredSharedInformerFactory
(
kubeClient
,
*
resyncPeriodF
,
*
namespaceF
,
noop
)
vcrInformerFactory
=
vcr_informers
.
NewFilteredSharedInformerFactory
(
vingClient
,
*
resyncPeriodF
,
*
namespaceF
,
noop
)
// XXX this is prefered, but only available in newer
// versions of client-go.
// informerFactory = informers.NewSharedInformerFactoryWithOptions(
// kubeClient, *resyncPeriodF,
// informers.WithNamespace(*namespaceF))
informerFactory
=
informers
.
NewSharedInformerFactoryWithOptions
(
kubeClient
,
*
resyncPeriodF
,
informers
.
WithNamespace
(
*
namespaceF
))
}
ingController
,
err
:=
controller
.
NewIngressController
(
log
,
...
...
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