-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathv2.edp.epam.com_codebasebranches.yaml
More file actions
167 lines (167 loc) · 5.78 KB
/
Copy pathv2.edp.epam.com_codebasebranches.yaml
File metadata and controls
167 lines (167 loc) · 5.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.16.5
name: codebasebranches.v2.edp.epam.com
spec:
group: v2.edp.epam.com
names:
kind: CodebaseBranch
listKind: CodebaseBranchList
plural: codebasebranches
shortNames:
- cb
singular: codebasebranch
scope: Namespaced
versions:
- additionalPrinterColumns:
- description: Result of last action
jsonPath: .status.result
name: Result
type: string
- description: The status of codebasebranch
jsonPath: .status.status
name: Status
type: string
- description: Owner of object
jsonPath: .spec.codebaseName
name: Codebase Name
type: string
- description: Is a release branch
jsonPath: .spec.release
name: Release
type: boolean
- description: Name of branch
jsonPath: .spec.branchName
name: Branch
type: string
name: v1
schema:
openAPIV3Schema:
description: CodebaseBranch is the Schema for the CodebaseBranches API.
properties:
apiVersion:
description: |-
APIVersion defines the versioned schema of this representation of an object.
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
type: string
kind:
description: |-
Kind is a string value representing the REST resource this object represents.
Servers may infer this from the endpoint the client submits requests to.
Cannot be updated.
In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
type: string
metadata:
type: object
spec:
description: CodebaseBranchSpec defines the desired state of CodebaseBranch.
properties:
branchName:
description: Name of a branch.
type: string
x-kubernetes-validations:
- message: Value is immutable
rule: self == oldSelf
codebaseName:
description: Name of Codebase associated with.
type: string
fromCommit:
description: |-
FromCommit is a commit hash or branch name.
The new branch will be created starting from the selected commit hash or branch name.
If a branch name is provided, the new branch will be created from the latest commit of that branch.
type: string
pipelines:
additionalProperties:
type: string
description: Pipelines is a map of pipelines related to the branch.
example:
build: build-pipeline
review: review-pipeline
nullable: true
type: object
release:
description: Flag if branch is used as "release" branch.
type: boolean
version:
description: Version of the branch. It's required for versioning type
"semver".
nullable: true
type: string
required:
- branchName
- codebaseName
- release
type: object
status:
description: CodebaseBranchStatus defines the observed state of CodebaseBranch.
properties:
action:
description: The last Action was performed.
type: string
build:
nullable: true
type: string
detailedMessage:
description: |-
Detailed information regarding action result
which were performed
type: string
failureCount:
description: Amount of times, operator fail to serve with existing
CR.
format: int64
type: integer
git:
description: Specifies a status of action for git.
type: string
lastSuccessfulBuild:
nullable: true
type: string
lastTimeUpdated:
description: Information when the last time the action were performed.
format: date-time
type: string
result:
description: |-
A result of an action which were performed.
- "success": action where performed successfully;
- "error": error has occurred;
enum:
- success
- error
type: string
status:
description: Specifies a current status of CodebaseBranch.
type: string
username:
description: Name of user who made a last change.
type: string
value:
description: Specifies a current state of CodebaseBranch.
type: string
versionHistory:
items:
type: string
nullable: true
type: array
required:
- action
- failureCount
- lastTimeUpdated
- result
- status
- username
- value
type: object
type: object
served: true
storage: true
subresources:
status: {}