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

kompose up fails to parse yml that kompose convert generated #1082

Closed
selfup opened this issue Nov 18, 2018 · 1 comment
Closed

kompose up fails to parse yml that kompose convert generated #1082

selfup opened this issue Nov 18, 2018 · 1 comment

Comments

@selfup
Copy link

selfup commented Nov 18, 2018

OS

Ubuntu 18.04.1 LTS

Kompose version

1.17.0 (a74acad)

Stacktrace

ERRO Could not parse config for project kompose : yaml: unmarshal errors:
  line 1: cannot unmarshal !!str `extensi...` into config.RawService
  line 2: cannot unmarshal !!str `Deployment` into config.RawService
FATA composeObject.Parse() failed, Failed to load compose file: yaml: unmarshal errors:
  line 1: cannot unmarshal !!str `extensi...` into config.RawService
  line 2: cannot unmarshal !!str `Deployment` into config.RawService

Why ERRO is not ERROR or FATA not FATAL I have no idea 😂

Kompose file

This is just one of the two files, the other one is the same other than the name of the container

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  annotations:
    kompose.cmd: kompose convert
    kompose.version: 1.17.0 (a74acad)
  creationTimestamp: null
  labels:
    io.kompose.service: downlink
  name: downlink
spec:
  replicas: 1
  strategy: {}
  template:
    metadata:
      creationTimestamp: null
      labels:
        io.kompose.service: downlink
    spec:
      containers:
      - args:
        - ./rel/boot.sh
        env:
        - name: UPLINK_NODE
          value: uplink
        image: registry.gitlab.com/selfup/smache:latest
        name: downlink
        resources: {}
      restartPolicy: Always
status: {}

Script

#!/usr/bin/env bash

kompose up -f kompose/uplink-deployment.yaml -f kompose/downlink-deployment.yaml \
  && kubectl get deployment,svc,pods

Docker Compose File

version: '3.1'

services:
  uplink:
    environment:
      - UPLINK_NODE=uplink
    image: registry.gitlab.com/selfup/smache:latest
    command: ['./rel/boot.sh']
  downlink:
    depends_on:
      - uplink
    links:
      - uplink
    environment:
      - UPLINK_NODE=uplink
    image: registry.gitlab.com/selfup/smache:latest
    command: ['./rel/boot.sh']

Repo(s)

GitHub remote origin: https://github.com/selfup/smache
GitLab remote release: https://gitlab.com/selfup/smache

@selfup selfup changed the title kompose up fails to parse yml kompose convert generated kompose up fails to parse yml that kompose convert generated Nov 18, 2018
@selfup
Copy link
Author

selfup commented Nov 21, 2018

Looks like kompose up works fine without file args

Good thing I have all of it in a dir 😂

@selfup selfup closed this as completed Nov 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant