Skip to content

Commit

Permalink
Fix empty volumes array in sample config
Browse files Browse the repository at this point in the history
YAML "volumes:" parsed as "volumes: null" instead "volumes: []".

This breaks server-side apply:

The Ytsaurus "ytsaurus" is invalid:
spec.execNodes[0].volumes:
Invalid value: "null":
spec.execNodes[0].volumes in body must be of type array: "null"
  • Loading branch information
koct9i committed Aug 5, 2024
1 parent 607de83 commit 64df608
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions config/samples/cluster_v1_cri.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -284,11 +284,11 @@ spec:
# mountPath: /config/registry
# readOnly: true

volumes:
# - name: config-registry
# hostPath:
# path: /etc/containerd/certs.d
# type: Directory
# volumes:
# - name: config-registry
# hostPath:
# path: /etc/containerd/certs.d
# type: Directory

volumeClaimTemplates:
- metadata:
Expand Down

0 comments on commit 64df608

Please sign in to comment.