Skip to content

Commit fc1e605

Browse files
author
Vincent
authored
Add 0.17 manifests into the operator (knative#251)
* Add 0.17.0 manifests into the operator * Change the upgrade prow to use the latest versions * Add sugar controller * Add knative serving 0.17.1 and Knative eventing 0.17.2
1 parent e23abc0 commit fc1e605

31 files changed

+31071
-22
lines changed
Lines changed: 289 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,289 @@
1+
# Copyright 2019 The Knative Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
apiVersion: apiextensions.k8s.io/v1
16+
kind: CustomResourceDefinition
17+
metadata:
18+
name: brokers.eventing.knative.dev
19+
labels:
20+
eventing.knative.dev/release: "v0.17.0"
21+
knative.dev/crd-install: "true"
22+
duck.knative.dev/addressable: "true"
23+
spec:
24+
group: eventing.knative.dev
25+
versions:
26+
- &version
27+
name: v1beta1
28+
served: true
29+
storage: true
30+
subresources:
31+
status: {}
32+
schema:
33+
openAPIV3Schema:
34+
type: object
35+
# this is a work around so we don't need to flush out the
36+
# schema for each version at this time
37+
#
38+
# see issue: https://github.com/knative/serving/issues/912
39+
x-kubernetes-preserve-unknown-fields: true
40+
additionalPrinterColumns:
41+
- name: Ready
42+
type: string
43+
jsonPath: ".status.conditions[?(@.type==\"Ready\")].status"
44+
- name: Reason
45+
type: string
46+
jsonPath: ".status.conditions[?(@.type==\"Ready\")].reason"
47+
- name: URL
48+
type: string
49+
jsonPath: .status.address.url
50+
- name: Age
51+
type: date
52+
jsonPath: .metadata.creationTimestamp
53+
- !!merge <<: *version
54+
name: v1alpha1
55+
served: true
56+
storage: false
57+
names:
58+
kind: Broker
59+
plural: brokers
60+
singular: broker
61+
categories:
62+
- all
63+
- knative
64+
- eventing
65+
scope: Namespaced
66+
conversion:
67+
strategy: Webhook
68+
webhook:
69+
conversionReviewVersions: ["v1beta1"]
70+
clientConfig:
71+
service:
72+
name: eventing-webhook
73+
namespace: knative-eventing
74+
75+
---
76+
# Copyright 2020 The Knative Authors
77+
#
78+
# Licensed under the Apache License, Version 2.0 (the "License");
79+
# you may not use this file except in compliance with the License.
80+
# You may obtain a copy of the License at
81+
#
82+
# http://www.apache.org/licenses/LICENSE-2.0
83+
#
84+
# Unless required by applicable law or agreed to in writing, software
85+
# distributed under the License is distributed on an "AS IS" BASIS,
86+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
87+
# See the License for the specific language governing permissions and
88+
# limitations under the License.
89+
90+
apiVersion: rbac.authorization.k8s.io/v1
91+
kind: ClusterRole
92+
metadata:
93+
name: knative-eventing-pre-install-job-role
94+
labels:
95+
eventing.knative.dev/release: "v0.17.0"
96+
rules:
97+
- # Storage version upgrader needs to be able to patch CRDs.
98+
apiGroups:
99+
- "apiextensions.k8s.io"
100+
resources:
101+
- "customresourcedefinitions"
102+
- "customresourcedefinitions/status"
103+
verbs:
104+
- "get"
105+
- "list"
106+
- "update"
107+
- "patch"
108+
- "watch"
109+
- # Our own resources we care about.
110+
apiGroups:
111+
- "eventing.knative.dev"
112+
- "sources.knative.dev"
113+
resources:
114+
- "brokers"
115+
- "pingsources"
116+
verbs:
117+
- "get"
118+
- "list"
119+
- "create"
120+
- "update"
121+
- "delete"
122+
- "patch"
123+
- "watch"
124+
125+
---
126+
# Copyright 2020 The Knative Authors
127+
#
128+
# Licensed under the Apache License, Version 2.0 (the "License");
129+
# you may not use this file except in compliance with the License.
130+
# You may obtain a copy of the License at
131+
#
132+
# http://www.apache.org/licenses/LICENSE-2.0
133+
#
134+
# Unless required by applicable law or agreed to in writing, software
135+
# distributed under the License is distributed on an "AS IS" BASIS,
136+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
137+
# See the License for the specific language governing permissions and
138+
# limitations under the License.
139+
140+
apiVersion: apiextensions.k8s.io/v1
141+
kind: CustomResourceDefinition
142+
metadata:
143+
labels:
144+
eventing.knative.dev/release: "v0.17.0"
145+
eventing.knative.dev/source: "true"
146+
duck.knative.dev/source: "true"
147+
knative.dev/crd-install: "true"
148+
annotations:
149+
# TODO add schemas and descriptions
150+
registry.knative.dev/eventTypes: |
151+
[
152+
{ "type": "dev.knative.sources.ping" }
153+
]
154+
name: pingsources.sources.knative.dev
155+
spec:
156+
group: sources.knative.dev
157+
versions:
158+
- &version
159+
name: v1alpha2
160+
served: true
161+
storage: true
162+
subresources:
163+
status: {}
164+
schema:
165+
openAPIV3Schema:
166+
type: object
167+
# this is a work around so we don't need to flush out the
168+
# schema for each version at this time
169+
#
170+
# see issue: https://github.com/knative/serving/issues/912
171+
x-kubernetes-preserve-unknown-fields: true
172+
additionalPrinterColumns:
173+
- name: Ready
174+
type: string
175+
jsonPath: ".status.conditions[?(@.type=='Ready')].status"
176+
- name: Reason
177+
type: string
178+
jsonPath: ".status.conditions[?(@.type=='Ready')].reason"
179+
- name: Sink
180+
type: string
181+
jsonPath: .status.sinkUri
182+
- name: Age
183+
type: date
184+
jsonPath: .metadata.creationTimestamp
185+
- !!merge <<: *version
186+
name: v1alpha1
187+
served: false
188+
storage: false
189+
names:
190+
categories:
191+
- all
192+
- knative
193+
- eventing
194+
- sources
195+
kind: PingSource
196+
plural: pingsources
197+
scope: Namespaced
198+
conversion:
199+
strategy: Webhook
200+
webhook:
201+
conversionReviewVersions: ["v1beta1"]
202+
clientConfig:
203+
service:
204+
name: eventing-webhook
205+
namespace: knative-eventing
206+
207+
---
208+
# Copyright 2020 The Knative Authors
209+
#
210+
# Licensed under the Apache License, Version 2.0 (the "License");
211+
# you may not use this file except in compliance with the License.
212+
# You may obtain a copy of the License at
213+
#
214+
# http://www.apache.org/licenses/LICENSE-2.0
215+
#
216+
# Unless required by applicable law or agreed to in writing, software
217+
# distributed under the License is distributed on an "AS IS" BASIS,
218+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
219+
# See the License for the specific language governing permissions and
220+
# limitations under the License.
221+
222+
apiVersion: v1
223+
kind: ServiceAccount
224+
metadata:
225+
name: knative-eventing-pre-install-job
226+
namespace: knative-eventing
227+
labels:
228+
eventing.knative.dev/release: "v0.17.0"
229+
---
230+
apiVersion: rbac.authorization.k8s.io/v1
231+
kind: ClusterRoleBinding
232+
metadata:
233+
name: knative-eventing-pre-install-job-role-binding
234+
labels:
235+
eventing.knative.dev/release: "v0.17.0"
236+
subjects:
237+
- kind: ServiceAccount
238+
name: knative-eventing-pre-install-job
239+
namespace: knative-eventing
240+
roleRef:
241+
kind: ClusterRole
242+
name: knative-eventing-pre-install-job-role
243+
apiGroup: rbac.authorization.k8s.io
244+
245+
---
246+
# Copyright 2020 The Knative Authors
247+
#
248+
# Licensed under the Apache License, Version 2.0 (the "License");
249+
# you may not use this file except in compliance with the License.
250+
# You may obtain a copy of the License at
251+
#
252+
# https://www.apache.org/licenses/LICENSE-2.0
253+
#
254+
# Unless required by applicable law or agreed to in writing, software
255+
# distributed under the License is distributed on an "AS IS" BASIS,
256+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
257+
# See the License for the specific language governing permissions and
258+
# limitations under the License.
259+
260+
apiVersion: batch/v1
261+
kind: Job
262+
metadata:
263+
name: storage-version-migration-eventing
264+
namespace: knative-eventing
265+
labels:
266+
app: "storage-version-migration-eventing"
267+
eventing.knative.dev/release: "v0.17.0"
268+
spec:
269+
ttlSecondsAfterFinished: 600
270+
backoffLimit: 10
271+
template:
272+
metadata:
273+
labels:
274+
app: "storage-version-migration-eventing"
275+
annotations:
276+
sidecar.istio.io/inject: "false"
277+
spec:
278+
serviceAccountName: knative-eventing-pre-install-job
279+
restartPolicy: OnFailure
280+
containers:
281+
- name: migrate
282+
# This is the Go import path for the binary that is containerized
283+
# and substituted here.
284+
image: gcr.io/knative-releases/knative.dev/eventing/vendor/knative.dev/pkg/apiextensions/storageversion/cmd/migrate@sha256:d3b40611a0a56970b834b2e9ca86503337973bc7acf0a92114afd74630b8ebe3
285+
args:
286+
- "brokers.eventing.knative.dev"
287+
- "pingsources.sources.knative.dev"
288+
289+
---

0 commit comments

Comments
 (0)