use of org.opentosca.toscana.core.transformation.properties.PlatformInput in project TOSCAna by StuPro-TOSCAna.
the class KubernetesPlugin method getPlatformDetails.
/**
* Constructs the Platform Object for the Kubernetes Plugin
*/
private static Platform getPlatformDetails() {
String platformId = "kubernetes";
String platformName = "Kubernetes";
Set<PlatformInput> platformProperties = new HashSet<>();
// Create the "Property Schema" for the Kubernetes Plugin
// Add the Push Flag (has to be set to true to push)
platformProperties.add(new PlatformInput(DOCKER_PUSH_TO_REGISTRY_PROPERTY_KEY, PropertyType.BOOLEAN, "Set this to true if the created docker images should be pushed to the given docker registry", true, "false"));
// Add the Registry URL Property (if the value is empty DockerHub gets used internally)
platformProperties.add(new PlatformInput(DOCKER_REGISTRY_URL_PROPERTY_KEY, PropertyType.TEXT, "The URL To the docker Registry. (Will default to DockerHub if empty)", false, ""));
platformProperties.add(new PlatformInput(DOCKER_REGISTRY_USERNAME_PROPERTY_KEY, PropertyType.TEXT, "The Username of the user, used to push to the regsitry", false));
platformProperties.add(new PlatformInput(DOCKER_REGISTRY_PASSWORD_PROPERTY_KEY, PropertyType.SECRET, "The password of the registry user", false));
platformProperties.add(new PlatformInput(DOCKER_REGISTRY_REPOSITORY_PROPERTY_KEY, PropertyType.TEXT, "The name of the repository used to push the images onto.", false));
return new Platform(platformId, platformName, platformProperties);
}
Aggregations