Skip to content

Commit

Permalink
chore: Deprecate codebasebranch properties (#114)
Browse files Browse the repository at this point in the history
We are not using releasejob params, so deprecating it

Signed-off-by: Sergiy Kulanov <[email protected]>
  • Loading branch information
SergK committed Aug 29, 2024
1 parent adcb430 commit 625d018
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 47 deletions.
4 changes: 0 additions & 4 deletions api/v1/codebasebranch_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ type CodebaseBranchSpec struct {
// Flag if branch is used as "release" branch.
Release bool `json:"release"`

// +nullable
// +optional
ReleaseJobParams map[string]string `json:"releaseJobParams,omitempty"`

// Pipelines is a map of pipelines related to the branch.
// +nullable
// +optional
Expand Down
7 changes: 0 additions & 7 deletions api/v1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions config/crd/bases/v2.edp.epam.com_codebasebranches.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,6 @@ spec:
release:
description: Flag if branch is used as "release" branch.
type: boolean
releaseJobParams:
additionalProperties:
type: string
nullable: true
type: object
version:
nullable: true
type: string
Expand Down
14 changes: 0 additions & 14 deletions controllers/codebasebranch/service/mock_codebasebranch.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,6 @@ type MockCodebasebranch struct {
mock.Mock
}

func (m *MockCodebasebranch) TriggerDeletionJob(cb *codebaseApi.CodebaseBranch) error {
return m.Called(cb).Error(0)
}

func (m *MockCodebasebranch) TriggerReleaseJob(cb *codebaseApi.CodebaseBranch) error {
return m.Called(cb).Error(0)
}

func (m *MockCodebasebranch) convertCodebaseBranchSpecToParams(cb *codebaseApi.CodebaseBranch) (map[string]string, error) {
var a map[string]string

return a, m.Called(cb).Error(0)
}

func (m *MockCodebasebranch) AppendVersionToTheHistorySlice(cb *codebaseApi.CodebaseBranch) error {
return m.Called(cb).Error(0)
}
Expand Down
1 change: 0 additions & 1 deletion deploy-templates/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ annotations:
codebaseName: javascript-deploy-edp
fromCommit: 'latest'
release: false
releaseJobParams: null
version: 1.2.3-SNAPSHOT
- apiVersion: v2.edp.epam.com/v1
kind: CodebaseImageStream
Expand Down
4 changes: 0 additions & 4 deletions deploy-templates/_crd_examples/codebase_branch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,3 @@ spec:
codebaseName: bar-70
fromCommit: ''
release: false
releaseJobParams:
codebaseName: RELEASE_NAME
fromCommit: COMMIT_ID
gitServer: GIT_SERVER
5 changes: 0 additions & 5 deletions deploy-templates/crds/v2.edp.epam.com_codebasebranches.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,6 @@ spec:
release:
description: Flag if branch is used as "release" branch.
type: boolean
releaseJobParams:
additionalProperties:
type: string
nullable: true
type: object
version:
nullable: true
type: string
Expand Down
7 changes: 0 additions & 7 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -341,13 +341,6 @@ CodebaseBranchSpec defines the desired state of CodebaseBranch.
Pipelines is a map of pipelines related to the branch.<br/>
</td>
<td>false</td>
</tr><tr>
<td><b>releaseJobParams</b></td>
<td>map[string]string</td>
<td>
<br/>
</td>
<td>false</td>
</tr><tr>
<td><b>version</b></td>
<td>string</td>
Expand Down

0 comments on commit 625d018

Please sign in to comment.