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
This step is not required and is added automatically for the main repository.
13
-
</div>
14
11
15
12
`YAML`
16
13
{% highlight yaml %}
@@ -55,3 +52,26 @@ step_name:
55
52
{{site.data.callout.callout_info}}
56
53
If you want to extend the git-clone step you can use the freestyle step. Example how to do it you can find[here]({{ site.baseurl }}/docs/yaml-examples/examples/git-clone-private-repository-using-freestyle-step/)
57
54
{{site.data.callout.end}}
55
+
56
+
##Skip or customize default clone
57
+
58
+
A git clone step is transparently added to git attached pipelines without you having to explicitly add a step into the pipeline. This is a convenience to enable easy CI pipelines.
59
+
If you do not require git cloning, or you would like to customize the implicit git cloning behaviour, you can choose to skip the automatically added git clone step.
60
+
61
+
There are 2 ways to do that:
62
+
63
+
1. Add a pipeline environment variable called`CF_SKIP_MAIN_CLONE` with value of`true`.
64
+
65
+
-or-
66
+
67
+
2. Add a step with key`main_clone` to your pipeline. This step can be of any type and can do any action. This step will override the default clone implementation. for example:
| {% raw %}`${{CF_REPO_OWNER}}`{% endraw %}| Repository owner.|
23
23
| {% raw %}`${{CF_REPO_NAME}}`{% endraw %}| Repository name.|
24
-
| {% raw %}`${{CF_BRANCH}}`{% endraw %}| Branch name of the Git repository of the main pipeline, at the time of execution. <br/>You can also use {% raw %}`${{CF_BRANCH_TAG_NORMALIZED}}`{% endraw %} to get the branch name normalized. It will be without any chars that are illegal in case the branch name were to be used as the Docker image tag name.|
24
+
| {% raw %}`${{CF_BRANCH}}`{% endraw %}| Branch name (or Tag depending on the payload json) of the Git repository of the main pipeline, at the time of execution. <br/>You can also use {% raw %}`${{CF_BRANCH_TAG_NORMALIZED}}`{% endraw %} to get the branch name normalized. It will be without any chars that are illegal in case the branch name were to be used as the Docker image tag name.|
25
+
| {% raw %}`${{CF_BASE_BRANCH}}`{% endraw %} | The base branch used during creation of Tag
25
26
| {% raw %}`${{CF_COMMIT_AUTHOR}}`{% endraw %}| Commit author.|
26
27
| {% raw %}`${{CF_COMMIT_URL}}`{% endraw %}| Commit url.|
27
28
| {% raw %}`${{CF_COMMIT_MESSAGE}}`{% endraw %}| Commit message of the git repository revision, at the time of execution.<br/> The messages quotes are escaped (i.e. ' is not\', " is now\").|
The integration between Codefresh and your Kubernetes cluster is API based and relies on a Kubernetes service account of your choosing that will be used to manage the integration.
45
-
The configurations you'll be required to add are:
47
+
The integration between Codefresh and your Kubernetes cluster is API based and relies on a Kubernetes service account of your choosing that will be used to manage the integration.
48
+
49
+
The configurations you'll be required to add are:
46
50
47
51
{:start="1"}
48
-
1. Name - Any name of your choosing, that will represent your cluster context in Codefresh.
52
+
1. Name - Any name of your choosing, that will represent your cluster context in Codefresh.
53
+
54
+
{:start="2"}
49
55
2. Host - The endpoint for your Kubernetes API
56
+
57
+
{:start="3"}
50
58
3. Certificate - The Kubernetes service account certificate used for the integration with Codefresh
59
+
60
+
{:start="4"}
51
61
4. Token - The Kubernetes service account token used for the integration with Codefresh
52
62
53
63
{% include image.html
@@ -113,6 +123,7 @@ So, what's next?
113
123
-[Deployment to Kubernetes - Quick start guide]({{ site.baseurl }}/docs/deploy-to-kubernetes/deployment-to-kubernetes-quick-start-guide/)
114
124
-[Example - Deploy demochat to Kubernetes cluster]({{ site.baseurl }}/docs/deploy-to-kubernetes/codefresh-kubernetes-integration-demochat-example/)
115
125
126
+
116
127
##Debugging issues with adding cluster
117
128
118
129
After adding your cluster configurations and in case the test fails, click "Save" to get the error message back.
@@ -126,7 +137,7 @@ After adding your cluster configurations and in case the test fails, click "Save