You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can generate the Helm chart for the CRD by running the following command: `./make.sh ${CHART_VERSION} ${CONTROLLER_IMAGE_REPO} ${CONTROLLER_IMAGE_TAG}`.
Running the script as `./make.sh ${CHART_VERSION} ${CONTROLLER_IMAGE_REPO} ${CONTROLLER_IMAGE_TAG} ${DESTINATION}` will generate the file `${DESTINATION}/k8s-job-wrapper-${CHART_VERSION}.tgz`.
15
+
16
+
If you omit the `DESTINATION` argument, the file will be generated in the current directory.
You can generate the documentation for the CRD with the following command: `./make.sh ${DEST_DIR} ${K8S_VERSION}`
4
4
5
-
## 仕組み
5
+
## How it works
6
6
7
-
[crd-ref-docs](https://github.com/elastic/crd-ref-docs) を使って [CRDのスキーマ](../../api/v1) から [markdown](docs.md) を生成し [pandoc](https://github.com/jgm/pandoc) を使って html に変換します.
7
+
This process uses [crd-ref-docs](https://github.com/elastic/crd-ref-docs) to generate a [Markdown file](./docs.md) from the [CRD schema](../../api/v1).
8
+
The Markdown is then converted to HTML using [pandoc](https://github.com/jgm/pandoc).
8
9
9
-
スタイルは公開されている CSS をベースに [カスタマイズ](docs.css)しています
10
+
The visual style is based on a publicly available CSS that has been [customized](./docs.css)for this project.
The resources located in [examples/results](./examples/results) are generated by the controller from the contents of `config/samples`. These example manifests must be updated manually.
19
19
20
-
```shell
21
-
# PWD=プロジェクトのルート
22
-
./kind.sh
20
+
To do this, run the following commands from the project's root directory:
21
+
22
+
```shell
23
+
# PWD=project_root
24
+
make deploy-local
23
25
make sample
24
26
```
25
27
26
-
こうしてから `kubectl get job 作られたJOBの名前 -o yaml` などとして取得したものを [examples/results](examples/results) にコミットします
28
+
After the sample resources are created, retrieve the YAML for the generated resource using `kubectl`.
29
+
Then, commit the resulting YAML file to the [examples/results](./examples/results) directory.
30
+
31
+
For example: `kubectl get job <GENERATED_JOB_NAME> -o yaml`
This is a custom resource for efficiently generating multiple similar [Job](https://kubernetes.io/docs/concepts/workloads/controllers/job/)and[CronJob](https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/)manifests in the form of a common part and a set of differences.
4
4
5
-
-[CRD PodProfile](#podprofile)は Pod の Spec を共通部分として定義できます.
-The [PodProfile CRD](#podprofile)allows you to define a Pod's spec as the common part.
6
+
-The [Job CRD](#job)can generate a [Job](https://kubernetes.io/docs/concepts/workloads/controllers/job/). It includes parameters for the Job and a patch for the [PodProfile CRD](#podprofile).
7
+
-The [CronJob CRD](#cronjob)can generate a [CronJob](https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/). It includes parameters for the CronJob and a patch for the [PodProfile CRD](#podprofile).
8
8
9
9
## Examples
10
10
### Example of CronJob
@@ -625,9 +625,9 @@ _Appears in:_
625
625
626
626
<script>
627
627
//
628
-
// Examples 内部のコードブロックの中の特定の語句を強調する
628
+
// Highlights specific terms within code blocks inside "Examples"
This is a custom resource for efficiently generating multiple similar [Job](https://kubernetes.io/docs/concepts/workloads/controllers/job/) and [CronJob](https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/) manifests in the form of a common part and a set of differences.
59
59
60
-
- [CRD PodProfile](#podprofile) は Pod の Spec を共通部分として定義できます.
- The [PodProfile CRD](#podprofile) allows you to define a Pod's spec as the common part.
61
+
- The [Job CRD](#job) can generate a [Job](https://kubernetes.io/docs/concepts/workloads/controllers/job/). It includes parameters for the Job and a patch for the [PodProfile CRD](#podprofile).
62
+
- The [CronJob CRD](#cronjob) can generate a [CronJob](https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/). It includes parameters for the CronJob and a patch for the [PodProfile CRD](#podprofile).
63
63
EOS
64
-
#改行しないとexamplesの見出しが消える
64
+
#without a line break, the "examples" heading disappears
0 commit comments