Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update DockerContainers Endpoint capability corresponding to a service name #16

Open
adidanes opened this issue Feb 28, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@adidanes
Copy link
Contributor

adidanes commented Feb 28, 2020

Description

When a DockerContainer defines a tosca.Capabilities.Endpoint, the alien4cloud-kubernetes-plugin will generates a K8S Service resource for it. The service name is also generated by the plugin.
This issues requests the following feature to be implemented:

  • if the Endpoint defines a property having the name service_name, its value should be overriden by the generated service name (this name is also set to the metadata.name of the generated K8S service spec)

What usage for this feature

This feature can be used to set the value of the an ENV_{INPUT_NAME} variable allowing to configure a DockerContainer that defines a requirement on a target DockerContainer that has an Endpoint capability defining a service_name property.
Example:
inputs: ENV_YORC_HOST: { get_attribute: [TARGET, enpoint_name, service_name] }

where enpoint_name corresponds to a capability of type tosac.capabilities.Endpoint requested on the target:
requirements: - endpoint_name: capability: ... <derived from tosac.capabilities.Endpoint>

If the value of the service_name capability property is set to the K8S service name as required by this feature, the ENV_ input variable can be set to the actual K8S service name.

@adidanes adidanes self-assigned this Feb 28, 2020
@adidanes adidanes added the enhancement New feature or request label Feb 28, 2020
adidanes added a commit that referenced this issue Mar 12, 2020
Update the K8S_SERVICE_NAME_PROPERTY capability property if exists
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant