Huiwen a5021da396
[installer] make sure dashboard is deployed after server and papi-server (#19042)
* [installer] make sure dashboard is deployed after server and papi-server

* fix build

* Add unit tests

* address feedback

* wait feature flag until get actual value of timed out

* default config cat client nil

* log avg fetch time

* 1

* mock feature flag hang

* Add metric

* fixup
2023-11-14 15:20:52 +02:00

22 lines
844 B
Go

// Copyright (c) 2021 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL).
// See License.AGPL.txt in the project root for license information.
package dashboard
import "github.com/gitpod-io/gitpod/installer/pkg/common"
const (
Component = common.DashboardComponent
ContainerPort = 80
PortName = "http"
ServicePort = 3001
ReadinessPort = 8080
// We need a new service account because
// - Update old one will make preview env / dedicated deploy failed with err
// The RoleBinding "dashboard" is invalid: roleRef: Invalid value: rbac.RoleRef{APIGroup:"rbac.authorization.k8s.io", Kind:"Role", Name:"dashboard"}: cannot change roleRef
// - Add new one will not work for dedicated since it will not clean old resources
ComponentServiceAccount = "dashboard-service-account"
)