Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix network policy issue for webserver and flowerui #20199

Merged
2 changes: 1 addition & 1 deletion chart/tests/test_flower.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ def test_defaults(self):
assert [{"namespaceSelector": {"matchLabels": {"release": "myrelease"}}}] == jmespath.search(
"spec.ingress[0].from", docs[0]
)
assert [{"port": "flower-ui"}] == jmespath.search("spec.ingress[0].ports", docs[0])
assert [{"port": 5555}] == jmespath.search("spec.ingress[0].ports", docs[0])
jedcunningham marked this conversation as resolved.
Show resolved Hide resolved

@pytest.mark.parametrize(
"ports, expected_ports",
Expand Down
2 changes: 1 addition & 1 deletion chart/tests/test_webserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ def test_defaults(self):
assert [{"namespaceSelector": {"matchLabels": {"release": "myrelease"}}}] == jmespath.search(
"spec.ingress[0].from", docs[0]
)
assert [{"port": "airflow-ui"}] == jmespath.search("spec.ingress[0].ports", docs[0])
assert [{"port": 8080}] == jmespath.search("spec.ingress[0].ports", docs[0])

@parameterized.expand(
[
Expand Down
8 changes: 4 additions & 4 deletions chart/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2158,12 +2158,12 @@
},
"default": [
{
"port": "airflow-ui"
"port": "{{ .Values.ports.airflowUI }}"
}
],
"examples": [
{
"port": "sidecar"
"port": "8080"
jedcunningham marked this conversation as resolved.
Show resolved Hide resolved
}
]
}
Expand Down Expand Up @@ -2463,12 +2463,12 @@
"type": "array",
"default": [
{
"port": "flower-ui"
"port": "{{ .Values.ports.flowerUI }}"
}
],
"examples": [
{
"port": "sidecar"
"port": "5555"
}
]
}
Expand Down
4 changes: 2 additions & 2 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ webserver:
from: []
# Ports for webserver NetworkPolicy ingress (if `from` is set)
ports:
- port: airflow-ui
- port: "{{ .Values.ports.airflowUI }}"
pgvishnuram marked this conversation as resolved.
Show resolved Hide resolved

resources: {}
# limits:
Expand Down Expand Up @@ -900,7 +900,7 @@ flower:
from: []
# Ports for flower NetworkPolicy ingress (if ingressPeers is set)
ports:
- port: flower-ui
- port: "{{ .Values.ports.flowerUI }}"

resources: {}
# limits:
Expand Down