Skip to content

Commit

Permalink
e2e: fixed emojivoto services
Browse files Browse the repository at this point in the history
  • Loading branch information
wirungu committed Apr 2, 2024
1 parent 8ae9dd3 commit 6742012
Showing 1 changed file with 32 additions and 2 deletions.
34 changes: 32 additions & 2 deletions e2e/internal/kuberesource/sets.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,22 @@ func Emojivoto() ([]any, error) {
}

emojiService := ServiceForDeployment(emoji).
WithName("emoji-svc")
WithName("emoji-svc").
WithSpec(ServiceSpec().
WithSelector(
map[string]string{"app.kubernetes.io/name": "emoji-svc"},
).
WithPorts(
ServicePort().
WithName("grpc").
WithPort(8080).
WithTargetPort(intstr.FromInt(8080)),
ServicePort().
WithName("prom").
WithPort(8801).
WithTargetPort(intstr.FromInt(8801)),
),
)

emojiserviceAccount := ServiceAccount("emoji", ns).
WithAPIVersion("v1").
Expand Down Expand Up @@ -353,7 +368,22 @@ func Emojivoto() ([]any, error) {
}

votingService := ServiceForDeployment(voting).
WithName("voting-svc")
WithName("voting-svc").
WithSpec(ServiceSpec().
WithSelector(
map[string]string{"app.kubernetes.io/name": "voting-svc"},
).
WithPorts(
ServicePort().
WithName("grpc").
WithPort(8080).
WithTargetPort(intstr.FromInt(8080)),
ServicePort().
WithName("prom").
WithPort(8801).
WithTargetPort(intstr.FromInt(8801)),
),
)

votingserviceAccount := ServiceAccount("voting", ns).
WithAPIVersion("v1").
Expand Down

0 comments on commit 6742012

Please sign in to comment.