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

Commitd714e2a

Browse files
2 parents7e62afe +ee06d4a commitd714e2a

File tree

13 files changed

+79
-29
lines changed

13 files changed

+79
-29
lines changed

‎_data/nav.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@
148148
url:"/advanced-workflows"
149149
-title:"Deployment environments"
150150
url:"/deployment-environments"
151-
-title:"ExpressionCondition Syntax"
152-
url:"/expression-condition-syntax"
151+
-title:"Condition Expression Syntax"
152+
url:"/condition-expression-syntax"
153153
-title:"Annotations"
154154
url:"/annotations"
155155

‎_docs/codefresh-yaml/advanced-workflows.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,7 @@ In this case Codefresh will make sure that cleanup happens only when both unit a
804804

805805
For maximum flexibility you can define a custom conditional for a step.
806806

807-
It is hard to describe all possible cases, because Codefresh support a[mini DSL]({{site.baseurl}}/docs/codefresh-yaml/expression-condition-syntax/) for conditions. All examples mentioned in[conditional execution]({{site.baseurl}}/docs/codefresh-yaml/conditional-execution-of-steps/) are still valid in parallel pipelines.
807+
It is hard to describe all possible cases, because Codefresh support a[mini DSL]({{site.baseurl}}/docs/codefresh-yaml/condition-expression-syntax/) for conditions. All examples mentioned in[conditional execution]({{site.baseurl}}/docs/codefresh-yaml/conditional-execution-of-steps/) are still valid in parallel pipelines.
808808

809809
For example, run this step only if a PR is opened against the production branch:
810810

@@ -962,7 +962,7 @@ Notice that both examples assume that `fail_fast: false` is at the root of the `
962962

963963
*[Codefresh Conditionals]({{site.baseurl}}/docs/codefresh-yaml/conditional-execution-of-steps/)
964964
*[Variables]({{site.baseurl}}/docs/codefresh-yaml/variables/)
965-
*[Expression Syntax]({{site.baseurl}}/docs/codefresh-yaml/expression-condition-syntax/)
965+
*[Expression Syntax]({{site.baseurl}}/docs/codefresh-yaml/condition-expression-syntax/)
966966

967967

968968

‎_docs/codefresh-yaml/annotations.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ Click *Save* to apply your changes.
159159

160160
##Complex annotation values
161161

162-
Apart from scalar values, you can also store more complex expressions in annotations. You have access to all[Codefresh variables]({{site.baseurl}}/docs/codefresh-yaml/variables/), text files from the build and even evaluations from the[expression syntax]({{site.baseurl}}/docs/codefresh-yaml/expression-condition-syntax/)
162+
Apart from scalar values, you can also store more complex expressions in annotations. You have access to all[Codefresh variables]({{site.baseurl}}/docs/codefresh-yaml/variables/), text files from the build and even evaluations from the[expression syntax]({{site.baseurl}}/docs/codefresh-yaml/condition-expression-syntax/)
163163

164164
`codefresh.yml`
165165
{% highlight yaml %}

‎_docs/codefresh-yaml/expression-condition-syntax.md‎renamed to ‎_docs/codefresh-yaml/condition-expression-syntax.md‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
---
2-
title:"ExpressionCondition Syntax"
3-
description:"Expression conditions can be included in each step in your codefresh.yml, and must be satisfied for the step to execute."
2+
title:"Condition Expression Syntax"
3+
description:"Condition expressions can be included in each step in your codefresh.yml, and must be satisfied for the step to execute."
44
group:codefresh-yaml
55
redirect_from:
6-
-/docs/expression-condition-syntax/
6+
-/docs/condition-expression-syntax/
7+
-/docs/codefresh-yaml/expression-condition-syntax/
78
toc:true
89
---
9-
Each step in`codefresh.yml` file can containexpressionconditions that must be satisfied for the step to execute.
10+
Each step in`codefresh.yml` file can contain conditions expressions that must be satisfied for the step to execute.
1011

11-
This is a small example of whereanexpressioncondition can be used:
12+
This is a small example of wherea conditionexpression can be used:
1213
`YAML`
1314
{% highlight yaml %}
1415
step-name:
@@ -23,7 +24,7 @@ step-name:
2324
executeForMasterBranch: "{% raw %}'${{CF_BRANCH}}{% endraw %}' == 'master'"
2425
{% endhighlight %}
2526

26-
Aexpressioncondition is a basic expression that is evaluated to true/false (to decide whether to execute or not to execute), and can have the following syntax:
27+
A condition expression is a basic expression that is evaluated to true/false (to decide whether to execute or not to execute), and can have the following syntax:
2728

2829
###Types
2930

‎_docs/codefresh-yaml/conditional-execution-of-steps.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ build-step:
6565
The[JavaScript regular expressions](https://developer.mozilla.org/en/docs/Web/JavaScript/Guide/Regular_Expressions) flavour is the one used in branch conditions.
6666
{{site.data.callout.end}}
6767

68-
##Expression Conditions
69-
Alternatively, you can use more advancedexpression conditions.
68+
##Condition expressions
69+
Alternatively, you can use more advancedcondition expressions.
7070

71-
This follows the standard[expressioncondition syntax]({{site.baseurl}}/docs/codefresh-yaml/expression-condition-syntax/). In this case, you can choose to execute if```all``` expression conditions evaluate to```true```, or to execute if```any``` expression conditions evaluate to```true```.
71+
This follows the standard[conditionexpression syntax]({{site.baseurl}}/docs/codefresh-yaml/condition-expression-syntax/). In this case, you can choose to execute if```all``` expression conditions evaluate to```true```, or to execute if```any``` expression conditions evaluate to```true```.
7272

7373
Here are some examples. Execute if the string```[skip ci]``` is not part of the main repository commit message AND if the branch is```master```
7474

‎_docs/codefresh-yaml/post-step-operations.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ See also [advanced workflows]({{site.baseurl}}/docs/codefresh-yaml/advanced-work
108108
##What to read next
109109

110110
*[Conditional Execution of Steps]({{site.baseurl}}/docs/codefresh-yaml/conditional-execution-of-steps/)
111-
*[ExpressionCondition Syntax]({{site.baseurl}}/docs/codefresh-yaml/expression-condition-syntax/)
111+
*[ConditionExpressionSyntax]({{site.baseurl}}/docs/codefresh-yaml/condition-expression-syntax/)
112112
*[Working Directories]({{site.baseurl}}/docs/codefresh-yaml/working-directories/)
113113
*[Annotations]({{site.baseurl}}/docs/codefresh-yaml/annotations/)
114114

‎_docs/codefresh-yaml/variables.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,4 +264,4 @@ This will safely escape `;` and `=`.
264264

265265
*[Pipeline steps]({{site.baseurl}}/docs/codefresh-yaml/steps/)
266266
*[Codefresh Conditionals]({{site.baseurl}}/docs/codefresh-yaml/conditional-execution-of-steps/)
267-
*[Expression Syntax]({{site.baseurl}}/docs/codefresh-yaml/expression-condition-syntax/)
267+
*[Expression Syntax]({{site.baseurl}}/docs/codefresh-yaml/condition-expression-syntax/)

‎_docs/deploy-to-kubernetes/add-kubernetes-cluster.md‎

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -244,17 +244,11 @@ The integration between Codefresh and your Kubernetes cluster is API based and r
244244

245245
The configurations you'll be required to add are:
246246

247-
{:start="1"}
248-
1. Name - Any name of your choosing, that will represent your cluster context in Codefresh. Do not use spaces, dots or other strange characters in the name.
249-
250-
{:start="2"}
251-
2. Host - The full URL of the Kubernetes API endpoints including protocol and port.
252247

253-
{:start="3"}
254-
3. Certificate - The Kubernetes service account certificate used for the integration with Codefresh (base64 encoded).
255-
256-
{:start="4"}
257-
4. Token - The Kubernetes service account token used for the integration with Codefresh (base64 encoded).
248+
1. Name - Any name of your choosing, that will represent your cluster context in Codefresh. Do not use spaces, dots or other strange characters in the name.
249+
1. Host - The full URL of the Kubernetes API endpoints including protocol and port.
250+
1. Certificate - The Kubernetes service account certificate used for the integration with Codefresh (base64 encoded).
251+
1. Token - The Kubernetes service account token used for the integration with Codefresh (base64 encoded).
258252

259253
{% include image.html
260254
lightbox="true"

‎_docs/docker-registries/metadata-annotations.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Metadata values may be of the following types:
3232
| Percentage bar| use 0-100 value ending with %| 85%|
3333
| Link| use url| {% raw %}`${{CF_COMMIT_URL}}`{% endraw %}|
3434
35-
You can also use[Expression evaluations]({{site.baseurl}}/docs/codefresh-yaml/expression-condition-syntax/) to set metadata.
35+
You can also use[Expression evaluations]({{site.baseurl}}/docs/codefresh-yaml/condition-expression-syntax/) to set metadata.
3636

3737
##Annotate your images using Codefresh YAML
3838
You can annotate an image as part of it's builds process and also on post build steps.

‎_docs/enterprise/codefresh-runner.md‎

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,60 @@ venona install --kube-namespace my-codefresh-runtime --verbose --kube-config-pat
120120

121121
To check the installation result type`venona status --verbose` and you will get a list of all installations.
122122

123+
###Installing behind a proxy
124+
125+
If you want to deploy the Codefresh runner on a Kubernetes cluster that doesn’t have direct access to`g.codefresh.io`, and has to go trough a proxy server to access`g.codefresh.io`, you will need to follow these additional steps:
126+
127+
*Step 1* - Follow the installation instructions of the previous section
128+
129+
*Step 2* - Run`kubectl edit deployment venona -ncodefresh-runtime` and add the proxy variables like this
130+
131+
{% highlight yaml %}
132+
{% raw %}
133+
spec:
134+
containers:
135+
- env:
136+
- name: HTTP_PROXY
137+
value:http://192.168.199.5:8080
138+
- name: HTTPS_PROXY
139+
value:http://192.168.199.5:8080
140+
- name: http_proxy
141+
value:http://192.168.199.5:8080
142+
- name: https_proxy
143+
value:http://192.168.199.5:8080
144+
- name: no_proxy
145+
value: localhost, 127.0.0.1, <local_ip_of_machine>
146+
- name: NO_PROXY
147+
value: localhost, 127.0.0.1, <local_ip_of_machine>
148+
{% endraw %}
149+
{% endhighlight %}
150+
151+
152+
*Step 3* - Add the following variables to your runtime.yaml, both under the`runtimeScheduler:` and under`dockerDaemonScheduler:` blocks inside the`envVars:` section
153+
154+
```
155+
HTTP_PROXY: http://192.168.199.5:8080
156+
http_proxy: http://192.168.199.5:8080
157+
HTTPS_PROXY: http://192.168.199.5:8080
158+
https_proxy: http://192.168.199.5:8080
159+
No_proxy: localhost, 127.0.0.1, <local_ip_of_machine>
160+
NO_PROXY: localhost, 127.0.0.1, <local_ip_of_machine>
161+
```
162+
163+
*Step 4* - Add`.firebaseio.com` to the allowed-sites of the proxy server
164+
165+
*Step 5* - Exec into the`dind` pod and run`ifconfig`
166+
167+
If the MTU value for`docker0` is higher than the MTU value of`eth0` (sometimes the`docker0` MTU is 1500, while`eth0` MTU is 1440 - you need to change this, the`docker0` MTU should be lower than`eth0` MTU
168+
169+
To fix this, edit the configmap in the codefresh-runtime namespace:
170+
171+
```
172+
kubectl edit cm codefresh-dind-config -ncodefresh-runtime
173+
```
174+
175+
And add this after one of the commas:
176+
`"mtu":1440,`
123177

124178
###Installing on Google Kubernetes Engine
125179

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp