use of com.netflix.spinnaker.halyard.config.model.v1.node.DeploymentConfiguration in project halyard by spinnaker.
the class KubernetesAccount method dockerRegistriesOptions.
protected List<String> dockerRegistriesOptions(ConfigProblemSetBuilder psBuilder) {
DeploymentConfiguration context = parentOfType(DeploymentConfiguration.class);
DockerRegistryProvider dockerRegistryProvider = context.getProviders().getDockerRegistry();
if (dockerRegistryProvider != null) {
return dockerRegistryProvider.getAccounts().stream().map(Account::getName).collect(Collectors.toList());
} else {
return null;
}
}
use of com.netflix.spinnaker.halyard.config.model.v1.node.DeploymentConfiguration in project halyard by spinnaker.
the class FeaturesService method setFeatures.
public void setFeatures(String deploymentName, Features newFeatures) {
DeploymentConfiguration deploymentConfiguration = deploymentService.getDeploymentConfiguration(deploymentName);
deploymentConfiguration.setFeatures(newFeatures);
}
Aggregations