Commit 7fa6687
CLOUDP-318518: Community private-preview docs (#102)
# Summary
This PR provides testable code snippets for deploying MongoDBCommunity
with MongoDBSearch.
Code snippets are created in the same way as the reference architecture
ones, but located under docs/community/quick-start. The difference is
that the article and snippets are assuming existence of the k8s cluster
and for e2e tests kind cluster is used as in other e2e tests.
**Important for code review**: for now, this PR contains two commits
that are to be included in search-main branch separately, but are
necessary for this work to pass the tests. To review, please view only
commits excluding two first commits ("Temporary private quay search
image", "Handle pull secret for community search private preview"):
[link to
diff](775908a)
## File structure
- `docs/community/quick-start` - main community search snippets
directory, intended for end-users to look into:
With the following files:
- `code_snippets/` - shell scripts
- `output/` - outputs gathered from e2e test run
- `env_variables.sh` - env variables intended for end-users to adjust
- `env_variables_e2e_private.sh` - env variables adjusted for a
"e2e_private" flavor (running in e2e test so with additional helm chart
variables for specifying images built in pipeline).
- `test.sh` - automated execution entry point defining all the steps
- `README.md` - rendered, final docs article intended for end-user
consumption. It will be immediately rendered on page upon entering
`docs/community/quick-start` folder in GH UI.
- `README.md.j2` - the source of the docs article, with jinja's include
directives to include snippets in markdown's code blocks. It is not
possible to include files directly in markdown files.
-
`scripts/code_snippets/kind_community_search_snippets_render_template.sh`
- render `README.md.j2` into `README.md`
- `scripts/code_snippets/task_kind_community_search_snippets_test.sh` -
entrypoint for running in e2e test. It's using `CODE_SNIPPETS_FLAVOR`
env var (defined in the context file) for choosing the flavor (sourcing
`env_variables${CODE_SNIPPETS_FLAVOR}.sh` file)
Code snippets are hooked into PR tests under
`private_kind_code_snippets` variant. "Public" variant will be added as
a followup. Snippets in e2e tests are executed by
## General changes to snippets and reference architectures
Additionally, some changes were made to GKE code snipets for Reference
Architectures:
* all e2e entrypoint scripts were renamed with a prefix `test_`, to
quickly identify which of those scripts are really entrypoints:
* task_gke_multi_cluster_no_mesh_snippets_test.sh
* task_gke_multi_cluster_snippets_test.sh
* task_kind_community_search_snippets_test.sh
* All snippets tasks in evergreen uses one `test_code_snippets`
evergreen function, that is executing entrypoint by naming convention
`./scripts/code_snippets/${task_name}_test.sh`.
* **Note:** using `CODE_SNIPPETS_FLAVOR` env var and defining flavor's
env vars directly in the snippets directory
(`env_variables${CODE_SNIPPETS_FLAVOR}.sh) makes a different mechanism
than what we have in reference architectures. We should decide which
mechanism is a better one and unify.
The documentation article is provided
[README.md](docs/community/quick-start/README.md) and is rendered from
the README.md.j2
## Proof of Work
* Green code snippets e2e tests (including GKE-based reference
architectures):
[link](https://spruce.mongodb.com/version/68210e1e8f1de0000798909a/tasks?sorts=STATUS%3AASC%3BBASE_STATUS%3ADESC)
* Rendered markdown file, visible when entering the folder in UI:
[link](https://github.com/mongodb/mongodb-kubernetes/tree/lsierant/search-docs/docs/community-search/quick-start)
## Checklist
- [x] Have you linked a jira ticket and/or is the ticket in the title?
- [x] Have you checked whether your jira ticket required DOCSP changes?
- [x] Have you checked for release_note changes?
---------
Co-authored-by: Yavor Georgiev <[email protected]>
Co-authored-by: Simon Bäumer <[email protected]>1 parent ba0ddb1 commit 7fa6687
File tree
46 files changed
+1782
-24
lines changed- docs/community-search/quick-start
- code_snippets
- output
- scripts
- code_snippets
- dev/contexts
- evergreen/e2e
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
46 files changed
+1782
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
336 | 344 | | |
337 | 345 | | |
338 | 346 | | |
| |||
733 | 741 | | |
734 | 742 | | |
735 | 743 | | |
| 744 | + | |
736 | 745 | | |
737 | 746 | | |
738 | 747 | | |
739 | | - | |
740 | | - | |
741 | | - | |
742 | | - | |
743 | | - | |
744 | | - | |
745 | | - | |
746 | | - | |
747 | | - | |
748 | | - | |
749 | | - | |
750 | | - | |
751 | | - | |
752 | | - | |
753 | | - | |
754 | | - | |
| 748 | + | |
| 749 | + | |
755 | 750 | | |
756 | 751 | | |
757 | 752 | | |
| |||
763 | 758 | | |
764 | 759 | | |
765 | 760 | | |
766 | | - | |
| 761 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
74 | 76 | | |
75 | 77 | | |
76 | | - | |
| 78 | + | |
77 | 79 | | |
78 | 80 | | |
79 | | - | |
| 81 | + | |
80 | 82 | | |
81 | 83 | | |
82 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
83 | 91 | | |
84 | 92 | | |
85 | 93 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
| |||
95 | 96 | | |
96 | 97 | | |
97 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
98 | 111 | | |
99 | 112 | | |
100 | 113 | | |
| |||
183 | 196 | | |
184 | 197 | | |
185 | 198 | | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
186 | 203 | | |
187 | 204 | | |
188 | 205 | | |
| |||
608 | 625 | | |
609 | 626 | | |
610 | 627 | | |
611 | | - | |
612 | | - | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
613 | 636 | | |
614 | 637 | | |
615 | 638 | | |
| |||
1837 | 1860 | | |
1838 | 1861 | | |
1839 | 1862 | | |
| 1863 | + | |
| 1864 | + | |
| 1865 | + | |
| 1866 | + | |
| 1867 | + | |
| 1868 | + | |
| 1869 | + | |
| 1870 | + | |
| 1871 | + | |
1840 | 1872 | | |
1841 | 1873 | | |
1842 | 1874 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
0 commit comments