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
37c1c5db
Commit
37c1c5db
authored
May 29, 2024
by
Tim Leers
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'adjust-gitlab-ci' into 'master'
Adjust gitlab ci See merge request uplex/varnish/k8s-ingress!17
parents
d092289c
8a3fd6f2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
41 deletions
+44
-41
.gitlab-ci.yml
.gitlab-ci.yml
+38
-36
values-varnish.yaml
deploy/values-varnish.yaml
+4
-1
controller.go
pkg/controller/controller.go
+2
-4
No files found.
.gitlab-ci.yml
View file @
37c1c5db
...
@@ -37,11 +37,13 @@ test:
...
@@ -37,11 +37,13 @@ test:
image
:
golang:1.21
image
:
golang:1.21
stage
:
test
stage
:
test
rules
:
rules
:
-
changes
:
-
if
:
$CI_MERGE_REQUEST_ID
-
cmd/**.go
changes
:
-
pkg/**.go
-
cmd/**/*.go
-
go.mod
-
pkg/**/*.go
-
go.sum
-
go.mod
-
go.sum
-
if
:
$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
before_script
:
before_script
:
-
apt-get update -q
-
apt-get update -q
-
apt-get install -y golang-golang-x-tools pandoc git
-
apt-get install -y golang-golang-x-tools pandoc git
...
@@ -63,10 +65,10 @@ build:haproxy:
...
@@ -63,10 +65,10 @@ build:haproxy:
extends
:
.build-haproxy
extends
:
.build-haproxy
rules
:
rules
:
-
changes
:
-
changes
:
-
container/Makefile
-
container/Makefile
-
container/Dockerfile.haproxy
-
container/Dockerfile.haproxy
-
container/haproxy.cfg
-
container/haproxy.cfg
-
container/haproxy_exec.sh
-
container/haproxy_exec.sh
# haproxy image can be build when user triggers it
# haproxy image can be build when user triggers it
build:haproxy:manual
:
build:haproxy:manual
:
...
@@ -79,14 +81,14 @@ build:klarlack:
...
@@ -79,14 +81,14 @@ build:klarlack:
extends
:
.build-klarlack
extends
:
.build-klarlack
rules
:
rules
:
-
changes
:
-
changes
:
-
container/Makefile
-
container/Makefile
-
container/Dockerfile.varnish
-
container/Dockerfile.varnish
-
container/varnishd_exec.sh
-
container/varnishd_exec.sh
-
container/start.cli
-
container/start.cli
-
container/bogo_backend.vcl
-
container/bogo_backend.vcl
-
container/boot.vcl
-
container/boot.vcl
-
container/notavailable.vcl
-
container/notavailable.vcl
-
container/ok.vcl
-
container/ok.vcl
# klarlack image can be build when user triggers it
# klarlack image can be build when user triggers it
build:klarlack:manual
:
build:klarlack:manual
:
...
@@ -101,15 +103,15 @@ build:ascn:
...
@@ -101,15 +103,15 @@ build:ascn:
optional
:
true
optional
:
true
rules
:
rules
:
-
changes
:
-
changes
:
-
container/Makefile
-
container/Makefile
-
container/Dockerfile.ascn
-
container/Dockerfile.ascn
-
container/Dockerfile.varnish
-
container/Dockerfile.varnish
-
container/varnishd_exec.sh
-
container/varnishd_exec.sh
-
container/start.cli
-
container/start.cli
-
container/bogo_backend.vcl
-
container/bogo_backend.vcl
-
container/boot.vcl
-
container/boot.vcl
-
container/notavailable.vcl
-
container/notavailable.vcl
-
container/ok.vcl
-
container/ok.vcl
# ascn image can be build when user triggers it
# ascn image can be build when user triggers it
build:ascn:manual
:
build:ascn:manual
:
...
@@ -122,14 +124,14 @@ build:varnish:
...
@@ -122,14 +124,14 @@ build:varnish:
extends
:
.build-varnish
extends
:
.build-varnish
rules
:
rules
:
-
changes
:
-
changes
:
-
container/Makefile
-
container/Makefile
-
container/Dockerfile.varnish
-
container/Dockerfile.varnish
-
container/varnishd_exec.sh
-
container/varnishd_exec.sh
-
container/start.cli
-
container/start.cli
-
container/bogo_backend.vcl
-
container/bogo_backend.vcl
-
container/boot.vcl
-
container/boot.vcl
-
container/notavailable.vcl
-
container/notavailable.vcl
-
container/ok.vcl
-
container/ok.vcl
# varnish image can be build when user triggers it
# varnish image can be build when user triggers it
build:varnish:manual
:
build:varnish:manual
:
...
@@ -364,8 +366,8 @@ dev:haproxy-timeouts:
...
@@ -364,8 +366,8 @@ dev:haproxy-timeouts:
parallel
:
parallel
:
matrix
:
matrix
:
-
VARNISH
:
-
VARNISH
:
-
varnish
-
varnish
-
klarlack
-
klarlack
FOO
:
bar
FOO
:
bar
before_script
:
before_script
:
-
apk add -U wget
-
apk add -U wget
...
...
deploy/values-varnish.yaml
View file @
37c1c5db
nameOverride
:
varnish-ingress
nameOverride
:
varnish-ingress
fullnameOverride
:
varnish-ingress
fullnameOverride
:
varnish-ingress
vikingService
:
vikingService
:
## Name of the ingress class to route through this controller
## Name of the ingress class to route through this controller
##
##
ingressClass
:
varnish
ingressClass
:
varnish
...
@@ -9,3 +8,7 @@ vikingService:
...
@@ -9,3 +8,7 @@ vikingService:
# labels to add to the pod container metadata
# labels to add to the pod container metadata
podLabels
:
podLabels
:
app
:
varnish-ingress
app
:
varnish-ingress
varnish
:
livenessProbeConfig
:
failureThreshold
:
50
pkg/controller/controller.go
View file @
37c1c5db
...
@@ -169,7 +169,6 @@ func NewIngressController(
...
@@ -169,7 +169,6 @@ func NewIngressController(
incomplRetryDelay
time
.
Duration
,
incomplRetryDelay
time
.
Duration
,
maxSyncRetries
uint
,
maxSyncRetries
uint
,
)
(
*
IngressController
,
error
)
{
)
(
*
IngressController
,
error
)
{
ingc
:=
IngressController
{
ingc
:=
IngressController
{
log
:
log
,
log
:
log
,
client
:
kubeClient
,
client
:
kubeClient
,
...
@@ -232,8 +231,7 @@ func NewIngressController(
...
@@ -232,8 +231,7 @@ func NewIngressController(
}
}
if
namespace
==
api_v1
.
NamespaceAll
{
if
namespace
==
api_v1
.
NamespaceAll
{
ingc
.
informers
.
ns
=
ingc
.
informers
.
ns
=
infFactory
.
Core
()
.
V1
()
.
Namespaces
()
.
Informer
()
infFactory
.
Core
()
.
V1
()
.
Namespaces
()
.
Informer
()
nsDeleteFunc
:=
cache
.
ResourceEventHandlerFuncs
{
nsDeleteFunc
:=
cache
.
ResourceEventHandlerFuncs
{
DeleteFunc
:
ingc
.
deleteNs
,
DeleteFunc
:
ingc
.
deleteNs
,
}
}
...
@@ -351,7 +349,7 @@ func (ingc *IngressController) updateObj(old, new interface{}) {
...
@@ -351,7 +349,7 @@ func (ingc *IngressController) updateObj(old, new interface{}) {
kind
:=
"Unknown"
kind
:=
"Unknown"
switch
old
.
(
type
)
{
switch
old
.
(
type
)
{
case
*
net_v1
.
Ingress
:
case
*
net_v1
.
Ingress
:
kind
=
"Ingress"
kind
=
"Ingress
e
"
case
*
net_v1
.
IngressClass
:
case
*
net_v1
.
IngressClass
:
kind
=
"IngressClass"
kind
=
"IngressClass"
case
*
api_v1
.
Service
:
case
*
api_v1
.
Service
:
...
...
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