🤬
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■ ■
    migration/138_add_metallb.up.sql
     1 +INSERT INTO `ko`.`ko_component_dic` (`created_at`, `updated_at`, `id`, `name`, `type`, `version`, `describe`) VALUES
     2 +(date_add(now(), interval 8 HOUR), date_add(now(), interval 8 HOUR), UUID(), 'metallb', 'Metallb', 'v0.13.7', 'METALLB_HELPER');
  • ■ ■ ■ ■ ■ ■
    pkg/service/cluster/adm/facts/default.go
    skipped 87 lines
    88 88   SupportGpuFactName = "enable_gpu"
    89 89   EnableNpdFactName = "enable_npd"
    90 90   EnableIstioFactName = "enable_istio"
     91 + EnableMetallbFactName = "enable_metallb"
     92 + MetallbVersionFactName = "metallb_version"
    91 93   
    92 94   ProvisionerNamespaceFactName = "provisioner_namespace"
    93 95   EnableNfsFactName = "enable_nfs_provisioner"
    skipped 85 lines
    179 181   EnableDnsCacheFactName: "enable",
    180 182   EnableNpdFactName: "disable",
    181 183   EnableIstioFactName: "disable",
     184 + EnableMetallbFactName: "disable",
     185 + MetallbVersionFactName: "v0.13.7",
    182 186   
    183 187   ProvisionerNamespaceFactName: "kube-system",
    184 188  }
    skipped 1 lines
  • ■ ■ ■ ■ ■ ■
    pkg/service/component.go
    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
Please wait...
Page is in error, reload to recover