Skip to content
This repository was archived by the owner on Jan 19, 2018. It is now read-only.
This repository was archived by the owner on Jan 19, 2018. It is now read-only.

'generateName' support for Kubernetes provider #189

Description

@kanarip

Problem Statement

Some of the Nulecule applications in the nulecule-library, such as MariaDB and MongoDB, can only be used once within an application's (nested) graph, because the Pod and Service created by the Kubernetes provider carries a non-unique name (in their pod and service definitions).

Suggested Solution(s)

  • Support the generateName property in the artifacts, such that a mariadb-centos7-atomicapp can be pulled in more than once and pods and services are not called a duplicate "mariadb".
  • Substitute the included atomicapp's name with the name the parent gives the application in the graph, i.e.;
  graph: [
    {
      "name": "myapp-mariadb",
      "source": "docker://projectatomic/mariadb-centos7-atomicapp"
    },
    {
      "name": "anotherapp-mariadb",
      "source": "docker://projectatomic/mariadb-centos7-atomicapp"
    }
  ]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions