internal void LoadSettings(NativeConfigStore nativeConfig) { this.LinuxProxyImageName = nativeConfig.ReadUnencryptedString(this.GRMSectionName, LinuxProxyImageNameKey); this.WindowsProxyImageName = nativeConfig.ReadUnencryptedString(this.GRMSectionName, WindowsProxyImageNameKey); this.ProxyReplicaCount = nativeConfig.ReadUnencryptedString(this.GRMSectionName, ProxyReplicaCountKey); this.ImageStoreConnectionString = nativeConfig.ReadUnencryptedString("Management", ImageStoreConnectionStringKey); this.IPProviderEnabled = nativeConfig.ReadUnencryptedBool("Hosting", IPProviderEnabledKey, GatewayResourceManagerTrace.TraceSource, Program.TraceType, false); this.LocalNatIPProviderEnabled = nativeConfig.ReadUnencryptedBool("Hosting", LocalNatIPProviderEnabledKey, GatewayResourceManagerTrace.TraceSource, Program.TraceType, false); this.IsolatedNetworkSetup = nativeConfig.ReadUnencryptedBool("Setup", IsolatedNetworkSetupKey, GatewayResourceManagerTrace.TraceSource, Program.TraceType, false); this.ContainerNetworkSetup = nativeConfig.ReadUnencryptedBool("Setup", ContainerNetworkSetupKey, GatewayResourceManagerTrace.TraceSource, Program.TraceType, false); var proxyCPUCores = nativeConfig.ReadUnencryptedString(this.GRMSectionName, ProxyCPUCoresKey); this.ProxyCPUCores = string.IsNullOrEmpty(proxyCPUCores) ? ProxyCPUCoresDefault : proxyCPUCores; var proxyCreateToReadyTimeoutInMinutes = nativeConfig.ReadUnencryptedString(this.GRMSectionName, ProxyCreateToReadyTimeoutInMinutesKey); this.ProxyCreateToReadyTimeoutInMinutes = string.IsNullOrEmpty(proxyCreateToReadyTimeoutInMinutes) ? ProxyCreateToReadyTimeoutInMinutesDefault : TimeSpan.FromMinutes(int.Parse(proxyCreateToReadyTimeoutInMinutes)); try { this.ClientCertThumbprints = nativeConfig.ReadUnencryptedString("Security", ClientCertThumbprintsKey); } catch (Exception) { this.ClientCertThumbprints = string.Empty; } try { this.ClusterCertThumbprints = nativeConfig.ReadUnencryptedString("Security", ClusterCertThumbprintsKey); } catch (Exception) { this.ClusterCertThumbprints = string.Empty; } }
public bool IsAutoupgradeInstallEnabled() { NativeConfigStore configStore = NativeConfigStore.FabricGetConfigStore(); return(configStore.ReadUnencryptedBool(DMConstants.UpgradeOrchestrationServiceConfigSectionName, DMConstants.AutoupgradeInstallEnabledName, UpgradeOrchestrationTrace.TraceSource, TraceType, false /*throwIfInvalid*/)); }
private bool IsFirewallRuleDisabled() { NativeConfigStore configStore = NativeConfigStore.FabricGetConfigStore(); return(configStore.ReadUnencryptedBool(Constants.SecuritySectionName, Constants.DisableFirewallRuleForPublicProfilePropertyName, UpgradeOrchestrationTrace.TraceSource, TraceType, false /*throwIfInvalid*/)); }
private bool IsSkipInitialGoalStateCheck() { NativeConfigStore configStore = NativeConfigStore.FabricGetConfigStore(); return(configStore.ReadUnencryptedBool(Constants.SectionName, Constants.SkipInitialGoalStateCheckProperty, UpgradeOrchestrationTrace.TraceSource, TraceType, false /*throwIfInvalid*/)); }