Skip to content

Commit

Permalink
refactor: Align default TriggerTemplate name (#20)
Browse files Browse the repository at this point in the history
Change-Id: I002744b75ab1d235a3f516e52189a4ac9c88777a
  • Loading branch information
MykolaMarusenko committed Mar 7, 2024
1 parent 885084b commit bf1c09b
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions api/v1/stage_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ type StageSpec struct {
Namespace string `json:"namespace,omitempty"`

// Specifies a name of Tekton TriggerTemplate which will be used as a blueprint for deployment pipeline.
// Default value is "cd-stage-deploy" which means that default TriggerTemplate will be used.
// Default value is "deploy" which means that default TriggerTemplate will be used.
// The default TriggerTemplate is delivered using edp-tekton helm chart.
// +optional
// +kubebuilder:default:="cd-stage-deploy"
// +kubebuilder:default:="deploy"
TriggerTemplate string `json:"triggerTemplate,omitempty"`

// Specifies a name of cluster where the application will be deployed.
Expand Down
4 changes: 2 additions & 2 deletions config/crd/bases/v2.edp.epam.com_stages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@ spec:
type: string
type: object
triggerTemplate:
default: cd-stage-deploy
default: deploy
description: Specifies a name of Tekton TriggerTemplate which will
be used as a blueprint for deployment pipeline. Default value is
"cd-stage-deploy" which means that default TriggerTemplate will
"deploy" which means that default TriggerTemplate will
be used. The default TriggerTemplate is delivered using edp-tekton
helm chart.
type: string
Expand Down
2 changes: 1 addition & 1 deletion deploy-templates/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ annotations:
library: {}
type: default
triggerType: Auto
triggerTemplate: cd-stage-deploy
triggerTemplate: deploy
artifacthub.io/links: |
- name: EDP Documentation
url: https://epam.github.io/edp-install/
Expand Down
4 changes: 2 additions & 2 deletions deploy-templates/crds/v2.edp.epam.com_stages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@ spec:
type: string
type: object
triggerTemplate:
default: cd-stage-deploy
default: deploy
description: Specifies a name of Tekton TriggerTemplate which will
be used as a blueprint for deployment pipeline. Default value is
"cd-stage-deploy" which means that default TriggerTemplate will
"deploy" which means that default TriggerTemplate will
be used. The default TriggerTemplate is delivered using edp-tekton
helm chart.
type: string
Expand Down
4 changes: 2 additions & 2 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -345,9 +345,9 @@ StageSpec defines the desired state of Stage. NOTE: for deleting the stage use s
<td><b>triggerTemplate</b></td>
<td>string</td>
<td>
Specifies a name of Tekton TriggerTemplate which will be used as a blueprint for deployment pipeline. Default value is "cd-stage-deploy" which means that default TriggerTemplate will be used. The default TriggerTemplate is delivered using edp-tekton helm chart.<br/>
Specifies a name of Tekton TriggerTemplate which will be used as a blueprint for deployment pipeline. Default value is "deploy" which means that default TriggerTemplate will be used. The default TriggerTemplate is delivered using edp-tekton helm chart.<br/>
<br/>
<i>Default</i>: cd-stage-deploy<br/>
<i>Default</i>: deploy<br/>
</td>
<td>false</td>
</tr></tbody>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ spec:
name: default
type: default
triggerType: Manual
triggerTemplate: cd-stage-deploy
triggerTemplate: deploy

# Create CodebaseImageStream which stores verified (promoted) images
---
Expand Down Expand Up @@ -176,7 +176,7 @@ spec:
name: default
type: default
triggerType: Auto
triggerTemplate: cd-stage-deploy
triggerTemplate: deploy

---
apiVersion: v2.edp.epam.com/v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ spec:
name: default
type: default
triggerType: Manual
triggerTemplate: cd-stage-deploy
triggerTemplate: deploy

---
apiVersion: v2.edp.epam.com/v1
Expand All @@ -59,7 +59,7 @@ spec:
name: default
type: default
triggerType: Auto
triggerTemplate: cd-stage-deploy
triggerTemplate: deploy

---

Expand Down

0 comments on commit bf1c09b

Please sign in to comment.