├── .gitignore ├── img ├── oom.png ├── pr.png ├── clone.png ├── fork.png ├── lgtm.png ├── pr-2.png ├── title1.png ├── agreement.png ├── description.png ├── forked_repo.png ├── issue-link.png ├── where_to_pr.png ├── bad-example-1.png ├── bad-example-2.png ├── git_clone_url.png ├── invalid-title.png ├── request_change.png └── sign-agreement.png ├── generate_table.sh ├── .github └── ISSUE_TEMPLATE │ ├── report-template.md │ └── question-template.md ├── README.md ├── 文档翻译说明文档.md ├── Errors.md ├── extended_resources.md ├── 注释修改说明文档.md ├── How-To.md ├── LICENSE └── issue_list.md /.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | 3 | *.iml 4 | 5 | *~ 6 | -------------------------------------------------------------------------------- /img/oom.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/MR-Course-Assignments/HEAD/img/oom.png -------------------------------------------------------------------------------- /img/pr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/MR-Course-Assignments/HEAD/img/pr.png -------------------------------------------------------------------------------- /img/clone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/MR-Course-Assignments/HEAD/img/clone.png -------------------------------------------------------------------------------- /img/fork.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/MR-Course-Assignments/HEAD/img/fork.png -------------------------------------------------------------------------------- /img/lgtm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/MR-Course-Assignments/HEAD/img/lgtm.png -------------------------------------------------------------------------------- /img/pr-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/MR-Course-Assignments/HEAD/img/pr-2.png -------------------------------------------------------------------------------- /img/title1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/MR-Course-Assignments/HEAD/img/title1.png -------------------------------------------------------------------------------- /img/agreement.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/MR-Course-Assignments/HEAD/img/agreement.png -------------------------------------------------------------------------------- /img/description.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/MR-Course-Assignments/HEAD/img/description.png -------------------------------------------------------------------------------- /img/forked_repo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/MR-Course-Assignments/HEAD/img/forked_repo.png -------------------------------------------------------------------------------- /img/issue-link.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/MR-Course-Assignments/HEAD/img/issue-link.png -------------------------------------------------------------------------------- /img/where_to_pr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/MR-Course-Assignments/HEAD/img/where_to_pr.png -------------------------------------------------------------------------------- /img/bad-example-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/MR-Course-Assignments/HEAD/img/bad-example-1.png -------------------------------------------------------------------------------- /img/bad-example-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/MR-Course-Assignments/HEAD/img/bad-example-2.png -------------------------------------------------------------------------------- /img/git_clone_url.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/MR-Course-Assignments/HEAD/img/git_clone_url.png -------------------------------------------------------------------------------- /img/invalid-title.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/MR-Course-Assignments/HEAD/img/invalid-title.png -------------------------------------------------------------------------------- /img/request_change.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/MR-Course-Assignments/HEAD/img/request_change.png -------------------------------------------------------------------------------- /img/sign-agreement.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/MR-Course-Assignments/HEAD/img/sign-agreement.png -------------------------------------------------------------------------------- /generate_table.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | awk 'NF' list.txt | awk '{print "|" $1 "|[#1](https://github.com/Alluxio/new-contributor-tasks/issues/1)| - | - |"}' > table.txt -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/report-template.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Report Template 3 | about: Template to report your PR 4 | 5 | --- 6 | 7 | (Your NJUID here) 8 | 9 | MG1833001 10 | 11 | (Your Task link here) 12 | 13 | https://github.com/Alluxio/new-contributor-tasks/issues/332 14 | 15 | (Your PR link here) 16 | 17 | https://github.com/Alluxio/alluxio/pull/7992 18 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Assignments for courses of MapReduce@NJU 2 | 3 | ## Assignment 0 4 | [Creating a PR to open source projects](Task-0.md) 5 | 6 | ## Assignment 1 7 | **Will not be published here.** 8 | 9 | ## Assignment 2 10 | **Will not be published here.** 11 | 12 | ## Assignment 3 13 | **Will not be published here.** 14 | 15 | ## Assignment 4 16 | **Will not be published here.** 17 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/question-template.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Question Template 3 | about: Template to ask a question 4 | 5 | --- 6 | 7 | (Your NJUID here) 8 | 9 | MG1833001 10 | 11 | (Your Task link here) 12 | 13 | https://github.com/Alluxio/new-contributor-tasks/issues/332 14 | 15 | (Describe Your problem briefly here) 16 | 17 | (Provide necessary information, as many as you can) 18 | -------------------------------------------------------------------------------- /文档翻译说明文档.md: -------------------------------------------------------------------------------- 1 | ## Demo - 文档翻译 2 | 3 | 以下是文档翻译的一些注意点: 4 | 1. 一篇文档的翻译被分为了多个Task进行,这意味着在从修改到PR再到合并这段过程中,你可能正在与其他人并发地在同一个文档上工作,如果在PR时发生合并冲突,请使用`git rebase`尝试进行解决 5 | 6 | 2. 大多数情况下,文档中涉及的代码块是不需要翻译的,但如果代码块中包含解释该代码一些部分的注释,则这些注释也需要进行翻译 7 | 8 | 3. 在一些文档任务中提供了一些参考的已经翻译完成的文档,这些参考文档有些内容可以进行复用,以减轻工作量 9 | 10 | 提供一些文档中可能会出现的概念或术语的翻译作为参考: 11 | 12 | - 分布式数据缓存引擎 -> distributed data cache engine 13 | - 资源对象 -> resource object 14 | - 镜像 -> image 15 | - 容器 -> container 16 | - 挂载 -> mount 17 | - 标记 -> label (例如:标记XX结点) 18 | - 冷数据 -> cold data 19 | - 热数据 -> warm data 20 | -------------------------------------------------------------------------------- /Errors.md: -------------------------------------------------------------------------------- 1 | # 常见错误 2 | 3 | ## 1. commit 信息 或 pr 信息中含有学号、作业等信息 4 | 5 | Alluxio 是 AMPLab 发起的流行开源项目,不是实验室的玩具项目。我们的目的在于指导大家如何向开源项目贡献代码,请不要在 commit 和 pr 中包含与项目无关的信息。另外,请不要使用中文。 6 | 7 | 例如: 8 | 9 | bad example 10 | 11 | ## 2. 夹杂 IDE 自动生成的配置文件等无用文件 12 | 13 | 在大型项目中,开发人员众多,使用的 IDE 也不尽相同,把 IDE 的配置信息提交到代码库是不合适的,会引起冲突。 14 | 15 | 例如: 16 | 17 | bad example 18 | 19 | 由于 ignore 文件无法随便修改,所以如果 IDE 自动生成的配置文件等没有被忽略,请重置 commit ,并手动选择改动进行提交。一般而言,涉及的改动没有文件的增删,所以直接用 `git commit -am '简要描述改动'` 提交改动即可。 20 | 21 | ## 3. 原 PR 出现问题后,关闭原有 PR,重新创建 PR 22 | 每个 PR 都会花费维护人员的精力,请尽量在原有的 PR 上修改代码(push 到相同的分支即可),这样维护者可以根据上下文快速的review,尽量避免发起一堆 PR 。 23 | -------------------------------------------------------------------------------- /extended_resources.md: -------------------------------------------------------------------------------- 1 | ## 额外供参考学习的资料 2 | 3 | + [Github Docs](https://docs.github.com/en) 4 | - [有关 Github Issues](https://docs.github.com/en/free-pro-team@latest/github/managing-your-work-on-github/managing-your-work-with-issues) 5 | - [有关Pull Request](https://docs.github.com/en/free-pro-team@latest/github/collaborating-with-issues-and-pull-requests/proposing-changes-to-your-work-with-pull-requests) 6 | - [有关PR Code Review](https://docs.github.com/en/free-pro-team@latest/github/collaborating-with-issues-and-pull-requests/reviewing-changes-in-pull-requests) 7 | - [有关项目任务看板 Project Board](https://docs.github.com/en/free-pro-team@latest/github/managing-your-work-on-github/tracking-the-progress-of-your-work-with-project-boards) 8 | 9 | + [How to Write Good Commit Messages: A Practical Git Guide](https://www.freecodecamp.org/news/writing-good-commit-messages-a-practical-guide/) 10 | + [Travis CI持续集成服务](https://www.travis-ci.org/) 11 | + [Codecov测试覆盖服务](https://codecov.io/) 12 | 13 | -------------------------------------------------------------------------------- /注释修改说明文档.md: -------------------------------------------------------------------------------- 1 | ## Demo - 规范化的注释 2 | 3 | 在进行注释的添加或修改时,需要满足注释的规范性。 4 | 5 | 在Fluid项目中我们遵循[Godoc](https://blog.golang.org/godoc)以及[Kubernetes](https://github.com/kubernetes/kubernetes)生态的注释规范,下面将通过一个简单的示例演示注释修改的过程。 6 | 7 | 以下是一个不规范的注释: 8 | ```go 9 | /* 10 | * this function prints "Hello" 11 | * and returns the length of the given name. 12 | * This is a demo function. 13 | */ 14 | 15 | func Hello(name string) int { 16 | fmt.Println("Hello") 17 | return len(name) 18 | } 19 | ``` 20 | 21 | 上述注释存在的问题为: 22 | 1. 不应使用`/**/`作为注释,无论单行注释还是多行注释,永远使用`//`标识注释块 23 | 24 | 2. 注释与所注释的实体(e.g. func, struct等)不应当包含空行 25 | 26 | 3. 注释可以包含多句或多段,但整个注释的第一个单词需要为被注释实体的实体名。 27 | 28 | > 更多注释规范请参考[godoc](https://blog.golang.org/godoc) 29 | 30 | 修改后如下所示: 31 | ```go 32 | // Hello prints "Hello" and returns the length of the given name. 33 | // This is a demo function. 34 | func Hello(name string) int { 35 | fmt.Printf("Hello, %s\n", name) 36 | return len(name) 37 | } 38 | 39 | ``` 40 | 41 | 一些官方的规范注释: 42 | ```go 43 | // Fprint formats using the default formats for its operands and writes to w. 44 | // Spaces are added between operands when neither is a string. 45 | // It returns the number of bytes written and any write error encountered. 46 | func Fprint(w io.Writer, a ...interface{}) (n int, err error) { 47 | ``` 48 | 49 | ```go 50 | // ListOptions contains options for limiting or filtering results. 51 | // It's generally a subset of metav1.ListOptions, with support for 52 | // pre-parsed selectors (since generally, selectors will be executed 53 | // against the cache). 54 | type ListOptions struct { 55 | ``` 56 | 57 | ```go 58 | // Namespace represents the namespace to list for, or empty for 59 | // non-namespaced objects, or to list across all namespaces. 60 | Namespace string 61 | ``` 62 | 63 | -------------------------------------------------------------------------------- /How-To.md: -------------------------------------------------------------------------------- 1 | ## Demo Task 2 | 3 | ## 贡献流程 4 | 5 | > Notes: 对于接下来的项目的共享过程以非Collaborator的形式进行 6 | 7 | ### 环境搭建 8 | 9 | 1. 注册并登录Github账号 10 | 11 | 2. 找到Fluid项目的[Github页面](https://github.com/fluid-cloudnative/fluid) 12 | 13 | 3. 点击右上角的Fork,将该仓库Fork到自己的Github账号下: 14 | 15 | ![forked_repo](img/forked_repo.png) 16 | 17 | 4. git clone **自己账号下的项目** 18 | 19 | 首先点击**自己账号下的项目页面**的Code,复制git repo url: 20 | 21 | ![git_clone_url](img/git_clone_url.png) 22 | 23 | 接着在本机的某个目录下执行: 24 | ``` 25 | cd 26 | git clone 27 | ``` 28 | 29 | 例如: 30 | ``` 31 | git clone https://github.com/TrafalgarZZZ/fluid.git 32 | ``` 33 | 34 | clone成功后,该目录(i.e. )下会出现一个名为fluid的目录 35 | 36 | 5. 设置git remote 37 | 38 | ``` 39 | cd fluid 40 | ``` 41 | 首先查看git remote状态: 42 | ``` 43 | git remote -v 44 | ``` 45 | 会得到如下结果: 46 | ``` 47 | origin https://github.com/TrafalgarZZZ/fluid.git (fetch) 48 | origin https://github.com/TrafalgarZZZ/fluid.git (push) 49 | 50 | ``` 51 | 52 | 为了后续方便,我们手动创建一个Upstream Remote,其repo url为Fluid项目的地址: 53 | ``` 54 | git remote add upstream https://github.com/fluid-cloudnative/fluid.git 55 | ``` 56 | 57 | ``` 58 | git remote -v 59 | origin https://github.com/TrafalgarZZZ/fluid.git (fetch) 60 | origin https://github.com/TrafalgarZZZ/fluid.git (push) 61 | upstream https://github.com/fluid-cloudnative/fluid.git (fetch) 62 | upstream https://github.com/fluid-cloudnative/fluid.git (push) 63 | 64 | ``` 65 | 66 | ### 创建新Issue 67 | 68 | 1. 在[Fluid项目Issue子页面](https://github.com/fluid-cloudnative/fluid/issues)选择页面右边的"New Issue" 69 | 70 | 2. 选择“Document Defect”作为模板 71 | 72 | 3. 在Issue编辑页面,简单描述待解决的问题(例如:某文件License缺失或License不规范等),在模板的对应位置按照自己的Task填入信息 73 | 74 | 4. 提交Issue 75 | 76 | ### 本地修改 77 | 78 | 1. 创建新的本地分支 79 | ``` 80 | git checkout -b 81 | ``` 82 | 83 | 【分支名字】例如: 84 | ``` 85 | git checkout -b remove_redundant_comment 86 | ``` 87 | 88 | 89 | 2. 在该分支下对Fluid目录下的文件进行你想要做的修改,也就是Task内容 90 | 91 | 3. 完成后查看状态: 92 | ``` 93 | git status 94 | ``` 95 | 96 | 得到类似如下结果: 97 | ``` 98 | On branch remove_redundant_comment 99 | Changes not staged for commit: 100 | (use "git add ..." to update what will be committed) 101 | (use "git checkout -- ..." to discard changes in working directory) 102 | 103 | modified: pkg/utils/kubectl/configmap.go 104 | 105 | no changes added to commit (use "git add" and/or "git commit -a") 106 | ``` 107 | 108 | 4. commit本地修改 109 | ``` 110 | git add pkg/utils/kubectl/configmap.go 111 | ``` 112 | > Notes: 请确保你只add了自己改动的文件,commit前请确保你已经Review过自己的全部改动 113 | 114 | ``` 115 | git status 116 | ``` 117 | 可以看到相关改动已经可以被commit了: 118 | ``` 119 | On branch remove_redundant_comment 120 | Changes to be committed: 121 | (use "git reset HEAD ..." to unstage) 122 | 123 | modified: pkg/utils/kubectl/configmap.go 124 | ``` 125 | 126 | 这时commit自己的修改: 127 | ``` 128 | git commit -m 129 | 130 | ``` 131 | commit-message应当足够能描述该commit修改的内容,同时应当足够简单 132 | 133 | 例如: 134 | ``` 135 | git commit -m "remove redundant comment on `kubectl` function" 136 | ``` 137 | 138 | 你可以在`git log`中找到自己的commit history 139 | ``` 140 | git log [--oneline] [--graph] 141 | ``` 142 | 143 | 5. Rebase && Push 144 | 【Rebase与Merge有着相似的功能,在Fluid项目里使用Rebase作为分支合并的主要方式】 145 | 146 | 在完成全部改动,并将改动全部commit后,就可以将改动push到**自己的远程仓库**了 147 | 148 | 由于同时可能有多个人同时并行地进行该项目的修改,因此为了防止合并冲突,强烈建议在Push前进行Rebase操作。 149 | 150 | Rebase操作会将寻找当前分支和另一个分支的最近公共祖先Commit,然后首先作用另一个分支的新Commits,接着作用当前分支的新Commits。简单来说,是一条分叉链表的合并操作,最终将会得到一条无分叉的commit链。 151 | 152 | 在进行Rebase操作时,如果发生合并冲突,可以直接在本地分支上进行解决。 153 | 154 | 步骤: 155 | 156 | 首先,同步upstream仓库: 157 | ``` 158 | git fetch upstream 159 | ``` 160 | 161 | 接着,以upstream的master分支为目标进行`git rebase` 162 | ``` 163 | git rebase upstream/master 164 | ``` 165 | 166 | 若无冲突发生,即可进行接下来的Push操作: 167 | ``` 168 | git push origin 169 | git push --set-upstream origin remove_redundant_comment 170 | ``` 171 | 上述命令将会提交到你自己的远程仓库,也就是名为origin的remote,这也是你拥有写权限的仓库。如果直接提交到`upstream` remote将会因为权限问题被拒绝 172 | 173 | 6. Pull Request 174 | 175 | ![Where to PR](img/where_to_pr.png) 176 | 177 | 点击Pull Request,在新页面中选择自己改动后的分支(e.g. remove_redundant_comment) 178 | 179 | **此时,你可以最后一次Review自己提交的commit,以及所做的改动** 180 | 181 | 按照Pull Request模板进行填写,PR标题简述改动内容,PR中按照模板提示进行填写,在“Does this pull request fix one issue”的部分中,填写你刚才提交的Issue的编号,例如,提交的Issue编号为#123,那么此处写 Fixes #123,Github会将该PR自动链接到该Issue上,当该PR被合并到Master分支之后,对应的Issue也将自动关闭 182 | 183 | 全部填写完成后,提交这个PR。 184 | 185 | 【PR提交后的图片】 186 | 187 | 7. PR Review 188 | 189 | 提交PR后,请持续关注自己PR的状态。 190 | Reviewer会对你的改动进行审核,讨论或提问,要求修改等 191 | 请在相应的位置及时进行回复、或修改,如果你认为Reviewer给出的意见存在问题,也可在相应位置回复和Reviewer进行讨论。 192 | 193 | 如果Reviewer认为你的改动存在问题,将会在相应的地方给出修改建议,并要求重新修改(Request Change): 194 | 195 | ![request_change](img/request_change.png) 196 | 197 | 这意味着你需要重复2到4步,**大部分情况下无需rebase**,push到该PR对应的自己项目仓库下的分支上 198 | 199 | 如果Reviewer认为你的改动没问题,那么通常会在该PR上留言: 200 | 201 | ![lgtm](img/lgtm.png) 202 | 203 | "lgtm"为 “Looks good to me"的简称,代表该PR可以被合并, 204 | 205 | 在确定看到自己的PR状态从"Open"变为"Merged"后,恭喜你,正式完成了对于开源项目的贡献 206 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /issue_list.md: -------------------------------------------------------------------------------- 1 | ## 说明 2 | 本次实验的主要内容是给每个任务中对应位置的文件添加Apache License许可证。在使用Apache License的开源项目的每个源码文件均需要添加上Apache License的通告声明: 3 | ``` 4 | Copyright The Author. 5 | 6 | Licensed under the Apache License, Version 2.0 (the "License"); 7 | you may not use this file except in compliance with the License. 8 | You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, software 13 | distributed under the License is distributed on an "AS IS" BASIS, 14 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | See the License for the specific language governing permissions and 16 | limitations under the License. 17 | ``` 18 | 19 | 每个任务需要完成的内容是将上述内容以**块注释**的形式添加到对应位置文件的开头部分。 20 | 21 | 例如`pkg/utils/dataset/lifecycle/node_test.go`文件目前不存在Apache License的通告声明,该文件的开头内容原本为 22 | ```go 23 | 24 | package lifecycle 25 | 26 | import ( 27 | "fmt" 28 | "reflect" 29 | "testing" 30 | 31 | datav1alpha1 "github.com/fluid-cloudnative/fluid/api/v1alpha1" 32 | "github.com/fluid-cloudnative/fluid/pkg/common" 33 | "github.com/fluid-cloudnative/fluid/pkg/ddc/base" 34 | "github.com/fluid-cloudnative/fluid/pkg/utils/kubeclient" 35 | v1 "k8s.io/api/core/v1" 36 | "k8s.io/apimachinery/pkg/api/resource" 37 | metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" 38 | "k8s.io/apimachinery/pkg/runtime" 39 | "sigs.k8s.io/controller-runtime/pkg/client/fake" 40 | ) 41 | ``` 42 | 你需要将通告声明以**注释**的形式添加到该文件的开头。内容如下: 43 | ```go 44 | /* 45 | Copyright 2022 The Fluid Authors. 46 | 47 | Licensed under the Apache License, Version 2.0 (the "License"); 48 | you may not use this file except in compliance with the License. 49 | You may obtain a copy of the License at 50 | 51 | http://www.apache.org/licenses/LICENSE-2.0 52 | 53 | Unless required by applicable law or agreed to in writing, software 54 | distributed under the License is distributed on an "AS IS" BASIS, 55 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 56 | See the License for the specific language governing permissions and 57 | limitations under the License. 58 | */ 59 | 60 | package lifecycle 61 | 62 | import ( 63 | "fmt" 64 | "reflect" 65 | "testing" 66 | 67 | datav1alpha1 "github.com/fluid-cloudnative/fluid/api/v1alpha1" 68 | "github.com/fluid-cloudnative/fluid/pkg/common" 69 | "github.com/fluid-cloudnative/fluid/pkg/ddc/base" 70 | "github.com/fluid-cloudnative/fluid/pkg/utils/kubeclient" 71 | v1 "k8s.io/api/core/v1" 72 | "k8s.io/apimachinery/pkg/api/resource" 73 | metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" 74 | "k8s.io/apimachinery/pkg/runtime" 75 | "sigs.k8s.io/controller-runtime/pkg/client/fake" 76 | ) 77 | ``` 78 | 79 | > 注意:License块注释与`package xxx`间需要包含一个空行 80 | 81 | 另外还有一种情况是,文件包含Apache License的通告声明,但缺少Copyright,因此该通告声明仍然是不规范的。 82 | 83 | 例如,`pkg/ddc/goosefs/deprecated_label.go`开头为: 84 | ```go 85 | /* 86 | 87 | Licensed under the Apache License, Version 2.0 (the "License"); 88 | you may not use this file except in compliance with the License. 89 | You may obtain a copy of the License at 90 | 91 | http://www.apache.org/licenses/LICENSE-2.0 92 | 93 | Unless required by applicable law or agreed to in writing, software 94 | distributed under the License is distributed on an "AS IS" BASIS, 95 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 96 | See the License for the specific language governing permissions and 97 | limitations under the License. 98 | */ 99 | 100 | package goosefs 101 | ``` 102 | 103 | 需要规范化该通告声明,增加Copyright,改为以下内容: 104 | ```go 105 | /* 106 | Copyright 2022 The Fluid Authors. 107 | 108 | Licensed under the Apache License, Version 2.0 (the "License"); 109 | you may not use this file except in compliance with the License. 110 | You may obtain a copy of the License at 111 | 112 | http://www.apache.org/licenses/LICENSE-2.0 113 | 114 | Unless required by applicable law or agreed to in writing, software 115 | distributed under the License is distributed on an "AS IS" BASIS, 116 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 117 | See the License for the specific language governing permissions and 118 | limitations under the License. 119 | */ 120 | 121 | package goosefs 122 | ``` 123 | 124 | > 注意:License块注释与`package xxx`间需要包含一个空行 125 | 126 | 修改完成后提交Pull Request并被合并,即完成了该Task。 127 | 128 | ## Task列表 129 | 130 | ### Task 0 131 | 类别:添加或规范化License信息 132 | 133 | 位置:`pkg/ctrl/watch/runtime.go` 134 | 135 | 内容:在该文件头部添加或规范化License信息 136 | 137 | ### Task 1 138 | 类别:添加或规范化License信息 139 | 140 | 位置:`pkg/ctrl/watch/fake_runtime_reconciler.go` 141 | 142 | 内容:在该文件头部添加或规范化License信息 143 | 144 | ### Task 2 145 | 类别:添加或规范化License信息 146 | 147 | 位置:`pkg/ddc/factory.go` 148 | 149 | 内容:在该文件头部添加或规范化License信息 150 | 151 | ### Task 3 152 | 类别:添加或规范化License信息 153 | 154 | 位置:`pkg/ddc/goosefs/master_test.go` 155 | 156 | 内容:在该文件头部添加或规范化License信息 157 | 158 | ### Task 4 159 | 类别:添加或规范化License信息 160 | 161 | 位置:`pkg/ddc/goosefs/node.go` 162 | 163 | 内容:在该文件头部添加或规范化License信息 164 | 165 | ### Task 5 166 | 类别:添加或规范化License信息 167 | 168 | 位置:`pkg/ddc/goosefs/types_test.go` 169 | 170 | 内容:在该文件头部添加或规范化License信息 171 | 172 | ### Task 6 173 | 类别:添加或规范化License信息 174 | 175 | 位置:`pkg/ddc/goosefs/worker.go` 176 | 177 | 内容:在该文件头部添加或规范化License信息 178 | 179 | ### Task 7 180 | 类别:添加或规范化License信息 181 | 182 | 位置:`pkg/ddc/goosefs/status.go` 183 | 184 | 内容:在该文件头部添加或规范化License信息 185 | 186 | ### Task 8 187 | 类别:添加或规范化License信息 188 | 189 | 位置:`pkg/ddc/goosefs/load_data.go` 190 | 191 | 内容:在该文件头部添加或规范化License信息 192 | 193 | ### Task 9 194 | 类别:添加或规范化License信息 195 | 196 | 位置:`pkg/ddc/goosefs/transform_api_gateway.go` 197 | 198 | 内容:在该文件头部添加或规范化License信息 199 | 200 | ### Task 10 201 | 类别:添加或规范化License信息 202 | 203 | 位置:`pkg/ddc/goosefs/worker_test.go` 204 | 205 | 内容:在该文件头部添加或规范化License信息 206 | 207 | ### Task 11 208 | 类别:添加或规范化License信息 209 | 210 | 位置:`pkg/ddc/goosefs/deprecated_label_test.go` 211 | 212 | 内容:在该文件头部添加或规范化License信息 213 | 214 | ### Task 12 215 | 类别:添加或规范化License信息 216 | 217 | 位置:`pkg/ddc/goosefs/master_internal_test.go` 218 | 219 | 内容:在该文件头部添加或规范化License信息 220 | 221 | ### Task 13 222 | 类别:添加或规范化License信息 223 | 224 | 位置:`pkg/ddc/goosefs/transform_ufs.go` 225 | 226 | 内容:在该文件头部添加或规范化License信息 227 | 228 | ### Task 14 229 | 类别:添加或规范化License信息 230 | 231 | 位置:`pkg/ddc/goosefs/transform_permission.go` 232 | 233 | 内容:在该文件头部添加或规范化License信息 234 | 235 | ### Task 15 236 | 类别:添加或规范化License信息 237 | 238 | 位置:`pkg/ddc/goosefs/label_test.go` 239 | 240 | 内容:在该文件头部添加或规范化License信息 241 | 242 | ### Task 16 243 | 类别:添加或规范化License信息 244 | 245 | 位置:`pkg/ddc/goosefs/ufs_internal_test.go` 246 | 247 | 内容:在该文件头部添加或规范化License信息 248 | 249 | ### Task 17 250 | 类别:添加或规范化License信息 251 | 252 | 位置:`pkg/ddc/goosefs/engine.go` 253 | 254 | 内容:在该文件头部添加或规范化License信息 255 | 256 | ### Task 18 257 | 类别:添加或规范化License信息 258 | 259 | 位置:`pkg/ddc/goosefs/ufs_internal.go` 260 | 261 | 内容:在该文件头部添加或规范化License信息 262 | 263 | ### Task 19 264 | 类别:添加或规范化License信息 265 | 266 | 位置:`pkg/ddc/goosefs/create_volume_test.go` 267 | 268 | 内容:在该文件头部添加或规范化License信息 269 | 270 | ### Task 20 271 | 类别:添加或规范化License信息 272 | 273 | 位置:`pkg/ddc/goosefs/transform_init_users_test.go` 274 | 275 | 内容:在该文件头部添加或规范化License信息 276 | 277 | ### Task 21 278 | 类别:添加或规范化License信息 279 | 280 | 位置:`pkg/ddc/goosefs/const.go` 281 | 282 | 内容:在该文件头部添加或规范化License信息 283 | 284 | ### Task 22 285 | 类别:添加或规范化License信息 286 | 287 | 位置:`pkg/ddc/goosefs/utils_test.go` 288 | 289 | 内容:在该文件头部添加或规范化License信息 290 | 291 | ### Task 23 292 | 类别:添加或规范化License信息 293 | 294 | 位置:`pkg/ddc/goosefs/dataset.go` 295 | 296 | 内容:在该文件头部添加或规范化License信息 297 | 298 | ### Task 24 299 | 类别:添加或规范化License信息 300 | 301 | 位置:`pkg/ddc/goosefs/load_data_test.go` 302 | 303 | 内容:在该文件头部添加或规范化License信息 304 | 305 | ### Task 25 306 | 类别:添加或规范化License信息 307 | 308 | 位置:`pkg/ddc/goosefs/ufs_test.go` 309 | 310 | 内容:在该文件头部添加或规范化License信息 311 | 312 | ### Task 26 313 | 类别:添加或规范化License信息 314 | 315 | 位置:`pkg/ddc/goosefs/transform_api_gateway_test.go` 316 | 317 | 内容:在该文件头部添加或规范化License信息 318 | 319 | ### Task 27 320 | 类别:添加或规范化License信息 321 | 322 | 位置:`pkg/ddc/goosefs/transform.go` 323 | 324 | 内容:在该文件头部添加或规范化License信息 325 | 326 | ### Task 28 327 | 类别:添加或规范化License信息 328 | 329 | 位置:`pkg/ddc/goosefs/hcfs.go` 330 | 331 | 内容:在该文件头部添加或规范化License信息 332 | 333 | ### Task 29 334 | 类别:添加或规范化License信息 335 | 336 | 位置:`pkg/ddc/goosefs/transform_fuse_test.go` 337 | 338 | 内容:在该文件头部添加或规范化License信息 339 | 340 | ### Task 30 341 | 类别:添加或规范化License信息 342 | 343 | 位置:`pkg/ddc/goosefs/types_selector.go` 344 | 345 | 内容:在该文件头部添加或规范化License信息 346 | 347 | ### Task 31 348 | 类别:添加或规范化License信息 349 | 350 | 位置:`pkg/ddc/goosefs/transform_test.go` 351 | 352 | 内容:在该文件头部添加或规范化License信息 353 | 354 | ### Task 32 355 | 类别:添加或规范化License信息 356 | 357 | 位置:`pkg/ddc/goosefs/replicas_test.go` 358 | 359 | 内容:在该文件头部添加或规范化License信息 360 | 361 | ### Task 33 362 | 类别:添加或规范化License信息 363 | 364 | 位置:`pkg/ddc/goosefs/create_volume.go` 365 | 366 | 内容:在该文件头部添加或规范化License信息 367 | 368 | ### Task 34 369 | 类别:添加或规范化License信息 370 | 371 | 位置:`pkg/ddc/goosefs/cache.go` 372 | 373 | 内容:在该文件头部添加或规范化License信息 374 | 375 | ### Task 35 376 | 类别:添加或规范化License信息 377 | 378 | 位置:`pkg/ddc/goosefs/dataset_test.go` 379 | 380 | 内容:在该文件头部添加或规范化License信息 381 | 382 | ### Task 36 383 | 类别:添加或规范化License信息 384 | 385 | 位置:`pkg/ddc/goosefs/shutdown.go` 386 | 387 | 内容:在该文件头部添加或规范化License信息 388 | 389 | ### Task 37 390 | 类别:添加或规范化License信息 391 | 392 | 位置:`pkg/ddc/goosefs/transform_optimization_test.go` 393 | 394 | 内容:在该文件头部添加或规范化License信息 395 | 396 | ### Task 38 397 | 类别:添加或规范化License信息 398 | 399 | 位置:`pkg/ddc/goosefs/delete_volume.go` 400 | 401 | 内容:在该文件头部添加或规范化License信息 402 | 403 | ### Task 39 404 | 类别:添加或规范化License信息 405 | 406 | 位置:`pkg/ddc/goosefs/report_test.go` 407 | 408 | 内容:在该文件头部添加或规范化License信息 409 | 410 | ### Task 40 411 | 类别:添加或规范化License信息 412 | 413 | 位置:`pkg/ddc/goosefs/ufs.go` 414 | 415 | 内容:在该文件头部添加或规范化License信息 416 | 417 | ### Task 41 418 | 类别:添加或规范化License信息 419 | 420 | 位置:`pkg/ddc/goosefs/metadata.go` 421 | 422 | 内容:在该文件头部添加或规范化License信息 423 | 424 | ### Task 42 425 | 类别:添加或规范化License信息 426 | 427 | 位置:`pkg/ddc/goosefs/engine_test.go` 428 | 429 | 内容:在该文件头部添加或规范化License信息 430 | 431 | ### Task 43 432 | 类别:添加或规范化License信息 433 | 434 | 位置:`pkg/ddc/goosefs/port_parser.go` 435 | 436 | 内容:在该文件头部添加或规范化License信息 437 | 438 | ### Task 44 439 | 类别:添加或规范化License信息 440 | 441 | 位置:`pkg/ddc/goosefs/master.go` 442 | 443 | 内容:在该文件头部添加或规范化License信息 444 | 445 | ### Task 45 446 | 类别:添加或规范化License信息 447 | 448 | 位置:`pkg/ddc/goosefs/transform_resources_test.go` 449 | 450 | 内容:在该文件头部添加或规范化License信息 451 | 452 | ### Task 46 453 | 类别:添加或规范化License信息 454 | 455 | 位置:`pkg/ddc/goosefs/transform_hadoop_config.go` 456 | 457 | 内容:在该文件头部添加或规范化License信息 458 | 459 | ### Task 47 460 | 类别:添加或规范化License信息 461 | 462 | 位置:`pkg/ddc/goosefs/transform_resources.go` 463 | 464 | 内容:在该文件头部添加或规范化License信息 465 | 466 | ### Task 48 467 | 类别:添加或规范化License信息 468 | 469 | 位置:`pkg/ddc/goosefs/label.go` 470 | 471 | 内容:在该文件头部添加或规范化License信息 472 | 473 | ### Task 49 474 | 类别:添加或规范化License信息 475 | 476 | 位置:`pkg/ddc/goosefs/hcfs_test.go` 477 | 478 | 内容:在该文件头部添加或规范化License信息 479 | 480 | ### Task 50 481 | 类别:添加或规范化License信息 482 | 483 | 位置:`pkg/ddc/goosefs/transform_init_users.go` 484 | 485 | 内容:在该文件头部添加或规范化License信息 486 | 487 | ### Task 51 488 | 类别:添加或规范化License信息 489 | 490 | 位置:`pkg/ddc/goosefs/master_internal.go` 491 | 492 | 内容:在该文件头部添加或规范化License信息 493 | 494 | ### Task 52 495 | 类别:添加或规范化License信息 496 | 497 | 位置:`pkg/ddc/goosefs/report.go` 498 | 499 | 内容:在该文件头部添加或规范化License信息 500 | 501 | ### Task 53 502 | 类别:添加或规范化License信息 503 | 504 | 位置:`pkg/ddc/goosefs/types.go` 505 | 506 | 内容:在该文件头部添加或规范化License信息 507 | 508 | ### Task 54 509 | 类别:添加或规范化License信息 510 | 511 | 位置:`pkg/ddc/goosefs/runtime_info.go` 512 | 513 | 内容:在该文件头部添加或规范化License信息 514 | 515 | ### Task 55 516 | 类别:添加或规范化License信息 517 | 518 | 位置:`pkg/ddc/goosefs/transform_fuse.go` 519 | 520 | 内容:在该文件头部添加或规范化License信息 521 | 522 | ### Task 56 523 | 类别:添加或规范化License信息 524 | 525 | 位置:`pkg/ddc/goosefs/node_test.go` 526 | 527 | 内容:在该文件头部添加或规范化License信息 528 | 529 | ### Task 57 530 | 类别:添加或规范化License信息 531 | 532 | 位置:`pkg/ddc/goosefs/health_check_test.go` 533 | 534 | 内容:在该文件头部添加或规范化License信息 535 | 536 | ### Task 58 537 | 类别:添加或规范化License信息 538 | 539 | 位置:`pkg/ddc/goosefs/utils.go` 540 | 541 | 内容:在该文件头部添加或规范化License信息 542 | 543 | ### Task 59 544 | 类别:添加或规范化License信息 545 | 546 | 位置:`pkg/ddc/goosefs/deprecated_label.go` 547 | 548 | 内容:在该文件头部添加或规范化License信息 549 | 550 | ### Task 60 551 | 类别:添加或规范化License信息 552 | 553 | 位置:`pkg/ddc/goosefs/shutdown_test.go` 554 | 555 | 内容:在该文件头部添加或规范化License信息 556 | 557 | ### Task 61 558 | 类别:添加或规范化License信息 559 | 560 | 位置:`pkg/ddc/goosefs/api_gateway_test.go` 561 | 562 | 内容:在该文件头部添加或规范化License信息 563 | 564 | ### Task 62 565 | 类别:添加或规范化License信息 566 | 567 | 位置:`pkg/ddc/goosefs/replicas.go` 568 | 569 | 内容:在该文件头部添加或规范化License信息 570 | 571 | ### Task 63 572 | 类别:添加或规范化License信息 573 | 574 | 位置:`pkg/ddc/goosefs/transform_optimization.go` 575 | 576 | 内容:在该文件头部添加或规范化License信息 577 | 578 | ### Task 64 579 | 类别:添加或规范化License信息 580 | 581 | 位置:`pkg/ddc/goosefs/port_parser_test.go` 582 | 583 | 内容:在该文件头部添加或规范化License信息 584 | 585 | ### Task 65 586 | 类别:添加或规范化License信息 587 | 588 | 位置:`pkg/ddc/goosefs/transform_permission_test.go` 589 | 590 | 内容:在该文件头部添加或规范化License信息 591 | 592 | ### Task 66 593 | 类别:添加或规范化License信息 594 | 595 | 位置:`pkg/ddc/goosefs/transform_ufs_test.go` 596 | 597 | 内容:在该文件头部添加或规范化License信息 598 | 599 | ### Task 67 600 | 类别:添加或规范化License信息 601 | 602 | 位置:`pkg/ddc/goosefs/health_check.go` 603 | 604 | 内容:在该文件头部添加或规范化License信息 605 | 606 | ### Task 68 607 | 类别:添加或规范化License信息 608 | 609 | 位置:`pkg/ddc/goosefs/api_gateway.go` 610 | 611 | 内容:在该文件头部添加或规范化License信息 612 | 613 | ### Task 69 614 | 类别:添加或规范化License信息 615 | 616 | 位置:`pkg/ddc/goosefs/delete_volume_test.go` 617 | 618 | 内容:在该文件头部添加或规范化License信息 619 | 620 | ### Task 70 621 | 类别:添加或规范化License信息 622 | 623 | 位置:`pkg/ddc/goosefs/operations/local.go` 624 | 625 | 内容:在该文件头部添加或规范化License信息 626 | 627 | ### Task 71 628 | 类别:添加或规范化License信息 629 | 630 | 位置:`pkg/ddc/goosefs/operations/base_test.go` 631 | 632 | 内容:在该文件头部添加或规范化License信息 633 | 634 | ### Task 72 635 | 类别:添加或规范化License信息 636 | 637 | 位置:`pkg/ddc/goosefs/operations/conf.go` 638 | 639 | 内容:在该文件头部添加或规范化License信息 640 | 641 | ### Task 73 642 | 类别:添加或规范化License信息 643 | 644 | 位置:`pkg/ddc/goosefs/operations/base.go` 645 | 646 | 内容:在该文件头部添加或规范化License信息 647 | 648 | ### Task 74 649 | 类别:添加或规范化License信息 650 | 651 | 位置:`pkg/ddc/goosefs/operations/cached.go` 652 | 653 | 内容:在该文件头部添加或规范化License信息 654 | 655 | ### Task 75 656 | 类别:添加或规范化License信息 657 | 658 | 位置:`pkg/ddc/goosefs/operations/local_test.go` 659 | 660 | 内容:在该文件头部添加或规范化License信息 661 | 662 | ### Task 76 663 | 类别:添加或规范化License信息 664 | 665 | 位置:`pkg/ddc/goosefs/operations/cached_test.go` 666 | 667 | 内容:在该文件头部添加或规范化License信息 668 | 669 | ### Task 77 670 | 类别:添加或规范化License信息 671 | 672 | 位置:`pkg/ddc/base/load_data.go` 673 | 674 | 内容:在该文件头部添加或规范化License信息 675 | 676 | ### Task 78 677 | 类别:添加或规范化License信息 678 | 679 | 位置:`pkg/ddc/base/syncs.go` 680 | 681 | 内容:在该文件头部添加或规范化License信息 682 | 683 | ### Task 79 684 | 类别:添加或规范化License信息 685 | 686 | 位置:`pkg/ddc/base/template_engine.go` 687 | 688 | 内容:在该文件头部添加或规范化License信息 689 | 690 | ### Task 80 691 | 类别:添加或规范化License信息 692 | 693 | 位置:`pkg/ddc/base/engine.go` 694 | 695 | 内容:在该文件头部添加或规范化License信息 696 | 697 | ### Task 81 698 | 类别:添加或规范化License信息 699 | 700 | 位置:`pkg/ddc/base/log_test.go` 701 | 702 | 内容:在该文件头部添加或规范化License信息 703 | 704 | ### Task 82 705 | 类别:添加或规范化License信息 706 | 707 | 位置:`pkg/ddc/base/runtime.go` 708 | 709 | 内容:在该文件头部添加或规范化License信息 710 | 711 | ### Task 83 712 | 类别:添加或规范化License信息 713 | 714 | 位置:`pkg/ddc/base/setup.go` 715 | 716 | 内容:在该文件头部添加或规范化License信息 717 | 718 | ### Task 84 719 | 类别:添加或规范化License信息 720 | 721 | 位置:`pkg/ddc/base/label.go` 722 | 723 | 内容:在该文件头部添加或规范化License信息 724 | 725 | ### Task 85 726 | 类别:添加或规范化License信息 727 | 728 | 位置:`pkg/ddc/base/log.go` 729 | 730 | 内容:在该文件头部添加或规范化License信息 731 | 732 | ### Task 86 733 | 类别:添加或规范化License信息 734 | 735 | 位置:`pkg/ddc/base/pv.go` 736 | 737 | 内容:在该文件头部添加或规范化License信息 738 | 739 | ### Task 87 740 | 类别:添加或规范化License信息 741 | 742 | 位置:`pkg/ddc/base/interface.go` 743 | 744 | 内容:在该文件头部添加或规范化License信息 745 | 746 | ### Task 88 747 | 类别:添加或规范化License信息 748 | 749 | 位置:`pkg/ddc/base/volume.go` 750 | 751 | 内容:在该文件头部添加或规范化License信息 752 | 753 | ### Task 89 754 | 类别:添加或规范化License信息 755 | 756 | 位置:`pkg/ddc/base/template_engine_test.go` 757 | 758 | 内容:在该文件头部添加或规范化License信息 759 | 760 | ### Task 90 761 | 类别:添加或规范化License信息 762 | 763 | 位置:`pkg/ddc/base/mock/mock_engine.go` 764 | 765 | 内容:在该文件头部添加或规范化License信息 766 | 767 | ### Task 91 768 | 类别:添加或规范化License信息 769 | 770 | 位置:`pkg/ddc/jindo/master_test.go` 771 | 772 | 内容:在该文件头部添加或规范化License信息 773 | 774 | ### Task 92 775 | 类别:添加或规范化License信息 776 | 777 | 位置:`pkg/ddc/jindo/node.go` 778 | 779 | 内容:在该文件头部添加或规范化License信息 780 | 781 | ### Task 93 782 | 类别:添加或规范化License信息 783 | 784 | 位置:`pkg/ddc/jindo/worker.go` 785 | 786 | 内容:在该文件头部添加或规范化License信息 787 | 788 | ### Task 94 789 | 类别:添加或规范化License信息 790 | 791 | 位置:`pkg/ddc/jindo/status.go` 792 | 793 | 内容:在该文件头部添加或规范化License信息 794 | 795 | ### Task 95 796 | 类别:添加或规范化License信息 797 | 798 | 位置:`pkg/ddc/jindo/load_data.go` 799 | 800 | 内容:在该文件头部添加或规范化License信息 801 | 802 | ### Task 96 803 | 类别:添加或规范化License信息 804 | 805 | 位置:`pkg/ddc/jindo/worker_test.go` 806 | 807 | 内容:在该文件头部添加或规范化License信息 808 | 809 | ### Task 97 810 | 类别:添加或规范化License信息 811 | 812 | 位置:`pkg/ddc/jindo/deprecated_label_test.go` 813 | 814 | 内容:在该文件头部添加或规范化License信息 815 | 816 | ### Task 98 817 | 类别:添加或规范化License信息 818 | 819 | 位置:`pkg/ddc/jindo/master_internal_test.go` 820 | 821 | 内容:在该文件头部添加或规范化License信息 822 | 823 | ### Task 99 824 | 类别:添加或规范化License信息 825 | 826 | 位置:`pkg/ddc/jindo/label_test.go` 827 | 828 | 内容:在该文件头部添加或规范化License信息 829 | 830 | ### Task 100 831 | 类别:添加或规范化License信息 832 | 833 | 位置:`pkg/ddc/jindo/engine.go` 834 | 835 | 内容:在该文件头部添加或规范化License信息 836 | 837 | ### Task 101 838 | 类别:添加或规范化License信息 839 | 840 | 位置:`pkg/ddc/jindo/create_volume_test.go` 841 | 842 | 内容:在该文件头部添加或规范化License信息 843 | 844 | ### Task 102 845 | 类别:添加或规范化License信息 846 | 847 | 位置:`pkg/ddc/jindo/const.go` 848 | 849 | 内容:在该文件头部添加或规范化License信息 850 | 851 | ### Task 103 852 | 类别:添加或规范化License信息 853 | 854 | 位置:`pkg/ddc/jindo/utils_test.go` 855 | 856 | 内容:在该文件头部添加或规范化License信息 857 | 858 | ### Task 104 859 | 类别:添加或规范化License信息 860 | 861 | 位置:`pkg/ddc/jindo/dataset.go` 862 | 863 | 内容:在该文件头部添加或规范化License信息 864 | 865 | ### Task 105 866 | 类别:添加或规范化License信息 867 | 868 | 位置:`pkg/ddc/jindo/load_data_test.go` 869 | 870 | 内容:在该文件头部添加或规范化License信息 871 | 872 | ### Task 106 873 | 类别:添加或规范化License信息 874 | 875 | 位置:`pkg/ddc/jindo/transform.go` 876 | 877 | 内容:在该文件头部添加或规范化License信息 878 | 879 | ### Task 107 880 | 类别:添加或规范化License信息 881 | 882 | 位置:`pkg/ddc/jindo/transform_fuse_test.go` 883 | 884 | 内容:在该文件头部添加或规范化License信息 885 | 886 | ### Task 108 887 | 类别:添加或规范化License信息 888 | 889 | 位置:`pkg/ddc/jindo/transform_test.go` 890 | 891 | 内容:在该文件头部添加或规范化License信息 892 | 893 | ### Task 109 894 | 类别:添加或规范化License信息 895 | 896 | 位置:`pkg/ddc/jindo/transform_worker_test.go` 897 | 898 | 内容:在该文件头部添加或规范化License信息 899 | 900 | ### Task 110 901 | 类别:添加或规范化License信息 902 | 903 | 位置:`pkg/ddc/jindo/replicas_test.go` 904 | 905 | 内容:在该文件头部添加或规范化License信息 906 | 907 | ### Task 111 908 | 类别:添加或规范化License信息 909 | 910 | 位置:`pkg/ddc/jindo/create_volume.go` 911 | 912 | 内容:在该文件头部添加或规范化License信息 913 | 914 | ### Task 112 915 | 类别:添加或规范化License信息 916 | 917 | 位置:`pkg/ddc/jindo/cache.go` 918 | 919 | 内容:在该文件头部添加或规范化License信息 920 | 921 | ### Task 113 922 | 类别:添加或规范化License信息 923 | 924 | 位置:`pkg/ddc/jindo/dataset_test.go` 925 | 926 | 内容:在该文件头部添加或规范化License信息 927 | 928 | ### Task 114 929 | 类别:添加或规范化License信息 930 | 931 | 位置:`pkg/ddc/jindo/shutdown.go` 932 | 933 | 内容:在该文件头部添加或规范化License信息 934 | 935 | ### Task 115 936 | 类别:添加或规范化License信息 937 | 938 | 位置:`pkg/ddc/jindo/delete_volume.go` 939 | 940 | 内容:在该文件头部添加或规范化License信息 941 | 942 | ### Task 116 943 | 类别:添加或规范化License信息 944 | 945 | 位置:`pkg/ddc/jindo/ufs.go` 946 | 947 | 内容:在该文件头部添加或规范化License信息 948 | 949 | ### Task 117 950 | 类别:添加或规范化License信息 951 | 952 | 位置:`pkg/ddc/jindo/metadata.go` 953 | 954 | 内容:在该文件头部添加或规范化License信息 955 | 956 | ### Task 118 957 | 类别:添加或规范化License信息 958 | 959 | 位置:`pkg/ddc/jindo/port_parser.go` 960 | 961 | 内容:在该文件头部添加或规范化License信息 962 | 963 | ### Task 119 964 | 类别:添加或规范化License信息 965 | 966 | 位置:`pkg/ddc/jindo/master.go` 967 | 968 | 内容:在该文件头部添加或规范化License信息 969 | 970 | ### Task 120 971 | 类别:添加或规范化License信息 972 | 973 | 位置:`pkg/ddc/jindo/transform_hadoop_config.go` 974 | 975 | 内容:在该文件头部添加或规范化License信息 976 | 977 | ### Task 121 978 | 类别:添加或规范化License信息 979 | 980 | 位置:`pkg/ddc/jindo/label.go` 981 | 982 | 内容:在该文件头部添加或规范化License信息 983 | 984 | ### Task 122 985 | 类别:添加或规范化License信息 986 | 987 | 位置:`pkg/ddc/jindo/master_internal.go` 988 | 989 | 内容:在该文件头部添加或规范化License信息 990 | 991 | ### Task 123 992 | 类别:添加或规范化License信息 993 | 994 | 位置:`pkg/ddc/jindo/types.go` 995 | 996 | 内容:在该文件头部添加或规范化License信息 997 | 998 | ### Task 124 999 | 类别:添加或规范化License信息 1000 | 1001 | 位置:`pkg/ddc/jindo/transform_master_test.go` 1002 | 1003 | 内容:在该文件头部添加或规范化License信息 1004 | 1005 | ### Task 125 1006 | 类别:添加或规范化License信息 1007 | 1008 | 位置:`pkg/ddc/jindo/runtime_info.go` 1009 | 1010 | 内容:在该文件头部添加或规范化License信息 1011 | 1012 | ### Task 126 1013 | 类别:添加或规范化License信息 1014 | 1015 | 位置:`pkg/ddc/jindo/node_test.go` 1016 | 1017 | 内容:在该文件头部添加或规范化License信息 1018 | 1019 | ### Task 127 1020 | 类别:添加或规范化License信息 1021 | 1022 | 位置:`pkg/ddc/jindo/health_check_test.go` 1023 | 1024 | 内容:在该文件头部添加或规范化License信息 1025 | 1026 | ### Task 128 1027 | 类别:添加或规范化License信息 1028 | 1029 | 位置:`pkg/ddc/jindo/utils.go` 1030 | 1031 | 内容:在该文件头部添加或规范化License信息 1032 | 1033 | ### Task 129 1034 | 类别:添加或规范化License信息 1035 | 1036 | 位置:`pkg/ddc/jindo/deprecated_label.go` 1037 | 1038 | 内容:在该文件头部添加或规范化License信息 1039 | 1040 | ### Task 130 1041 | 类别:添加或规范化License信息 1042 | 1043 | 位置:`pkg/ddc/jindo/cache_test.go` 1044 | 1045 | 内容:在该文件头部添加或规范化License信息 1046 | 1047 | ### Task 131 1048 | 类别:添加或规范化License信息 1049 | 1050 | 位置:`pkg/ddc/jindo/shutdown_test.go` 1051 | 1052 | 内容:在该文件头部添加或规范化License信息 1053 | 1054 | ### Task 132 1055 | 类别:添加或规范化License信息 1056 | 1057 | 位置:`pkg/ddc/jindo/replicas.go` 1058 | 1059 | 内容:在该文件头部添加或规范化License信息 1060 | 1061 | ### Task 133 1062 | 类别:添加或规范化License信息 1063 | 1064 | 位置:`pkg/ddc/jindo/port_parser_test.go` 1065 | 1066 | 内容:在该文件头部添加或规范化License信息 1067 | 1068 | ### Task 134 1069 | 类别:添加或规范化License信息 1070 | 1071 | 位置:`pkg/ddc/jindo/metadata_test.go` 1072 | 1073 | 内容:在该文件头部添加或规范化License信息 1074 | 1075 | ### Task 135 1076 | 类别:添加或规范化License信息 1077 | 1078 | 位置:`pkg/ddc/jindo/health_check.go` 1079 | 1080 | 内容:在该文件头部添加或规范化License信息 1081 | 1082 | ### Task 136 1083 | 类别:添加或规范化License信息 1084 | 1085 | 位置:`pkg/ddc/jindo/delete_volume_test.go` 1086 | 1087 | 内容:在该文件头部添加或规范化License信息 1088 | 1089 | ### Task 137 1090 | 类别:添加或规范化License信息 1091 | 1092 | 位置:`pkg/ddc/jindo/operations/base.go` 1093 | 1094 | 内容:在该文件头部添加或规范化License信息 1095 | 1096 | ### Task 138 1097 | 类别:添加或规范化License信息 1098 | 1099 | 位置:`pkg/ddc/jindo/operations/cached.go` 1100 | 1101 | 内容:在该文件头部添加或规范化License信息 1102 | 1103 | ### Task 139 1104 | 类别:添加或规范化License信息 1105 | 1106 | 位置:`pkg/ddc/alluxio/node.go` 1107 | 1108 | 内容:在该文件头部添加或规范化License信息 1109 | 1110 | ### Task 140 1111 | 类别:添加或规范化License信息 1112 | 1113 | 位置:`pkg/ddc/alluxio/types_test.go` 1114 | 1115 | 内容:在该文件头部添加或规范化License信息 1116 | 1117 | ### Task 141 1118 | 类别:添加或规范化License信息 1119 | 1120 | 位置:`pkg/ddc/alluxio/worker.go` 1121 | 1122 | 内容:在该文件头部添加或规范化License信息 1123 | 1124 | ### Task 142 1125 | 类别:添加或规范化License信息 1126 | 1127 | 位置:`pkg/ddc/alluxio/status.go` 1128 | 1129 | 内容:在该文件头部添加或规范化License信息 1130 | 1131 | ### Task 143 1132 | 类别:添加或规范化License信息 1133 | 1134 | 位置:`pkg/ddc/alluxio/load_data.go` 1135 | 1136 | 内容:在该文件头部添加或规范化License信息 1137 | 1138 | ### Task 144 1139 | 类别:添加或规范化License信息 1140 | 1141 | 位置:`pkg/ddc/alluxio/worker_test.go` 1142 | 1143 | 内容:在该文件头部添加或规范化License信息 1144 | 1145 | ### Task 145 1146 | 类别:添加或规范化License信息 1147 | 1148 | 位置:`pkg/ddc/alluxio/deprecated_label_test.go` 1149 | 1150 | 内容:在该文件头部添加或规范化License信息 1151 | 1152 | ### Task 146 1153 | 类别:添加或规范化License信息 1154 | 1155 | 位置:`pkg/ddc/alluxio/master_internal_test.go` 1156 | 1157 | 内容:在该文件头部添加或规范化License信息 1158 | 1159 | ### Task 147 1160 | 类别:添加或规范化License信息 1161 | 1162 | 位置:`pkg/ddc/alluxio/transform_ufs.go` 1163 | 1164 | 内容:在该文件头部添加或规范化License信息 1165 | 1166 | ### Task 148 1167 | 类别:添加或规范化License信息 1168 | 1169 | 位置:`pkg/ddc/alluxio/transform_permission.go` 1170 | 1171 | 内容:在该文件头部添加或规范化License信息 1172 | 1173 | ### Task 149 1174 | 类别:添加或规范化License信息 1175 | 1176 | 位置:`pkg/ddc/alluxio/engine.go` 1177 | 1178 | 内容:在该文件头部添加或规范化License信息 1179 | 1180 | ### Task 150 1181 | 类别:添加或规范化License信息 1182 | 1183 | 位置:`pkg/ddc/alluxio/runtime_info_test.go` 1184 | 1185 | 内容:在该文件头部添加或规范化License信息 1186 | 1187 | ### Task 151 1188 | 类别:添加或规范化License信息 1189 | 1190 | 位置:`pkg/ddc/alluxio/ufs_internal.go` 1191 | 1192 | 内容:在该文件头部添加或规范化License信息 1193 | 1194 | ### Task 152 1195 | 类别:添加或规范化License信息 1196 | 1197 | 位置:`pkg/ddc/alluxio/transform_init_users_test.go` 1198 | 1199 | 内容:在该文件头部添加或规范化License信息 1200 | 1201 | ### Task 153 1202 | 类别:添加或规范化License信息 1203 | 1204 | 位置:`pkg/ddc/alluxio/const.go` 1205 | 1206 | 内容:在该文件头部添加或规范化License信息 1207 | 1208 | ### Task 154 1209 | 类别:添加或规范化License信息 1210 | 1211 | 位置:`pkg/ddc/alluxio/utils_test.go` 1212 | 1213 | 内容:在该文件头部添加或规范化License信息 1214 | 1215 | ### Task 155 1216 | 类别:添加或规范化License信息 1217 | 1218 | 位置:`pkg/ddc/alluxio/dataset.go` 1219 | 1220 | 内容:在该文件头部添加或规范化License信息 1221 | 1222 | ### Task 156 1223 | 类别:添加或规范化License信息 1224 | 1225 | 位置:`pkg/ddc/alluxio/ufs_test.go` 1226 | 1227 | 内容:在该文件头部添加或规范化License信息 1228 | 1229 | ### Task 157 1230 | 类别:添加或规范化License信息 1231 | 1232 | 位置:`pkg/ddc/alluxio/transform.go` 1233 | 1234 | 内容:在该文件头部添加或规范化License信息 1235 | 1236 | ### Task 158 1237 | 类别:添加或规范化License信息 1238 | 1239 | 位置:`pkg/ddc/alluxio/hcfs.go` 1240 | 1241 | 内容:在该文件头部添加或规范化License信息 1242 | 1243 | ### Task 159 1244 | 类别:添加或规范化License信息 1245 | 1246 | 位置:`pkg/ddc/alluxio/transform_fuse_test.go` 1247 | 1248 | 内容:在该文件头部添加或规范化License信息 1249 | 1250 | ### Task 160 1251 | 类别:添加或规范化License信息 1252 | 1253 | 位置:`pkg/ddc/alluxio/types_selector.go` 1254 | 1255 | 内容:在该文件头部添加或规范化License信息 1256 | 1257 | 1258 | 2470 | --------------------------------------------------------------------------------