Skip to content

Commit

Permalink
feat: ✨ control ingressClassName with dsc
Browse files Browse the repository at this point in the history
  • Loading branch information
this-is-tobi authored and ArnaudTA committed Oct 9, 2023
1 parent 579c858 commit 51b2dc6
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 3 deletions.
16 changes: 15 additions & 1 deletion roles/argocd/templates/values.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,18 @@ extraDeploy:
kind: ConfigMap
metadata:
name: argocd-rbac-cm
namespace: {{ dsc.argocd.namespace }}
namespace: {{ dsc.ingress.className }}
applicationSet:
webhook:
ingress:
ingressClassName: {{ dsc.ingress.className }}
notifications:
webhook:
ingress:
ingressClassName: {{ dsc.ingress.className }}
server:
ingress:
ingressClassName: {{ dsc.ingress.className }}
server:
ingressGrpc:
ingressClassName: {{ dsc.ingress.className }}
1 change: 1 addition & 0 deletions roles/console-dso/templates/values.yaml.j2
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
ingress:
ingressClassName: {{ dsc.ingress.className }}
hosts:
- {{ console_domain }}
annotations: {{ dsc.ingress.annotations }}
Expand Down
1 change: 1 addition & 0 deletions roles/gitlab/templates/gitlab-instance.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ global:
name: {{ gitlab_domain }}
{% endif %}
ingress:
class: {{ dsc.ingress.className }}
annotations:
{% for key, val in dsc.ingress.annotations.items() %}
{{ key }}: {{ val }}
Expand Down
1 change: 1 addition & 0 deletions roles/harbor/templates/values.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ expose:
{% endif %}
{% endif %}
ingress:
className: {{ dsc.ingress.className }}
hosts:
core: {{ harbor_domain }}
notary: {{ dsc.harbor.subDomain }}-notary{{ root_domain }}
Expand Down
2 changes: 1 addition & 1 deletion roles/keycloak/templates/values.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ service:

ingress:
enabled: true
ingressClassName: ""
ingressClassName: {{ dsc.ingress.className }}
pathType: "Prefix"
apiVersion: ""
hostname: "{{ keycloak_domain }}"
Expand Down
1 change: 1 addition & 0 deletions roles/nexus/templates/ingress.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ spec:
secretName: nexus-tls-secret
{% endif %}
{% endif %}
ingressClassName: {{ dsc.ingress.className }}
rules:
- host: {{ nexus_domain }}
http:
Expand Down
3 changes: 3 additions & 0 deletions roles/socle-config/files/crd-conf-dso.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,9 @@ spec:
default: {}
description: Additionals annotations to add to all tools' ingresses
type: object
className:
description: Ingress class name to use for all ingresses
type: string
labels:
x-kubernetes-preserve-unknown-fields: true
default: {}
Expand Down
2 changes: 1 addition & 1 deletion roles/sonarqube/templates/values.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ ingress:
{% endfor %}
# This property allows for reports up to a certain size to be uploaded to SonarQube
nginx.ingress.kubernetes.io/proxy-body-size: "64m"
ingressClassName: ""
ingressClassName: {{ dsc.ingress.className }}
labels:
app: "sonar"
{% if not dsc.ingress.tls.type == 'none' %}
Expand Down
1 change: 1 addition & 0 deletions roles/vault/templates/ingress.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ spec:
secretName: vault-tls-secret
{% endif %}
{% endif %}
ingressClassName: {{ dsc.ingress.className }}
rules:
- host: {{ vault_domain }}
http:
Expand Down

0 comments on commit 51b2dc6

Please sign in to comment.