Skip to content

Commit

Permalink
fix: ingress-nginx testcase
Browse files Browse the repository at this point in the history
Signed-off-by: Lin Yang <[email protected]>
  • Loading branch information
reaver-flomesh committed Jan 6, 2025
1 parent 2557514 commit 53fd4a0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/framework/common_apps.go
Original file line number Diff line number Diff line change
Expand Up @@ -766,8 +766,9 @@ func (td *FsmTestData) InstallNginxIngress() (string, error) {

providerID := nodes.Items[0].Spec.ProviderID
isKind := strings.HasPrefix(providerID, "kind://")
isK3d := strings.HasPrefix(providerID, "k3s://")
var vals map[string]interface{}
if isKind {
if isKind || isK3d {
vals = map[string]interface{}{
"controller": map[string]interface{}{
"hostPort": map[string]interface{}{
Expand Down Expand Up @@ -817,7 +818,7 @@ func (td *FsmTestData) InstallNginxIngress() (string, error) {
}

ingressAddr := "localhost"
if !isKind {
if !isKind && !isK3d {
svc, err := Td.Client.CoreV1().Services(NginxIngressSvc.Namespace).Get(context.Background(), NginxIngressSvc.Name, metav1.GetOptions{})
if err != nil {
return "", fmt.Errorf("Error getting service: %s/%s: %w", NginxIngressSvc.Namespace, NginxIngressSvc.Name, err)
Expand Down

0 comments on commit 53fd4a0

Please sign in to comment.