|
2 | 2 | :imagesdir: ../../images
|
3 | 3 |
|
4 | 4 | [id="med-understanding-the-makefile-troubleshooting"]
|
5 |
| -=== Understanding the Makefile |
| 5 | += Understanding the Makefile |
6 | 6 |
|
7 |
| -The Makefile is the entrypoint for the pattern. We use the Makefile to bootstrap the pattern to the cluster. After the initial bootstrapping of the pattern, the Makefile isn't required for ongoing operations but can often be useful when needing to make a change to a config within the pattern by running a `make upgrade` which allows us to refresh the bootstrap resources without having to tear down the pattern or cluster. |
| 7 | +The Makefile is the entrypoint for the pattern. We use the Makefile to bootstrap the pattern to the cluster. After the initial bootstrapping of the pattern, the Makefile isn't required for ongoing operations but can often be useful when you need to make a change to a config within the pattern. Run the `make upgrade` command to refresh the bootstrap resources without having to tear down the pattern or cluster. |
8 | 8 |
|
9 | 9 | [id="about-make-install-make-deploy-command"]
|
10 |
| -==== About the make install and make deploy commands |
| 10 | +== About the make install and make deploy commands |
11 | 11 |
|
12 |
| -Running `make install` within the pattern application triggers a `make deploy` from `<pattern_directory>/common` directory. This initializes the `common` components of the pattern framework and install a helm chart in the `default` namespace. At this point, cluster services, such as {rh-rhacm-first} and {rh-gitops} are deployed. |
| 12 | +Running `make install` within the pattern application triggers a `make deploy` from `<pattern_directory>/common` directory. This initializes the `common` components of the pattern framework and installs a Helm chart in the `default` namespace. At this point, cluster services, such as {rh-rhacm-first} and {rh-gitops} are deployed. |
13 | 13 |
|
14 |
| -After components from the `common` directory are installed, the remaining tasks within the `make install` target run. |
| 14 | +After you have installed the components from the `common` directory, the pattern runs the remaining tasks within the `make install` target. |
15 | 15 | //AI: Check which are these other tasks
|
16 | 16 |
|
17 | 17 | [id="about-make-vault-init-make-load-secrets-commands"]
|
18 |
| -==== About the make vault-init and make load-secrets commands |
| 18 | +== About the make vault-init and make load-secrets commands |
19 | 19 |
|
20 | 20 | The {med-pattern} is integrated with {hashicorp-vault} and {eso-op} services for secrets management within the cluster. These targets install vault from a {helm-chart} and load the secret `(values-secret.yaml)` that you created during link:../med-getting-started/#preparing-for-deployment[Getting Started].
|
21 | 21 |
|
22 |
| -If `values-secret.yaml` does not exist, make will exit with an error saying so. Furthermore, if the `values-secret.yaml` file does exist but is improperly formatted, {rh-ansible} exits with an error about being improperly formatted. To verify the format of the secret, see link:../med-getting-started/#preparing-for-deployment[Getting Started]. |
| 22 | +If `values-secret.yaml` does not exist, `make` will exit with an error saying so. Furthermore, if the `values-secret.yaml` file does exist but is improperly formatted, {rh-ansible} exits with an error about being improperly formatted. To verify the format of the secret, see link:../med-getting-started/#preparing-for-deployment[Getting Started]. |
23 | 23 |
|
24 | 24 | [id="about-make-bootstrap-make-upgrade-commands"]
|
25 |
| -==== About the make bootstrap and make upgrade commands |
| 25 | +== About the make bootstrap and make upgrade commands |
26 | 26 | The `make bootstrap` command is the target used for deploying the application specific components of the pattern. It is the final step in the initial `make install` target. You might want to consider running the `make upgrade` command instead of the `make bootstrap` command directly.
|
27 | 27 |
|
28 |
| -Generally, running the `make upgrade` command is required when you encounter errors with the application pattern deployment. For instance, if a value was missed and the chart was not rendered correctly, executing `make upgrade` command after fixing the value would be necessary. |
| 28 | +Generally, running the `make upgrade` command is required when you encounter errors with the application pattern deployment. For example, if you miss a value and the chart does not rendered correctly, you must execute the run the `make upgrade` command after fixing the value. |
29 | 29 |
|
30 |
| -You might want to review the `Makefile` for the `common` and `Medical Diagnosis` components, which are located in `common/Makefile` and `./Makefile` respectively. |
| 30 | +Review the `Makefile` for the `common` and `Medical Diagnosis` components, which are located in `common/Makefile` and `./Makefile` respectively. |
31 | 31 |
|
0 commit comments