ceph-csi/examples/rbd
Niels de Vos 825448825c examples: rbd/storageclass.yaml causes Python excetion with yamllint
While running the 'make test' target and have 'yamllint' available, the
test fails with the following exception:

yamllint -s -d {extends: default, rules: {line-length: {allow-non-breakable-inline-mappings: true}},ignore: charts/*/templates/*.yaml} ./examples/rbd/storageclass.yaml
Traceback (most recent call last):
  File "/usr/local/bin/yamllint", line 11, in <module>
    sys.exit(run())
  File "/usr/local/lib/python3.6/site-packages/yamllint/cli.py", line 181, in run
    problems = linter.run(f, conf, filepath)
  File "/usr/local/lib/python3.6/site-packages/yamllint/linter.py", line 237, in run
    content = input.read()
  File "/usr/lib64/python3.6/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 1947: ordinal not in range(128)

The quotes used in the comments seem to be non-ascii characters.
Replacing these with standard " makes the test pass again.

This problem occurred while running tests in a container based on the
Ceph image (CentOS-7) with Python 3. Travis CI might still use Python 2
for yamllint, and hide the problem.

Signed-off-by: Niels de Vos <ndevos@redhat.com>
2020-03-24 14:42:25 +00:00
..
exec-bash.sh Fix static check for .sh files 2019-02-07 12:19:14 +00:00
logs.sh Fix static check for .sh files 2019-02-07 12:19:14 +00:00
plugin-deploy.sh refact: Remove Kubernetes 1.13.x support 2020-01-20 10:32:30 +00:00
plugin-teardown.sh refact: Remove Kubernetes 1.13.x support 2020-01-20 10:32:30 +00:00
pod-restore.yaml Make deployment artifacts with a consistent name pattern. 2019-05-07 14:54:53 +00:00
pod.yaml Make deployment artifacts with a consistent name pattern. 2019-05-07 14:54:53 +00:00
pvc-restore.yaml rbd supports ReadWriteMany for block mode 2019-06-18 04:41:01 +00:00
pvc.yaml Make deployment artifacts with a consistent name pattern. 2019-05-07 14:54:53 +00:00
raw-block-pod.yaml examples/rbd-block: use a container image that is supported 2020-01-21 13:30:45 +00:00
raw-block-pvc.yaml Make deployment artifacts with a consistent name pattern. 2019-05-07 14:54:53 +00:00
secret.yaml Adds PVC encryption with LUKS 2019-12-16 08:12:44 +00:00
snapshot.yaml Fix yamllint issues 2019-02-07 12:19:14 +00:00
snapshotclass.yaml Remove redundant pool parameter from snapshot class 2019-06-04 08:34:21 +00:00
storageclass.yaml examples: rbd/storageclass.yaml causes Python excetion with yamllint 2020-03-24 14:42:25 +00:00