Skip to content

Commit fde8b90

Browse files
committed
feat: add an option to configure the ingressClass
1 parent 9bbdb65 commit fde8b90

8 files changed

Lines changed: 8 additions & 7 deletions

File tree

drydock/plugin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
("DRYDOCK_AUTO_TLS", True),
2727
("DRYDOCK_MIGRATE_FROM", 0),
2828
("DRYDOCK_INGRESS", True),
29+
("DRYDOCK_INGRESS_CLASS", "nginx"),
2930
("DRYDOCK_INGRESS_EXTRA_HOSTS", []),
3031
("DRYDOCK_INGRESS_LMS_EXTRA_HOSTS", []),
3132
("DRYDOCK_NEWRELIC_LICENSE_KEY", ""),

drydock/templates/drydock/k8s/ingress/cms.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ metadata:
2828
}
2929
{%- endif %}
3030
spec:
31-
ingressClassName: nginx
31+
ingressClassName: {{ DRYDOCK_INGRESS_CLASS }}
3232
rules:
3333
- host: {{ CMS_HOST }}
3434
http:

drydock/templates/drydock/k8s/ingress/extra-hosts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ metadata:
1010
cert-manager.io/issuer: letsencrypt
1111
{%- endif %}
1212
spec:
13-
ingressClassName: nginx
13+
ingressClassName: {{ DRYDOCK_INGRESS_CLASS }}
1414
rules:
1515
- host: {{ host }}
1616
http:

drydock/templates/drydock/k8s/ingress/issuer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ spec:
1919
solvers:
2020
- http01:
2121
ingress:
22-
class: nginx
22+
class: {{ DRYDOCK_INGRESS_CLASS }}
2323
{% endif -%}
2424

2525
{% if DRYDOCK_CUSTOM_CERTS -%}

drydock/templates/drydock/k8s/ingress/lms.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ metadata:
2828
}
2929
{%- endif %}
3030
spec:
31-
ingressClassName: nginx
31+
ingressClassName: {{ DRYDOCK_INGRESS_CLASS }}
3232
rules:
3333
- host: {{ LMS_HOST }}
3434
http:

drydock/templates/drydock/k8s/ingress/meilisearch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ metadata:
99
cert-manager.io/issuer: letsencrypt
1010
{%- endif %}
1111
spec:
12-
ingressClassName: nginx
12+
ingressClassName: {{ DRYDOCK_INGRESS_CLASS }}
1313
rules:
1414
- host: {{ MEILISEARCH_HOST }}
1515
http:

drydock/templates/drydock/k8s/ingress/mfe.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ metadata:
1010
cert-manager.io/issuer: letsencrypt
1111
{%- endif %}
1212
spec:
13-
ingressClassName: nginx
13+
ingressClassName: {{ DRYDOCK_INGRESS_CLASS }}
1414
rules:
1515
- host: {{ MFE_HOST }}
1616
http:

drydock/templates/drydock/k8s/ingress/notes.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ metadata:
99
cert-manager.io/issuer: letsencrypt
1010
{%- endif %}
1111
spec:
12-
ingressClassName: nginx
12+
ingressClassName: {{ DRYDOCK_INGRESS_CLASS }}
1313
rules:
1414
- host: {{ NOTES_HOST }}
1515
http:

0 commit comments

Comments
 (0)