Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: Move deployment UI and HA into experimental#4595

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
bpmct merged 1 commit intomainfromexp
Oct 17, 2022
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletionscoderd/coderdtest/coderdtest.go
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -72,6 +72,7 @@ type Options struct {
AppHostname string
AWSCertificates awsidentity.Certificates
Authorizer rbac.Authorizer
Experimental bool
AzureCertificates x509.VerifyOptions
GithubOAuth2Config *coderd.GithubOAuth2Config
OIDCConfig *coderd.OIDCConfig
Expand DownExpand Up@@ -229,6 +230,7 @@ func NewOptions(t *testing.T, options *Options) (func(http.Handler), context.Can
CacheDir: t.TempDir(),
Database: options.Database,
Pubsub: options.Pubsub,
Experimental: options.Experimental,

Auditor: options.Auditor,
AWSCertificates: options.AWSCertificates,
Expand Down
2 changes: 1 addition & 1 deletionenterprise/coderd/coderd.go
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -267,7 +267,7 @@ func (api *API) updateEntitlements(ctx context.Context) error {

if changed, enabled := featureChanged(codersdk.FeatureHighAvailability); changed {
coordinator := agpltailnet.NewCoordinator()
if enabled {
ifapi.Experimental &&enabled {
haCoordinator, err := tailnet.NewCoordinator(api.Logger, api.Pubsub)
if err != nil {
api.Logger.Error(ctx, "unable to set up high availability coordinator", slog.Error(err))
Expand Down
9 changes: 7 additions & 2 deletionsenterprise/coderd/replicas_test.go
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -24,6 +24,7 @@ func TestReplicas(t *testing.T) {
db, pubsub := dbtestutil.NewDB(t)
firstClient := coderdenttest.New(t, &coderdenttest.Options{
Options: &coderdtest.Options{
Experimental: true,
IncludeProvisionerDaemon: true,
Database: db,
Pubsub: pubsub,
Expand DownExpand Up@@ -54,6 +55,7 @@ func TestReplicas(t *testing.T) {
IncludeProvisionerDaemon: true,
Database: db,
Pubsub: pubsub,
Experimental: true,
},
})
firstUser := coderdtest.CreateFirstUser(t, firstClient)
Expand All@@ -63,8 +65,9 @@ func TestReplicas(t *testing.T) {

secondClient := coderdenttest.New(t, &coderdenttest.Options{
Options: &coderdtest.Options{
Database: db,
Pubsub: pubsub,
Experimental: true,
Database: db,
Pubsub: pubsub,
},
})
secondClient.SessionToken = firstClient.SessionToken
Expand DownExpand Up@@ -92,6 +95,7 @@ func TestReplicas(t *testing.T) {
certificates := []tls.Certificate{testutil.GenerateTLSCertificate(t, "localhost")}
firstClient := coderdenttest.New(t, &coderdenttest.Options{
Options: &coderdtest.Options{
Experimental: true,
IncludeProvisionerDaemon: true,
Database: db,
Pubsub: pubsub,
Expand All@@ -105,6 +109,7 @@ func TestReplicas(t *testing.T) {

secondClient := coderdenttest.New(t, &coderdenttest.Options{
Options: &coderdtest.Options{
Experimental: true,
Database: db,
Pubsub: pubsub,
TLSCertificates: certificates,
Expand Down
7 changes: 6 additions & 1 deletionsite/src/components/Navbar/Navbar.tsx
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -14,10 +14,15 @@ export const Navbar: React.FC = () => {
selectFeatureVisibility,
shallowEqual,
)
const experimental = useSelector(
xServices.entitlementsXService,
(state) => state.context.entitlements.experimental,
)
const canViewAuditLog =
featureVisibility[FeatureNames.AuditLog] &&
Boolean(permissions?.viewAuditLog)
const canViewDeployment = Boolean(permissions?.viewDeploymentFlags)
const canViewDeployment =
experimental && Boolean(permissions?.viewDeploymentFlags)
const onSignOut = () => authSend("SIGN_OUT")

return (
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp