Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite758949

Browse files
Spelling mistakes
1 parentba540b8 commite758949

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

‎_docs/ci-cd-guides/preview-environments.md‎

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ caption="Dynamic Test environments"
1919
max-width="90%"
2020
%}
2121

22-
This way each developer is working in isolation and can test their feature on its own. This pattern comes in contrast withthe traditional way of reusing static preexisting environments.
22+
This way each developer is working in isolation and can test their feature on its own. This pattern comes in contrast with the traditional way of reusing static preexisting environments.
2323

2424
{% include image.html
2525
lightbox="true"
@@ -49,7 +49,7 @@ The two major approaches here are with host-based URLs or path based URLs.
4949
* with path based URLs, the test environments are named`example.com/pr1` ,`example.com/pr2` and so on
5050

5151
Both approaches have advantages and disadvantages. Path based URLs are easier to setup but may not work with all applications (since they change the web context). Host based URLs are more robust but need extra
52-
DNS configuration for the full effect
52+
DNS configuration for the full effect.
5353

5454
In Kubernetes clusters, both ways can be setup via[an Ingress](https://kubernetes.io/docs/concepts/services-networking/ingress/).
5555

@@ -63,7 +63,7 @@ The application we will use can be found at [https://github.com/codefresh-contri
6363

6464
We are using[the Ambassador gateway](https://www.getambassador.io/) as an ingress for this example, but you can use any other compliant Kubernetes Ingress.
6565

66-
Here is[ingress manifest](https://github.com/codefresh-contrib/unlimited-test-environments-manifests/blob/main/simple-java-app/templates/ingress.yaml)
66+
Here isthe[ingress manifest](https://github.com/codefresh-contrib/unlimited-test-environments-manifests/blob/main/simple-java-app/templates/ingress.yaml)
6767

6868
{% highlight yaml %}
6969
{% raw %}
@@ -96,7 +96,7 @@ Each time a Pull Request is created we want to perform the following tasks:
9696
1. Create a namespace with the same name as the pull request branch. Deploy the pull Request and expose it as a URL
9797
that has the same name as the branch as well
9898

99-
Here is an example pipeline that does all these tasks
99+
Here is an example pipeline that does all these tasks:
100100

101101
{% include image.html
102102
lightbox="true"
@@ -247,7 +247,7 @@ caption="Temporary environment"
247247
max-width="100%"
248248
%}
249249

250-
The environment is also mentioned as a comment in the Pull Request UI inGituhub:
250+
The environment is also mentioned as a comment in the Pull Request UI inGithub:
251251

252252
{% include image.html
253253
lightbox="true"
@@ -259,7 +259,7 @@ max-width="100%"
259259
%}
260260

261261
As explained it the[previous guide for Pull Requests]({{site.baseurl}}/docs/ci-cd-guides/pull-request-branches/), we want to make this pipeline applicable only
262-
to PR open event and PR sync events (whichcaptures commits that happen on an existing pull request).
262+
to PR open event and PR sync events (whichcapture commits that happen on an existing pull request).
263263

264264
{% include image.html
265265
lightbox="true"
@@ -275,11 +275,9 @@ Therefore you need to setup your [triggers]({{site.baseurl}}/docs/configure-ci-c
275275
##Cleaning up temporary environments
276276

277277
Creating temporary environments is very convenient for developers but can be very costly for your infrastructure if you use a cloud
278-
provider for your cluster. For cost reasons and better resource utilization it is best if temporary environments are destroyed if they are
279-
no longer used.
278+
provider for your cluster. For cost reasons and better resource utilization it is best if temporary environments are destroyed if they are no longer used.
280279

281-
While you can run a batch job, that automatically deletes old temporary environments, the optimal approach is to delete them as soon as
282-
the respective Pull Request is closed.
280+
While you can run a batch job, that automatically deletes old temporary environments, the optimal approach is to delete them as soon as the respective Pull Request is closed.
283281

284282
We can do that with a very simple pipeline that has only one step:
285283

@@ -313,9 +311,9 @@ steps:
313311
{% endraw %}
314312
{% endhighlight %}
315313

316-
The pipeline justuninstall the Helm release for that namespace and then deletes the namespace itself.
314+
The pipeline justuninstalls the Helm release for that namespace and then deletes the namespace itself.
317315

318-
To have this pipeline run only when a Pull Request is closed here is how your[trigger]({{site.baseurl}}/docs/configure-ci-cd-pipeline/triggers/git-triggers/)should look:
316+
To have this pipeline run only when a Pull Request is closed here is how your[trigger]({{site.baseurl}}/docs/configure-ci-cd-pipeline/triggers/git-triggers/) should look:
319317

320318
{% include image.html
321319
lightbox="true"
@@ -326,7 +324,7 @@ caption="Git events for a Pull Request close pipeline"
326324
max-width="100%"
327325
%}
328326

329-
Notice that with this setupthat pipeline will run when the pull request was closed regardless ofwether it was merged or not (which is exactly what you want as in both cases the test environment is not needed anymore).
327+
Notice that with this setupthe pipeline will run when the pull request was closed regardless ofwhether it was merged or not (which is exactly what you want as in both cases the test environment is not needed anymore).
330328

331329

332330

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp