Skip to content

Commit

Permalink
Expose ingress class
Browse files Browse the repository at this point in the history
  • Loading branch information
jharmison-redhat committed Apr 9, 2021
1 parent 7933b63 commit 5e809f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions roles/gitea-ocp/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@ _gitea_expose_method: Route
_gitea_expose_uri: ""
_gitea_route: "{{ _gitea_expose_uri }}"
_gitea_ssl: true
_gitea_ingress_class: nginx

_gitea_trust_bundle_configmap: ''
2 changes: 2 additions & 0 deletions roles/gitea-ocp/templates/Ingress.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
namespace: "{{ _gitea_namespace }}"
labels:
app: "{{ _gitea_name }}"
annotations:
kubernetes.io/ingress.class: {{ _gitea_ingress_class }}
spec:
{% if _gitea_ssl|bool %}
tls:
Expand Down

0 comments on commit 5e809f1

Please sign in to comment.