export default function()

in helper/src/components/addonsTab.js [6:55]


export default function ({ tabValues, updateFn, featureFlag, invalidArray,showPreviewModal }) {
    const { cluster, addons, net } = tabValues
    const osmFeatureFlag = featureFlag.includes('osm')
    const wiFeatureFlag = featureFlag.includes('workloadId')
    function setContainerLogV2BasicLogs(v) {
        // Function ensures that the ContainerLogV2 schema is
        // enabled when enabling ContainerLogV2 Basic Logs.
        if(v){
            updateFn("containerLogsV2", v)
            updateFn("containerLogsV2BasicLogs", v)
        }else{
            updateFn("containerLogsV2BasicLogs", v)
        }
    }
    function setContainerLogsV2(v){
        // Function ensures that all the dependencies
        // of the ContainerLogV2 schema is disabled.
        if(v){
            updateFn("containerLogsV2", v)
        }else{
            updateFn("containerLogsV2", v)
            updateFn("containerLogsV2BasicLogs", v)
        }
    }
    return (
        <Stack tokens={{ childrenGap: 15 }} styles={adv_stackstyle}>

            <Stack.Item align="start">
                <Label required={true}>
                    Do you require a secure private container registry to store my application images
                </Label>
                <ChoiceGroup
                    styles={{ root: { marginLeft: '50px' } }}
                    selectedKey={addons.registry}
                    options={[
                        { key: 'none', text: 'No, my application images will be on DockerHub or another registry' },
                        { key: 'Basic', text: 'Yes, setup Azure Container Registry "Basic" tier & authorise aks to pull images' },
                        { key: 'Standard', text: 'Yes, setup Azure Container Registry "Standard" tier (minimum recommended for production)' },
                        { key: 'Premium', text: 'Yes, setup Azure Container Registry "Premium" tier (required for Private Link)' }
                    ]}
                    onChange={(ev, { key }) => updateFn("registry", key)}
                />
                {hasError(invalidArray, 'registry') &&
                    <MessageBar styles={{ root: { marginLeft: '50px', width: '700px' } }} messageBarType={MessageBarType.error}>{getError(invalidArray, 'registry')}</MessageBar>
                }

            </Stack.Item>

            <Stack.Item align="center" styles={{ root: { width: '700px' }}}>
                <Checkbox checked={addons.enableACRTrustPolicy} onChange={(ev, v) => updateFn("enableACRTrustPolicy", v)} label={<Text>Enable ACR Docker Content Trust Capability (<a target="_new" href="https://docs.microsoft.com/azure/container-registry/container-registry-content-trust">docs</a>)</Text>} />