Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
ubuntu ingress class name
Browse files Browse the repository at this point in the history
  • Loading branch information
fcomte committed Oct 3, 2022
1 parent 3f8d7b1 commit cf2b862
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charts/ubuntu/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 5.2.0
version: 5.3.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
1 change: 1 addition & 0 deletions charts/ubuntu/templates/ingress-user.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ metadata:
annotations:
{{- include "library-chart.ingress.annotations" . | nindent 4 }}
spec:
ingressClassName: {{ .Values.ingress.ingressClassName | quote }}
{{- if .Values.ingress.tls }}
tls:
- hosts:
Expand Down
1 change: 1 addition & 0 deletions charts/ubuntu/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ metadata:
nginx.ingress.kubernetes.io/proxy-send-timeout: "3600"
{{- include "library-chart.ingress.annotations" . | nindent 4 }}
spec:
ingressClassName: {{ .Values.ingress.ingressClassName | quote }}
{{- if .Values.ingress.tls }}
tls:
- hosts:
Expand Down
36 changes: 36 additions & 0 deletions charts/ubuntu/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,28 @@
"x-onyxia": {
"overwriteDefaultWith": "region.defaultNetworkPolicy"
}
},
"from": {
"type": "array",
"description": "Array of source allowed to have network access to your service",
"default" : [
{
"ipBlock": {
"cidr": "10.233.103.0/32"
}
},
{
"ipBlock": {
"cidr": "10.233.111.0/32"
}
}
],
"x-form": {
"value": "{{region.from}}"
},
"x-onyxia": {
"overwriteDefaultWith": "region.from"
}
}
}
}
Expand Down Expand Up @@ -528,6 +550,20 @@
"hidden": true,
"overwriteDefaultWith": "{{project.id}}-{{k8s.randomSubdomain}}-user.{{k8s.domain}}"
}
},
"ingressClassName": {
"type": "string",
"form": true,
"title": "ingressClassName",
"default": "",
"x-form": {
"hidden": true,
"value": "{{k8s.ingressClassName}}"
},
"x-onyxia": {
"hidden": true,
"overwriteDefaultWith": "{{k8s.ingressClassName}}"
}
}
}
},
Expand Down
6 changes: 1 addition & 5 deletions charts/ubuntu/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@ security:
password: "changeme"
networkPolicy:
enabled: false
from:
- ipBlock:
cidr: 10.233.103.0/32
- ipBlock:
cidr: 10.233.111.0/32
from: []
allowlist:
enabled: true
ip: "0.0.0.0/0"
Expand Down

0 comments on commit cf2b862

Please sign in to comment.