diff --git a/client-react/src/pages/app/deployment-center/container/DeploymentCenterContainerSettings.tsx b/client-react/src/pages/app/deployment-center/container/DeploymentCenterContainerSettings.tsx index 413025490b..8befeebd37 100644 --- a/client-react/src/pages/app/deployment-center/container/DeploymentCenterContainerSettings.tsx +++ b/client-react/src/pages/app/deployment-center/container/DeploymentCenterContainerSettings.tsx @@ -72,7 +72,7 @@ const DeploymentCenterContainerSettings: React.FC { let isSubscribed = true; - portalContext?.getBooleanFlight(ExperimentationConstants.FlightVariable.enableSidecarMigration).then(hasFlightEnabled => { + portalContext?.getBooleanFlight(ExperimentationConstants.FlightVariable.showDCReactView).then(hasFlightEnabled => { if (isSubscribed) { setEnableSidecarMigration(hasFlightEnabled); } diff --git a/client-react/src/pages/app/deployment-center/utility/DeploymentCenterUtility.tsx b/client-react/src/pages/app/deployment-center/utility/DeploymentCenterUtility.tsx index e4c8fd514f..b836dc4f31 100644 --- a/client-react/src/pages/app/deployment-center/utility/DeploymentCenterUtility.tsx +++ b/client-react/src/pages/app/deployment-center/utility/DeploymentCenterUtility.tsx @@ -733,10 +733,17 @@ export const getAuthSettings = (values: DeploymentCenterContainerFormData) => { passwordSecret = ''; } } else if (values.registrySource === ContainerRegistrySources.privateRegistry) { - authType = SiteContainerAuthType.UserCredentials; - userManagedIdentityClientId = ''; - userName = values.privateRegistryUsername; - passwordSecret = values.privateRegistryPassword; + if (values.privateRegistryUsername && values.privateRegistryPassword) { + authType = SiteContainerAuthType.UserCredentials; + userManagedIdentityClientId = ''; + userName = values.privateRegistryUsername; + passwordSecret = values.privateRegistryPassword; + } else { + authType = SiteContainerAuthType.Anonymous; + userManagedIdentityClientId = ''; + userName = ''; + passwordSecret = ''; + } } return {