Skip to content

docs: add English other volumes and HDFS configuration samples - #6296

Open
rida-ghreizy wants to merge 1 commit into
fluid-cloudnative:masterfrom
rida-ghreizy:docs/en-other-volumes-hdfs-config
Open

rida-ghreizy wants to merge 1 commit into
fluid-cloudnative:masterfrom
rida-ghreizy:docs/en-other-volumes-hdfs-config

Conversation

@rida-ghreizy

Copy link
Copy Markdown

Ⅰ. Describe what this PR does

docs/zh/samples/other_volumes.md (mount extra volumes such as a Secret into the runtime pods) and docs/zh/samples/hdfs_configuration.md (pass hdfs-site.xml / core-site.xml to Alluxio through hadoopConfig) have no English versions. This adds docs/en/samples/other_volumes.md and docs/en/samples/hdfs_configuration.md as translations.

While translating, I found two errors in the Chinese other-volumes page and fixed them in both languages:

  • spec.master.volumeMounts was indented with a tab. YAML forbids tabs for indentation, so kubectl create -f dataset.yaml failed on that manifest.
  • kubectl get secret fluid-secret -oyaml was split over two lines (-oy / aml).

Ⅱ. Does this pull request fix one issue?

NONE

Ⅲ. List the added test cases (unit test/integration test) if any, please explain if no tests are needed.

Documentation only.

Ⅳ. Describe how to verify it

  • The dataset.yaml heredoc of the other-volumes page parsed with a YAML parser: on master, "Tabs are not allowed as indentation at line 24"; after this PR, both documents parse in the zh and en pages.
  • The code blocks of each English page match the (fixed) Chinese page exactly.
  • The fields used exist in api/v1alpha1/alluxioruntime_types.go: HadoopConfig (hadoopConfig), Volumes, and the master's VolumeMounts. /hdfs-config is hadoopConfMountPath in pkg/ddc/alluxio/const.go.

Ⅴ. Special notes for reviews

Neither page is listed in docs/zh/TOC.md, so I didn't add them to docs/en/TOC.md either.

docs/zh/samples/other_volumes.md and hdfs_configuration.md have no
English version. Translate them. The zh other volumes page also had a
tab-indented volumeMounts line, which makes its YAML fail to parse, and
'-oyaml' split over two lines; fix both there too.

Signed-off-by: rida <ghreizyrida1@gmail.com>
@sonarqubecloud

Copy link
Copy Markdown

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

Successfully merging this pull request may close these issues.

1 participant