{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes-incubator/kompose/issues/550","repository_url":"https://api.github.com/repos/kubernetes-incubator/kompose","labels_url":"https://api.github.com/repos/kubernetes-incubator/kompose/issues/550/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes-incubator/kompose/issues/550/comments","events_url":"https://api.github.com/repos/kubernetes-incubator/kompose/issues/550/events","html_url":"https://github.com/kubernetes-incubator/kompose/issues/550","id":220204725,"number":550,"title":"driver:local in prefixing volumes with current dir name","user":{"login":"kadel","id":57206,"avatar_url":"https://avatars2.githubusercontent.com/u/57206?v=3","gravatar_id":"","url":"https://api.github.com/users/kadel","html_url":"https://github.com/kadel","followers_url":"https://api.github.com/users/kadel/followers","following_url":"https://api.github.com/users/kadel/following{/other_user}","gists_url":"https://api.github.com/users/kadel/gists{/gist_id}","starred_url":"https://api.github.com/users/kadel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kadel/subscriptions","organizations_url":"https://api.github.com/users/kadel/orgs","repos_url":"https://api.github.com/users/kadel/repos","events_url":"https://api.github.com/users/kadel/events{/privacy}","received_events_url":"https://api.github.com/users/kadel/received_events","type":"User","site_admin":false},"labels":[{"id":403396612,"url":"https://api.github.com/repos/kubernetes-incubator/kompose/labels/kind/bug","name":"kind/bug","color":"d93f0b","default":false}],"state":"open","locked":false,"assignee":{"login":"procrypt","id":11635662,"avatar_url":"https://avatars1.githubusercontent.com/u/11635662?v=3","gravatar_id":"","url":"https://api.github.com/users/procrypt","html_url":"https://github.com/procrypt","followers_url":"https://api.github.com/users/procrypt/followers","following_url":"https://api.github.com/users/procrypt/following{/other_user}","gists_url":"https://api.github.com/users/procrypt/gists{/gist_id}","starred_url":"https://api.github.com/users/procrypt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/procrypt/subscriptions","organizations_url":"https://api.github.com/users/procrypt/orgs","repos_url":"https://api.github.com/users/procrypt/repos","events_url":"https://api.github.com/users/procrypt/events{/privacy}","received_events_url":"https://api.github.com/users/procrypt/received_events","type":"User","site_admin":false},"assignees":[{"login":"procrypt","id":11635662,"avatar_url":"https://avatars1.githubusercontent.com/u/11635662?v=3","gravatar_id":"","url":"https://api.github.com/users/procrypt","html_url":"https://github.com/procrypt","followers_url":"https://api.github.com/users/procrypt/followers","following_url":"https://api.github.com/users/procrypt/following{/other_user}","gists_url":"https://api.github.com/users/procrypt/gists{/gist_id}","starred_url":"https://api.github.com/users/procrypt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/procrypt/subscriptions","organizations_url":"https://api.github.com/users/procrypt/orgs","repos_url":"https://api.github.com/users/procrypt/repos","events_url":"https://api.github.com/users/procrypt/events{/privacy}","received_events_url":"https://api.github.com/users/procrypt/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2017-04-07T12:51:21Z","updated_at":"2017-04-13T08:09:42Z","closed_at":null,"body":"```yaml\r\nversion: '2'\r\nservices:\r\n  mariadb:\r\n    image: 'bitnami/mariadb:latest'\r\n    volumes:\r\n      - 'mariadb-data:/bitnami/mariadb'\r\n    environment:\r\n      - MARIADB_USER=bn_wordpress\r\n      - MARIADB_DATABASE=bitnami_wordpress\r\n      - ALLOW_EMPTY_PASSWORD=yes\r\n  wordpress:\r\n    image: 'bitnami/wordpress:latest'\r\n    ports:\r\n      - '80:80'\r\n      - '443:443'\r\n    volumes:\r\n      - 'wordpress-data:/bitnami/wordpress'\r\n      - 'apache-data:/bitnami/apache'\r\n      - 'php-data:/bitnami/php'\r\n    depends_on:\r\n      - mariadb\r\n    environment:\r\n      - MARIADB_HOST=mariadb\r\n      - MARIADB_PORT=3306\r\n      - WORDPRESS_DATABASE_USER=bn_wordpress\r\n      - WORDPRESS_DATABASE_NAME=bitnami_wordpress\r\n      - ALLOW_EMPTY_PASSWORD=yes\r\nvolumes:\r\n  mariadb-data:\r\n    driver: local\r\n  wordpress-data:\r\n    driver: local\r\n  apache-data:\r\n    driver: local\r\n  php-data:\r\n    driver: local\r\n```\r\n\r\nall PVC created from this file have names that are starting with name of current directory and `_` as separator.\r\n\r\n```yaml\r\n- apiVersion: v1\r\n  kind: PersistentVolumeClaim\r\n  metadata:\r\n    creationTimestamp: null\r\n    labels:\r\n      io.kompose.service: kompose_apache-data\r\n    name: kompose_apache-data\r\n  spec:\r\n    accessModes:\r\n    - ReadWriteOnce\r\n    resources:\r\n      requests:\r\n        storage: 100Mi\r\n  status: {}\r\n- apiVersion: v1\r\n  kind: PersistentVolumeClaim\r\n  metadata:\r\n    creationTimestamp: null\r\n    labels:\r\n      io.kompose.service: kompose_php-data\r\n    name: kompose_php-data\r\n  spec:\r\n    accessModes:\r\n    - ReadWriteOnce\r\n    resources:\r\n      requests:\r\n        storage: 100Mi\r\n  status: {}\r\nkind: List\r\nmetadata: {}\r\n```\r\n\r\n**Problem is that Kubernetes doesn't allow `_` in object names**\r\n\r\n\r\nFrom first quick look it seems to me that `libcompose` is doing that  for some reason.\r\n\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/kubernetes-incubator/kompose/issues/comments/293822422","html_url":"https://github.com/kubernetes-incubator/kompose/issues/550#issuecomment-293822422","issue_url":"https://api.github.com/repos/kubernetes-incubator/kompose/issues/550","id":293822422,"user":{"login":"sebgoa","id":1886299,"avatar_url":"https://avatars3.githubusercontent.com/u/1886299?v=3","gravatar_id":"","url":"https://api.github.com/users/sebgoa","html_url":"https://github.com/sebgoa","followers_url":"https://api.github.com/users/sebgoa/followers","following_url":"https://api.github.com/users/sebgoa/following{/other_user}","gists_url":"https://api.github.com/users/sebgoa/gists{/gist_id}","starred_url":"https://api.github.com/users/sebgoa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebgoa/subscriptions","organizations_url":"https://api.github.com/users/sebgoa/orgs","repos_url":"https://api.github.com/users/sebgoa/repos","events_url":"https://api.github.com/users/sebgoa/events{/privacy}","received_events_url":"https://api.github.com/users/sebgoa/received_events","type":"User","site_admin":false},"created_at":"2017-04-13T08:09:41Z","updated_at":"2017-04-13T08:09:41Z","body":"@ngtuna maybe you can check this one out\r\n\r\nAll bitnami docker-compose examples use this type of local volume definitions, it would be great for kompose to support it."}}
{"actor":{"display_login":"sebgoa"}}