You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating the ports slice (code here) to pass to CreateService, port.Name is omitted, when attempting to create a Service where len(ports) > 1 this generates an invalid spec.
It seems this was not previously an issue because the created Service always only had the single hardcoded port. However, if more than 1 Service Port is defined, name is not optional (see k8s docs for more here)
To Reproduce
argo-rollouts: v1.4.x
Create an Experiment with more than 1 rs.spec.template.spec.containers.ports, such as:
example template.spec.containers.ports:
...
template:
...spec:
...containers:
...ports:
- containerPort: 8080name: a
- containerPort: 8082name: b
- containerPort: 8083name: c
...
will get error such as:
Failed to create Service for template '<SERVICE NAME>': Service
"<UNIQUE-SERVICE-NAME>" is invalid:
[spec.ports[0].name: Required value, spec.ports[1].name: Required value,
spec.ports[2].name: Required value]
With degraded rollout and experiment resources.
Expected behavior
Experiment creates resources.
Version
v1.4.0
Message from the maintainers:
Impacted by this bug? Give it a 👍. We prioritize the issues with the most 👍.
The text was updated successfully, but these errors were encountered:
Checklist:
Describe the bug
When creating the ports slice (code here) to pass to
CreateService
,port.Name
is omitted, when attempting to create a Service wherelen(ports) > 1
this generates an invalid spec.It seems this was not previously an issue because the created Service always only had the single hardcoded port. However, if more than 1 Service Port is defined, name is not optional (see k8s docs for more here)
To Reproduce
argo-rollouts: v1.4.x
Create an Experiment with more than 1
rs.spec.template.spec.containers.ports
, such as:example template.spec.containers.ports:
will get error such as:
With degraded rollout and experiment resources.
Expected behavior
Experiment creates resources.
Version
v1.4.0
Message from the maintainers:
Impacted by this bug? Give it a 👍. We prioritize the issues with the most 👍.
The text was updated successfully, but these errors were encountered: