koki / short

Manageable Kubernetes manifests through a composable, reusable syntax
https://docs.koki.io/short
Apache License 2.0
122 stars 14 forks source link

Empty Operator in Tolerations #150

Closed wlan0 closed 6 years ago

wlan0 commented 6 years ago

The system breaks today if there is a toleration with a Key and Effect, but no operator

      tolerations:
      - key: node-role.kubernetes.io/master
        effect: NoSchedule
      containers:
      - name: fluentd-elasticsearch
        image: gcr.io/google-containers/fluentd-elasticsearch:1.20
        resources:
          limits:
            memory: 200Mi
          requests:
            cpu: 100m
            memory: 200Mi
        volumeMounts:
        - name: varlog
          mountPath: /var/log
        - name: varlibdockercontainers
          mountPath: /var/lib/docker/containers
          readOnly: true
      terminationGracePeriodSeconds: 30
      volumes:
      - name: varlog
        hostPath:
          path: /var/log
      - name: varlibdockercontainers
        hostPath:
          path: /var/lib/docker/containers
wlan0@wlan0:~/code/go/src/github.com/koki/short$ pbpaste | ./bin/short -
Use flag '--verbose-errors' for more detailed error info.
Error: converting stdin: pod template: v1.Toleration: unsupported operator