Skip to content

Commit

Permalink
e2e: remove function adding namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
wirungu committed Apr 26, 2024
1 parent ffb9b52 commit 1a42162
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion e2e/internal/kuberesource/resourcegen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func main() {
kuberesource.PatchNamespaces(resources, *namespace)
}
if *addNamespaceObject {
resources = kuberesource.AddNamespaceObject(resources, *namespace)
resources = append(resources, kuberesource.Namespace(*namespace))
}

b, err := kuberesource.EncodeResources(resources...)
Expand Down
11 changes: 1 addition & 10 deletions e2e/internal/kuberesource/sets.go
Original file line number Diff line number Diff line change
Expand Up @@ -635,11 +635,6 @@ func PatchNamespaces(resources []any, namespace string) []any {
return resources
}

// AddNamespaceObjects adds namespace objects to a set of resources.
func AddNamespaceObjects(resources []any, namespace string) []any {
return append(resources, Namespace(namespace))
}

// Emojivoto returns resources for deploying Emojivoto application.
func Emojivoto() ([]any, error) {
resources, err := generateEmojivoto(ServiceMeshDisabled)
Expand All @@ -651,11 +646,7 @@ func Emojivoto() ([]any, error) {
ns := ""
coordinator := Coordinator(ns).DeploymentApplyConfiguration
coordinatorService := ServiceForDeployment(coordinator)
coordinatorForwarder := PortForwarder("coordinator", ns).
WithListenPort(1313).
WithForwardTarget("coordinator", 1313).
PodApplyConfiguration
resources = append(resources, coordinator, coordinatorService, coordinatorForwarder)
resources = append(resources, coordinator, coordinatorService)

return resources, nil
}
Expand Down

0 comments on commit 1a42162

Please sign in to comment.