Skip to content

Commit 5afe664

Browse files
Format yaml
1 parent c4878c9 commit 5afe664

14 files changed

+310
-318
lines changed
Lines changed: 161 additions & 163 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
---
21
apiVersion: apiextensions.k8s.io/v1
32
kind: CustomResourceDefinition
43
metadata:
@@ -14,172 +13,171 @@ spec:
1413
singular: repository
1514
scope: Namespaced
1615
versions:
17-
- additionalPrinterColumns:
18-
- jsonPath: .spec.owner
19-
name: Owner
20-
type: string
21-
- jsonPath: .spec.repo
22-
name: Repo
23-
type: string
24-
- jsonPath: .status.conditions[?(@.status)].status
25-
name: Ready
26-
type: string
27-
name: v1alpha1
28-
schema:
29-
openAPIV3Schema:
30-
properties:
31-
apiVersion:
32-
description: |-
33-
APIVersion defines the versioned schema of this representation of an object.
34-
Servers should convert recognized schemas to the latest internal value, and
35-
may reject unrecognized values.
36-
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
37-
type: string
38-
kind:
39-
description: |-
40-
Kind is a string value representing the REST resource this object represents.
41-
Servers may infer this from the endpoint the client submits requests to.
42-
Cannot be updated.
43-
In CamelCase.
44-
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
45-
type: string
46-
metadata:
47-
type: object
48-
spec:
49-
description: RepositorySpec defines the desired state of Repository.
50-
properties:
51-
memorizeReleases:
52-
default: true
53-
type: boolean
54-
owner:
55-
type: string
56-
pipelineName:
57-
type: string
58-
pipelineRunName:
59-
type: string
60-
repo:
61-
type: string
62-
url:
63-
type: string
64-
versionFilter:
65-
properties:
66-
arg:
67-
type: string
68-
impl:
69-
enum:
70-
- semver
71-
type: string
72-
required:
73-
- arg
74-
- impl
75-
type: object
76-
workspaces:
77-
additionalProperties:
78-
additionalProperties:
79-
type: string
80-
type: object
81-
type: object
82-
required:
83-
- memorizeReleases
84-
- owner
85-
- pipelineRunName
86-
- repo
87-
- url
88-
- workspaces
89-
type: object
90-
status:
91-
description: RepositoryStatus defines the observed state of Repository.
92-
properties:
93-
conditions:
94-
items:
95-
description: Condition contains details for one aspect of the current
96-
state of this API Resource.
16+
- additionalPrinterColumns:
17+
- jsonPath: .spec.owner
18+
name: Owner
19+
type: string
20+
- jsonPath: .spec.repo
21+
name: Repo
22+
type: string
23+
- jsonPath: .status.conditions[?(@.status)].status
24+
name: Ready
25+
type: string
26+
name: v1alpha1
27+
schema:
28+
openAPIV3Schema:
29+
properties:
30+
apiVersion:
31+
description: |-
32+
APIVersion defines the versioned schema of this representation of an object.
33+
Servers should convert recognized schemas to the latest internal value, and
34+
may reject unrecognized values.
35+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
36+
type: string
37+
kind:
38+
description: |-
39+
Kind is a string value representing the REST resource this object represents.
40+
Servers may infer this from the endpoint the client submits requests to.
41+
Cannot be updated.
42+
In CamelCase.
43+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
44+
type: string
45+
metadata:
46+
type: object
47+
spec:
48+
description: RepositorySpec defines the desired state of Repository.
49+
properties:
50+
memorizeReleases:
51+
default: true
52+
type: boolean
53+
owner:
54+
type: string
55+
pipelineName:
56+
type: string
57+
pipelineRunName:
58+
type: string
59+
repo:
60+
type: string
61+
url:
62+
type: string
63+
versionFilter:
9764
properties:
98-
lastTransitionTime:
99-
description: |-
100-
lastTransitionTime is the last time the condition transitioned from one status to another.
101-
This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
102-
format: date-time
103-
type: string
104-
message:
105-
description: |-
106-
message is a human readable message indicating details about the transition.
107-
This may be an empty string.
108-
maxLength: 32768
65+
arg:
10966
type: string
110-
observedGeneration:
111-
description: |-
112-
observedGeneration represents the .metadata.generation that the condition was set based upon.
113-
For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
114-
with respect to the current state of the instance.
115-
format: int64
116-
minimum: 0
117-
type: integer
118-
reason:
119-
description: |-
120-
reason contains a programmatic identifier indicating the reason for the condition's last transition.
121-
Producers of specific condition types may define expected values and meanings for this field,
122-
and whether the values are considered a guaranteed API.
123-
The value should be a CamelCase string.
124-
This field may not be empty.
125-
maxLength: 1024
126-
minLength: 1
127-
pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
128-
type: string
129-
status:
130-
description: status of the condition, one of True, False, Unknown.
67+
impl:
13168
enum:
132-
- "True"
133-
- "False"
134-
- Unknown
135-
type: string
136-
type:
137-
description: type of condition in CamelCase or in foo.example.com/CamelCase.
138-
maxLength: 316
139-
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
69+
- semver
14070
type: string
14171
required:
142-
- lastTransitionTime
143-
- message
144-
- reason
145-
- status
146-
- type
72+
- arg
73+
- impl
14774
type: object
148-
type: array
149-
lastCheck:
150-
format: date-time
151-
type: string
152-
ready:
153-
type: boolean
154-
releases:
155-
additionalProperties:
156-
properties:
157-
hasAssets:
158-
type: boolean
159-
pipelineRuns:
160-
properties:
161-
name:
162-
type: string
163-
timestamp:
164-
format: date-time
165-
type: string
166-
required:
167-
- name
168-
type: object
169-
runsCreated:
170-
type: integer
171-
required:
172-
- hasAssets
173-
- runsCreated
75+
workspaces:
76+
additionalProperties:
77+
additionalProperties:
78+
type: string
79+
type: object
80+
type: object
81+
required:
82+
- memorizeReleases
83+
- owner
84+
- pipelineRunName
85+
- repo
86+
- url
87+
- workspaces
88+
type: object
89+
status:
90+
description: RepositoryStatus defines the observed state of Repository.
91+
properties:
92+
conditions:
93+
items:
94+
description: Condition contains details for one aspect of the current state of this API Resource.
95+
properties:
96+
lastTransitionTime:
97+
description: |-
98+
lastTransitionTime is the last time the condition transitioned from one status to another.
99+
This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
100+
format: date-time
101+
type: string
102+
message:
103+
description: |-
104+
message is a human readable message indicating details about the transition.
105+
This may be an empty string.
106+
maxLength: 32768
107+
type: string
108+
observedGeneration:
109+
description: |-
110+
observedGeneration represents the .metadata.generation that the condition was set based upon.
111+
For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
112+
with respect to the current state of the instance.
113+
format: int64
114+
minimum: 0
115+
type: integer
116+
reason:
117+
description: |-
118+
reason contains a programmatic identifier indicating the reason for the condition's last transition.
119+
Producers of specific condition types may define expected values and meanings for this field,
120+
and whether the values are considered a guaranteed API.
121+
The value should be a CamelCase string.
122+
This field may not be empty.
123+
maxLength: 1024
124+
minLength: 1
125+
pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
126+
type: string
127+
status:
128+
description: status of the condition, one of True, False, Unknown.
129+
enum:
130+
- "True"
131+
- "False"
132+
- Unknown
133+
type: string
134+
type:
135+
description: type of condition in CamelCase or in foo.example.com/CamelCase.
136+
maxLength: 316
137+
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
138+
type: string
139+
required:
140+
- lastTransitionTime
141+
- message
142+
- reason
143+
- status
144+
- type
145+
type: object
146+
type: array
147+
lastCheck:
148+
format: date-time
149+
type: string
150+
ready:
151+
type: boolean
152+
releases:
153+
additionalProperties:
154+
properties:
155+
hasAssets:
156+
type: boolean
157+
pipelineRuns:
158+
properties:
159+
name:
160+
type: string
161+
timestamp:
162+
format: date-time
163+
type: string
164+
required:
165+
- name
166+
type: object
167+
runsCreated:
168+
type: integer
169+
required:
170+
- hasAssets
171+
- runsCreated
172+
type: object
174173
type: object
175-
type: object
176-
required:
177-
- lastCheck
178-
- ready
179-
- releases
180-
type: object
181-
type: object
182-
served: true
183-
storage: true
184-
subresources:
185-
status: {}
174+
required:
175+
- lastCheck
176+
- ready
177+
- releases
178+
type: object
179+
type: object
180+
served: true
181+
storage: true
182+
subresources:
183+
status: {}

apps/gollum/crd/kustomization.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
---
21
resources:
32
- gollum.soeren.cloud_repositories.yaml
Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
# This file is for teaching kustomize how to substitute name and namespace reference in CRD
22
nameReference:
3-
- kind: Service
4-
version: v1
5-
fieldSpecs:
3+
- kind: Service
4+
version: v1
5+
fieldSpecs:
6+
- kind: CustomResourceDefinition
7+
version: v1
8+
group: apiextensions.k8s.io
9+
path: spec/conversion/webhook/clientConfig/service/name
10+
namespace:
611
- kind: CustomResourceDefinition
712
version: v1
813
group: apiextensions.k8s.io
9-
path: spec/conversion/webhook/clientConfig/service/name
10-
11-
namespace:
12-
- kind: CustomResourceDefinition
13-
version: v1
14-
group: apiextensions.k8s.io
15-
path: spec/conversion/webhook/clientConfig/service/namespace
16-
create: false
17-
14+
path: spec/conversion/webhook/clientConfig/service/namespace
15+
create: false
1816
varReference:
19-
- path: metadata/annotations
17+
- path: metadata/annotations

0 commit comments

Comments
 (0)