| skipped 29 lines |
30 | 30 | | gpuPlaybook = "16-gpu-operator.yml" |
31 | 31 | | dnsCachePlaybook = "17-dns-cache.yml" |
32 | 32 | | istioPlaybook = "18-istio.yml" |
| 33 | + | metallbPlaybook = "19-metallb.yml" |
33 | 34 | | ) |
34 | 35 | | |
35 | 36 | | type ComponentService interface { |
| skipped 357 lines |
393 | 394 | | continue |
394 | 395 | | } |
395 | 396 | | c.changeStatus(components, name, constant.StatusEnabled) |
| 397 | + | case "metallb": |
| 398 | + | if err := phases.WaitForDeployRunning("kube-system", "kubeoperator-metallb-controller", client); err != nil { |
| 399 | + | c.changeStatus(components, name, constant.StatusFailed) |
| 400 | + | continue |
| 401 | + | } |
| 402 | + | c.changeStatus(components, name, constant.StatusEnabled) |
396 | 403 | | } |
397 | 404 | | } |
398 | 405 | | } |
| skipped 56 lines |
455 | 462 | | admCluster.Kobe.SetVar(facts.EnableNpdFactName, operation) |
456 | 463 | | case "istio": |
457 | 464 | | admCluster.Kobe.SetVar(facts.EnableIstioFactName, operation) |
| 465 | + | case "metallb": |
| 466 | + | admCluster.Kobe.SetVar(facts.EnableMetallbFactName, operation) |
458 | 467 | | } |
459 | 468 | | return admCluster, nil |
460 | 469 | | } |
| skipped 12 lines |
473 | 482 | | return npdPlaybook |
474 | 483 | | case "istio": |
475 | 484 | | return istioPlaybook |
| 485 | + | case "metallb": |
| 486 | + | return metallbPlaybook |
476 | 487 | | } |
477 | 488 | | return "" |
478 | 489 | | } |
| skipped 1 lines |