* Add missing defaultHelmRepoUrl and mock testing * Backport EE-1477 * Backport updates to helm tests from EE * add https by default changes and ssl to tls renaming from EE * Port install integration test. Disabled by default to pass CI checks * merged changes from EE for the integration test * kube proxy whitelist updated to support internal helm install command Co-authored-by: zees-dev <dev.786zshan@gmail.com>
61 lines
2.2 KiB
JavaScript
61 lines
2.2 KiB
JavaScript
export function SettingsViewModel(data) {
|
|
this.LogoURL = data.LogoURL;
|
|
this.BlackListedLabels = data.BlackListedLabels;
|
|
this.AuthenticationMethod = data.AuthenticationMethod;
|
|
this.LDAPSettings = data.LDAPSettings;
|
|
this.OAuthSettings = new OAuthSettingsViewModel(data.OAuthSettings);
|
|
this.SnapshotInterval = data.SnapshotInterval;
|
|
this.TemplatesURL = data.TemplatesURL;
|
|
this.HelmRepositoryURL = data.HelmRepositoryURL;
|
|
this.EdgeAgentCheckinInterval = data.EdgeAgentCheckinInterval;
|
|
this.EnableEdgeComputeFeatures = data.EnableEdgeComputeFeatures;
|
|
this.UserSessionTimeout = data.UserSessionTimeout;
|
|
this.EnableTelemetry = data.EnableTelemetry;
|
|
this.HelmRepositoryURL = data.HelmRepositoryURL;
|
|
}
|
|
|
|
export function PublicSettingsViewModel(settings) {
|
|
this.AuthenticationMethod = settings.AuthenticationMethod;
|
|
this.EnableEdgeComputeFeatures = settings.EnableEdgeComputeFeatures;
|
|
this.LogoURL = settings.LogoURL;
|
|
this.OAuthLoginURI = settings.OAuthLoginURI;
|
|
this.EnableTelemetry = settings.EnableTelemetry;
|
|
this.OAuthLogoutURI = settings.OAuthLogoutURI;
|
|
}
|
|
|
|
export function LDAPSettingsViewModel(data) {
|
|
this.ReaderDN = data.ReaderDN;
|
|
this.Password = data.Password;
|
|
this.URL = data.URL;
|
|
this.SearchSettings = data.SearchSettings;
|
|
this.GroupSearchSettings = data.GroupSearchSettings;
|
|
this.AutoCreateUsers = data.AutoCreateUsers;
|
|
}
|
|
|
|
export function LDAPSearchSettings(BaseDN, UsernameAttribute, Filter) {
|
|
this.BaseDN = BaseDN;
|
|
this.UsernameAttribute = UsernameAttribute;
|
|
this.Filter = Filter;
|
|
}
|
|
|
|
export function LDAPGroupSearchSettings(GroupBaseDN, GroupAttribute, GroupFilter) {
|
|
this.GroupBaseDN = GroupBaseDN;
|
|
this.GroupAttribute = GroupAttribute;
|
|
this.GroupFilter = GroupFilter;
|
|
}
|
|
|
|
export function OAuthSettingsViewModel(data) {
|
|
this.ClientID = data.ClientID;
|
|
this.ClientSecret = data.ClientSecret;
|
|
this.AccessTokenURI = data.AccessTokenURI;
|
|
this.AuthorizationURI = data.AuthorizationURI;
|
|
this.ResourceURI = data.ResourceURI;
|
|
this.RedirectURI = data.RedirectURI;
|
|
this.UserIdentifier = data.UserIdentifier;
|
|
this.Scopes = data.Scopes;
|
|
this.OAuthAutoCreateUsers = data.OAuthAutoCreateUsers;
|
|
this.DefaultTeamID = data.DefaultTeamID;
|
|
this.SSO = data.SSO;
|
|
this.LogoutURI = data.LogoutURI;
|
|
}
|