Skip to content

Commit e718db2

Browse files
authored
Update Shipwright Operator to 0.14.0 (redhat-openshift-ecosystem#5730)
Signed-off-by: Adam Kaplan <[email protected]>
1 parent 5d14d81 commit e718db2

7 files changed

+1060
-0
lines changed
Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
---
2+
apiVersion: apiextensions.k8s.io/v1
3+
kind: CustomResourceDefinition
4+
metadata:
5+
annotations:
6+
controller-gen.kubebuilder.io/version: v0.15.0
7+
creationTimestamp: null
8+
name: shipwrightbuilds.operator.shipwright.io
9+
spec:
10+
group: operator.shipwright.io
11+
names:
12+
kind: ShipwrightBuild
13+
listKind: ShipwrightBuildList
14+
plural: shipwrightbuilds
15+
singular: shipwrightbuild
16+
scope: Cluster
17+
versions:
18+
- name: v1alpha1
19+
schema:
20+
openAPIV3Schema:
21+
description: ShipwrightBuild represents the deployment of Shipwright's build
22+
controller on a Kubernetes cluster.
23+
properties:
24+
apiVersion:
25+
description: |-
26+
APIVersion defines the versioned schema of this representation of an object.
27+
Servers should convert recognized schemas to the latest internal value, and
28+
may reject unrecognized values.
29+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
30+
type: string
31+
kind:
32+
description: |-
33+
Kind is a string value representing the REST resource this object represents.
34+
Servers may infer this from the endpoint the client submits requests to.
35+
Cannot be updated.
36+
In CamelCase.
37+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
38+
type: string
39+
metadata:
40+
type: object
41+
spec:
42+
description: ShipwrightBuildSpec defines the configuration of a Shipwright
43+
Build deployment.
44+
properties:
45+
targetNamespace:
46+
description: TargetNamespace is the target namespace where Shipwright's
47+
build controller will be deployed.
48+
type: string
49+
type: object
50+
status:
51+
description: ShipwrightBuildStatus defines the observed state of ShipwrightBuild
52+
properties:
53+
conditions:
54+
description: Conditions holds the latest available observations of
55+
a resource's current state.
56+
items:
57+
description: "Condition contains details for one aspect of the current
58+
state of this API Resource.\n---\nThis struct is intended for
59+
direct use as an array at the field path .status.conditions. For
60+
example,\n\n\n\ttype FooStatus struct{\n\t // Represents the
61+
observations of a foo's current state.\n\t // Known .status.conditions.type
62+
are: \"Available\", \"Progressing\", and \"Degraded\"\n\t //
63+
+patchMergeKey=type\n\t // +patchStrategy=merge\n\t // +listType=map\n\t
64+
\ // +listMapKey=type\n\t Conditions []metav1.Condition `json:\"conditions,omitempty\"
65+
patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"`\n\n\n\t
66+
\ // other fields\n\t}"
67+
properties:
68+
lastTransitionTime:
69+
description: |-
70+
lastTransitionTime is the last time the condition transitioned from one status to another.
71+
This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
72+
format: date-time
73+
type: string
74+
message:
75+
description: |-
76+
message is a human readable message indicating details about the transition.
77+
This may be an empty string.
78+
maxLength: 32768
79+
type: string
80+
observedGeneration:
81+
description: |-
82+
observedGeneration represents the .metadata.generation that the condition was set based upon.
83+
For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
84+
with respect to the current state of the instance.
85+
format: int64
86+
minimum: 0
87+
type: integer
88+
reason:
89+
description: |-
90+
reason contains a programmatic identifier indicating the reason for the condition's last transition.
91+
Producers of specific condition types may define expected values and meanings for this field,
92+
and whether the values are considered a guaranteed API.
93+
The value should be a CamelCase string.
94+
This field may not be empty.
95+
maxLength: 1024
96+
minLength: 1
97+
pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
98+
type: string
99+
status:
100+
description: status of the condition, one of True, False, Unknown.
101+
enum:
102+
- "True"
103+
- "False"
104+
- Unknown
105+
type: string
106+
type:
107+
description: |-
108+
type of condition in CamelCase or in foo.example.com/CamelCase.
109+
---
110+
Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
111+
useful (see .node.status.conditions), the ability to deconflict is important.
112+
The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
113+
maxLength: 316
114+
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])$
115+
type: string
116+
required:
117+
- lastTransitionTime
118+
- message
119+
- reason
120+
- status
121+
- type
122+
type: object
123+
type: array
124+
type: object
125+
type: object
126+
served: true
127+
storage: true
128+
subresources:
129+
status: {}
130+
status:
131+
acceptedNames:
132+
kind: ""
133+
plural: ""
134+
conditions: null
135+
storedVersions: null
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
apiVersion: v1
3+
data:
4+
controller_manager_config.yaml: |
5+
apiVersion: controller-runtime.sigs.k8s.io/v1alpha1
6+
kind: ControllerManagerConfig
7+
health:
8+
healthProbeBindAddress: :8081
9+
metrics:
10+
bindAddress: 127.0.0.1:8080
11+
webhook:
12+
port: 9443
13+
leaderElection:
14+
leaderElect: true
15+
resourceName: 01a9b2d1.shipwright.io
16+
kind: ConfigMap
17+
metadata:
18+
name: shipwright-operator-manager-config
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
apiVersion: rbac.authorization.k8s.io/v1
3+
kind: ClusterRole
4+
metadata:
5+
creationTimestamp: null
6+
name: shipwright-operator-metrics-reader
7+
rules:
8+
- nonResourceURLs:
9+
- /metrics
10+
verbs:
11+
- get
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
apiVersion: v1
3+
kind: Service
4+
metadata:
5+
creationTimestamp: null
6+
labels:
7+
app: shipwright-operator
8+
name: shipwright-operator-metrics-service
9+
spec:
10+
ports:
11+
- name: https
12+
port: 8443
13+
protocol: TCP
14+
targetPort: https
15+
selector:
16+
app: shipwright-operator
17+
control-plane: controller-manager
18+
status:
19+
loadBalancer: {}

0 commit comments

Comments
 (0)