in webview-ui/src/Draft/DraftDeployment/DraftDeployment.tsx [170:197]
function validate(): Maybe<CreateParams> {
if (!isValid(state.selectedSubscription)) return nothing();
if (!isValid(state.selectedLocation)) return nothing();
if (!isValid(state.selectedApplicationName)) return nothing();
if (!isValid(state.selectedTargetPort)) return nothing();
if (!isValid(state.selectedServicePort)) return nothing();
if (!isValid(state.selectedClusterNamespace)) return nothing();
if (!isValid(state.selectedAcrResourceGroup)) return nothing();
if (!isValid(state.selectedAcr)) return nothing();
if (!isValid(state.selectedAcrRepository)) return nothing();
if (!isValid(state.selectedAcrRepoTag)) return nothing();
const result: CreateParams = {
subscriptionId: state.selectedSubscription.value.id,
location: state.selectedLocation.value,
deploymentSpecType: state.selectedDeploymentSpecType,
applicationName: state.selectedApplicationName.value,
targetPort: state.selectedTargetPort.value,
servicePort: state.selectedServicePort.value,
namespace: state.selectedClusterNamespace.value.value,
acrResourceGroup: state.selectedAcrResourceGroup.value,
acrName: state.selectedAcr.value,
repositoryName: state.selectedAcrRepository.value.value,
tag: state.selectedAcrRepoTag.value.value,
};
return just(result);
}