Skip to content

Commit

Permalink
Merge pull request #107 from codecademy-engineering/DEVOPS-6728
Browse files Browse the repository at this point in the history
[DEVOPS-6728] Deprecate secondary ingress resource
  • Loading branch information
igoralveslima authored Sep 25, 2023
2 parents 4c99b55 + 19d8000 commit b26b236
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 58 deletions.
2 changes: 1 addition & 1 deletion charts/service/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: service
description: A generic k8s service chart
type: application
version: 1.8.6
version: 1.8.7
maintainers:
- email: [email protected]
name: devops
49 changes: 0 additions & 49 deletions charts/service/templates/ingress-nlb.yaml

This file was deleted.

4 changes: 2 additions & 2 deletions charts/service/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ $fullName }}
name: {{ $fullName }}-nlb
labels:
{{- include "service.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
{{- with merge .Values.ingress.nlbIngressClassAnnotation .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
Expand Down
7 changes: 1 addition & 6 deletions charts/service/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,17 +82,12 @@ service:
ingress:
enabled: false
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
# kubernetes.io/ingress.class: nginx-nlb
nlbIngressClassAnnotation:
kubernetes.io/ingress.class: nginx-nlb
hosts:
- host: chart-example.local
paths: []
tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local

serviceAccount:
# Specifies whether a service account should be created
Expand Down

0 comments on commit b26b236

Please sign in to comment.