-
Notifications
You must be signed in to change notification settings - Fork 867
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add name attribute to ServicePort (#2572)
* Add name attribute to ServicePort Signed-off-by: Daniel Del Rio <[email protected]> * Format with gofmt Signed-off-by: Daniel Del Rio <[email protected]> * Update experiment test by adding port name Signed-off-by: Daniel Del Rio <[email protected]> * Include port name only when given Signed-off-by: Daniel Del Rio <[email protected]> * Implement separate e2e tests for single unnamed port and two named ports Signed-off-by: Daniel Del Rio <[email protected]> * Remove port name in experiment_test.go Signed-off-by: Daniel Del Rio <[email protected]> * Replace Sleep in new multiport service experiment Signed-off-by: Daniel Del Rio <[email protected]> --------- Signed-off-by: Daniel Del Rio <[email protected]>
- Loading branch information
1 parent
d024327
commit aa67000
Showing
3 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
test/e2e/functional/experiment-with-multiport-service.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Experiment | ||
metadata: | ||
name: experiment-with-multiport-service | ||
spec: | ||
duration: 10s | ||
scaleDownDelaySeconds: 5 | ||
# List of pod template specs to run in the experiment as ReplicaSets | ||
templates: | ||
- name: test | ||
replicas: 1 | ||
service: {} | ||
selector: | ||
matchLabels: | ||
app: experiment-with-multiport-service | ||
template: | ||
metadata: | ||
labels: | ||
app: experiment-with-multiport-service | ||
spec: | ||
containers: | ||
- name: experiment-with-multiport-service | ||
image: nginx:1.19-alpine | ||
resources: | ||
requests: | ||
memory: 16Mi | ||
cpu: 1m | ||
ports: | ||
- name: testport1 | ||
protocol: TCP | ||
containerPort: 8080 | ||
- name: testport2 | ||
protocol: TCP | ||
containerPort: 8081 | ||
- name: testport3 | ||
protocol: TCP | ||
containerPort: 8082 |