@@ -0,0 +1,1767 @@
+package ekoshkin.teamcity.clouds.kubernetes.podSpec;%0A%0Aimport ekoshkin.teamcity.clouds.kubernetes.KubeCloudException;%0Aimport ekoshkin.teamcity.clouds.kubernetes.auth.KubeAuthStrategyProvider;%0Aimport jetbrains.buildServer.serverSide.ServerSettings;%0Aimport org.jetbrains.annotations.NotNull;%0Aimport org.jetbrains.annotations.Nullable;%0A%0Aimport java.util.Collection;%0Aimport java.util.HashMap;%0Aimport java.util.Map;%0A%0A/**%0A * Created by ekoshkin (koshkinev@gmail.com) on 15.06.17.%0A */%0Apublic class PodTemplateProvidersImpl implements PodTemplateProviders %7B%0A    private final Map%3CString, PodTemplateProvider%3E myIdToProviderMap = new HashMap%3C%3E();%0A%0A    public PodTemplateProvidersImpl(@NotNull ServerSettings serverSettings, @NotNull KubeAuthStrategyProvider authStrategies) %7B%0A        registerProvider(new SimpleRunContainerPodTemplateProvider(serverSettings));%0A        registerProvider(new CustomTemplatePodTemplateProvider(serverSettings));%0A        registerProvider(new DeploymentPodTemplateProvider(serverSettings, authStrategies));%0A    %7D%0A%0A    @NotNull%0A    @Override%0A    public Collection%3CPodTemplateProvider%3E getAll() %7B%0A        return myIdToProviderMap.values();%0A    %7D%0A%0A    @Nullable%0A    @Override%0A    public PodTemplateProvider find(@Nullable String id) %7B%0A        return myIdToProviderMap.get(id);%0A    %7D%0A%0A    @NotNull%0A    @Override%0A    public PodTemplateProvider get(@Nullable String id) %7B%0A        PodTemplateProvider podTemplateProvider = find(id);%0A        if(podTemplateProvider == null) throw new KubeCloudException(%22Unknown pod specification provider %22 + id);%0A        return podTemplateProvider;%0A    %7D%0A%0A    private void registerProvider(PodTemplateProvider podTemplateProvider) %7B%0A        myIdToProviderMap.put(podTemplateProvider.getId(), podTemplateProvider);%0A    %7D%0A%7D%0A

Revert "disable custom pod template mode"