Skip to content

Commit

Permalink
feat: add options for config envoy outbound and inbound timeout (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
hysyeah authored Jul 23, 2024
1 parent 52cd37b commit ac248fe
Show file tree
Hide file tree
Showing 5 changed files with 213 additions and 176 deletions.
1 change: 1 addition & 0 deletions pkg/apiserver/handler_installer.go
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,7 @@ func toApplicationConfig(app, chart string, cfg *appinstaller.AppConfiguration)
Namespace: cfg.Spec.Namespace,
MobileSupported: cfg.Options.MobileSupported,
OIDC: cfg.Options.OIDC,
ApiTimeout: cfg.Options.ApiTimeout,
}, chart, nil
}

Expand Down
1 change: 1 addition & 0 deletions pkg/appinstaller/appcfg_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ type Options struct {
Upload Upload `yaml:"upload" json:"upload"`
SyncProvider []map[string]interface{} `yaml:"syncProvider" json:"syncProvider"`
OIDC OIDC `yaml:"oidc" json:"oidc"`
ApiTimeout *int64 `yaml:"apiTimeout" json:"apiTimeout"`
}

type ResetCookie struct {
Expand Down
1 change: 1 addition & 0 deletions pkg/appinstaller/appcfg_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ func getAppConfigFromConfigurationFile(app, chart string) (*ApplicationConfig, e
Namespace: cfg.Spec.Namespace,
MobileSupported: cfg.Options.MobileSupported,
OIDC: cfg.Options.OIDC,
ApiTimeout: cfg.Options.ApiTimeout,
}, nil
}

Expand Down
1 change: 1 addition & 0 deletions pkg/appinstaller/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,5 @@ type ApplicationConfig struct {
OnlyAdmin bool
MobileSupported bool
OIDC OIDC
ApiTimeout *int64
}
Loading

0 comments on commit ac248fe

Please sign in to comment.