Skip to content

Commit

Permalink
Merge pull request #57 from Octops/fix-tls-secretname-ingress
Browse files Browse the repository at this point in the history
Fix TLS Secret Logic
  • Loading branch information
danieloliveira079 authored Jan 4, 2024
2 parents 53a482c + b4eea20 commit 3e8900c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ OCTOPS_BIN := bin/octops-controller

IMAGE_REPO=octops/gameserver-ingress-controller
DOCKER_IMAGE_TAG ?= octops/gameserver-ingress-controller:${VERSION}
RELEASE_TAG=0.2.8
RELEASE_TAG=0.2.9

default: clean build

Expand Down
2 changes: 1 addition & 1 deletion deploy/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ spec:
spec:
serviceAccountName: octops-ingress-controller
containers:
- image: octops/gameserver-ingress-controller:0.2.8 # Latest release
- image: octops/gameserver-ingress-controller:0.2.9 # Latest release
name: controller
ports:
- containerPort: 30235
Expand Down
5 changes: 4 additions & 1 deletion pkg/reconcilers/ingress_reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ func (r *IngressReconciler) reconcileNotFound(ctx context.Context, gs *agonesv1.
WithCustomAnnotationsTemplate(),
WithIngressRule(mode),
WithTLS(mode),
WithTLSCertIssuer(issuer),
}

if issuer != "" {
opts = append(opts, WithTLSCertIssuer(issuer))
}

ingress, err := newIngress(gs, opts...)
Expand Down

0 comments on commit 3e8900c

Please sign in to comment.