koki/short

Empty Operator in Tolerations

Closed this issue · 0 comments

wlan0 commented

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