kompose/script/test/fixtures
Charlie Drage f4bfe1fcb5 Add env_file + ConfigMaps feature to Kompose
When using env_file with Docker Compose, a ConfigMap will be generated

For example:

```sh
▶ ./kompose convert -f
script/test/fixtures/configmaps/docker-compose.yml
INFO Kubernetes file "redis-service.yaml" created
INFO Kubernetes file "redis-deployment.yaml" created
INFO Kubernetes file "foo-env-configmap.yaml" created
INFO Kubernetes file "bar-env-configmap.yaml" created
```

File:

```yaml
version: '3'

services:
  redis:
    image: 'bitnami/redis:latest'
    environment:
      - ALLOW_EMPTY_PASSWORD=no
    # Env file will override environment / warn!
    env_file:
      - "foo.env"
      - bar.env
    labels:
      kompose.service.type: nodeport
    ports:
      - '6379:6379'
```

To:

```yaml
apiVersion: v1
data:
  ALLOW_EMPTY_PASSWORD: "yes"
kind: ConfigMap
metadata:
  creationTimestamp: null
  name: foo-env
```

```yaml
...
      - env:
        - name: ALLOW_EMPTY_PASSWORD
          valueFrom:
            configMapKeyRef:
              key: ALLOW_EMPTY_PASSWORD
              name: foo-env
```
2017-10-10 12:40:49 -04:00
..
buildargs Adding save command to annotation 2017-08-14 12:22:33 +05:30
buildconfig Adds both build and push support 2017-06-14 10:19:12 -04:00
bundles some of created objects were missing io.kompose.service label 2017-05-16 17:56:32 +02:00
change-in-volume Add --volumes parameter, deprecate emptyvols 2017-09-05 11:39:57 -04:00
configmap Add env_file + ConfigMaps feature to Kompose 2017-10-10 12:40:49 -04:00
controller Added --controller feature 2017-10-04 12:43:45 +05:30
dockerfilepath Validate dockerfilepath in buildconfig 2017-05-30 16:31:20 +05:30
entrypoint-command Adding save command to annotation 2017-08-14 12:22:33 +05:30
envvars-separators Adding save command to annotation 2017-08-14 12:22:33 +05:30
etherpad Adding save command to annotation 2017-08-14 12:22:33 +05:30
examples Added functional test for docker compose files in Example directory 2017-08-24 17:09:51 +05:30
expose-service Adding save command to annotation 2017-08-14 12:22:33 +05:30
gitlab Adding save command to annotation 2017-08-14 12:22:33 +05:30
group-add Adding save command to annotation 2017-08-14 12:22:33 +05:30
healthcheck Adds healthcheck 2017-08-25 10:02:51 -04:00
keyonly-envs Adding save command to annotation 2017-08-14 12:22:33 +05:30
label-port Failing when port is specified with labels 2017-06-15 09:30:01 +05:30
mem-limit Adding save command to annotation 2017-08-14 12:22:33 +05:30
multiple-compose-files Adding save command to annotation 2017-08-14 12:22:33 +05:30
nginx-node-redis Adding save command to annotation 2017-08-14 12:22:33 +05:30
placement Added feature for placement key in v3 2017-10-06 12:22:14 +05:30
ports-with-ip Adding save command to annotation 2017-08-14 12:22:33 +05:30
ports-with-proto Adding save command to annotation 2017-08-14 12:22:33 +05:30
redis-example Move docker-compose.yml test file to tests 2017-04-04 09:09:12 -04:00
restart-options Added support for group_add key 2017-08-10 11:54:35 +05:30
service-name-change Adding save command to annotation 2017-08-14 12:22:33 +05:30
stdin-true Adding save command to annotation 2017-08-14 12:22:33 +05:30
tty-true Adding save command to annotation 2017-08-14 12:22:33 +05:30
v3 Fix the cpu limits and requests in generated deployment file 2017-10-10 10:04:34 +08:00
volume-mounts Fixed tmpfs with mode failure 2017-09-25 14:44:03 +05:30
yaml-and-yml Adding save command to annotation 2017-08-14 12:22:33 +05:30