Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions charts/kueue/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ The following table lists the configurable parameters of the kueue chart and the
| kueueViz.backend.image.tag | string | `"main"` | KueueViz dashboard backend image tag |
| kueueViz.backend.imagePullSecrets | list | `[]` | Sets ImagePullSecrets for KueueViz dashboard backend deployments. This is useful when the images are in a private registry. |
| kueueViz.backend.ingress.annotations | object | `{"nginx.ingress.kubernetes.io/rewrite-target":"/","nginx.ingress.kubernetes.io/ssl-redirect":"true"}` | KueueViz dashboard backend ingress annotations |
| kueueViz.backend.ingress.enabled | bool | `true` | Enable KueueViz dashboard backend ingress |
| kueueViz.backend.ingress.host | string | `"backend.kueueviz.local"` | KueueViz dashboard backend ingress host |
| kueueViz.backend.ingress.ingressClassName | string | `nil` | KueueViz dashboard backend ingress class name |
| kueueViz.backend.ingress.tlsSecretName | string | `"kueueviz-backend-tls"` | KueueViz dashboard backend ingress tls secret name |
Expand All @@ -144,6 +145,7 @@ The following table lists the configurable parameters of the kueue chart and the
| kueueViz.frontend.image.tag | string | `"main"` | KueueViz dashboard frontend image tag |
| kueueViz.frontend.imagePullSecrets | list | `[]` | Sets ImagePullSecrets for KueueViz dashboard frontend deployments. This is useful when the images are in a private registry. |
| kueueViz.frontend.ingress.annotations | object | `{"nginx.ingress.kubernetes.io/rewrite-target":"/","nginx.ingress.kubernetes.io/ssl-redirect":"true"}` | KueueViz dashboard frontend ingress annotations |
| kueueViz.frontend.ingress.enabled | bool | `true` | Enable KueueViz dashboard frontend ingress |
| kueueViz.frontend.ingress.host | string | `"frontend.kueueviz.local"` | KueueViz dashboard frontend ingress host |
| kueueViz.frontend.ingress.ingressClassName | string | `nil` | KueueViz dashboard frontend ingress class name |
| kueueViz.frontend.ingress.tlsSecretName | string | `"kueueviz-frontend-tls"` | KueueViz dashboard frontend ingress tls secret name |
Expand Down
2 changes: 1 addition & 1 deletion charts/kueue/templates/kueueviz/backend-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ limitations under the License.

{{/* Code generated by yaml-processor. DO NOT EDIT. */}}

{{- if .Values.enableKueueViz }}
{{- if and .Values.enableKueueViz .Values.kueueViz.backend.ingress.enabled }}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
Expand Down
2 changes: 1 addition & 1 deletion charts/kueue/templates/kueueviz/frontend-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ limitations under the License.

{{/* Code generated by yaml-processor. DO NOT EDIT. */}}

{{- if .Values.enableKueueViz }}
{{- if and .Values.enableKueueViz .Values.kueueViz.frontend.ingress.enabled }}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
Expand Down
40 changes: 40 additions & 0 deletions charts/kueue/tests/kueue_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -252,3 +252,43 @@ tests:
asserts:
- notExists:
path: spec.template.spec.containers[0].env[0]
- it: should not render backend ingress when backend ingress is disabled
template: kueueviz/backend-ingress.yaml
set:
enableKueueViz: true
kueueViz:
backend:
ingress:
enabled: false
asserts:
- hasDocuments:
count: 0
- it: should not render frontend ingress when frontend ingress is disabled
template: kueueviz/frontend-ingress.yaml
set:
enableKueueViz: true
kueueViz:
frontend:
ingress:
enabled: false
asserts:
- hasDocuments:
count: 0
- it: should render backend ingress when backend ingress is enabled (default)
template: kueueviz/backend-ingress.yaml
set:
enableKueueViz: true
asserts:
- hasDocuments:
count: 1
- isKind:
of: Ingress
- it: should render frontend ingress when frontend ingress is enabled (default)
template: kueueviz/frontend-ingress.yaml
set:
enableKueueViz: true
asserts:
- hasDocuments:
count: 1
- isKind:
of: Ingress
4 changes: 4 additions & 0 deletions charts/kueue/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,8 @@ kueueViz:
- name: KUEUEVIZ_ALLOWED_ORIGINS
value: "https://frontend.kueueviz.local"
ingress:
# -- Enable KueueViz dashboard backend ingress
enabled: true
# -- KueueViz dashboard backend ingress annotations
annotations:
nginx.ingress.kubernetes.io/rewrite-target: "/"
Expand Down Expand Up @@ -275,6 +277,8 @@ kueueViz:
- name: REACT_APP_WEBSOCKET_URL
value: "wss://backend.kueueviz.local"
ingress:
# -- Enable KueueViz dashboard frontend ingress
enabled: true
# -- KueueViz dashboard frontend ingress annotations
annotations:
nginx.ingress.kubernetes.io/rewrite-target: "/"
Expand Down
22 changes: 22 additions & 0 deletions hack/processing-plan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -799,10 +799,32 @@ files:
position: START
value: |
{{- if .Values.enableKueueViz }}
onFileCondition: '.kind != "Ingress"'
- type: INSERT_TEXT
position: END
value: |
{{- end }}
onFileCondition: '.kind != "Ingress"'
- type: INSERT_TEXT
position: START
value: |
{{- if and .Values.enableKueueViz .Values.kueueViz.backend.ingress.enabled }}
onFileCondition: '.kind == "Ingress" and .metadata.name | contains("backend")'
- type: INSERT_TEXT
position: END
value: |
{{- end }}
onFileCondition: '.kind == "Ingress" and .metadata.name | contains("backend")'
- type: INSERT_TEXT
position: START
value: |
{{- if and .Values.enableKueueViz .Values.kueueViz.frontend.ingress.enabled }}
onFileCondition: '.kind == "Ingress" and .metadata.name | contains("frontend")'
- type: INSERT_TEXT
position: END
value: |
{{- end }}
onFileCondition: '.kind == "Ingress" and .metadata.name | contains("frontend")'
- path: ./config/components/internalcert/*.yaml
outputDir: ./charts/kueue/templates/internalcert
removeComments: true
Expand Down