-
Notifications
You must be signed in to change notification settings - Fork 68
/
Copy pathcsv.yaml
1174 lines (1151 loc) · 41.5 KB
/
csv.yaml
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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
apiVersion: operators.coreos.com/v1alpha1
kind: ClusterServiceVersion
metadata:
annotations:
operatorframework.io/suggested-namespace: "openshift-serverless"
operators.openshift.io/infrastructure-features: '["disconnected", "proxy-aware"]'
operators.openshift.io/valid-subscription: '["OpenShift Container Platform", "OpenShift Platform Plus"]'
features.operators.openshift.io/disconnected: "true"
features.operators.openshift.io/fips-compliant: "false"
features.operators.openshift.io/proxy-aware: "true"
features.operators.openshift.io/tls-profiles: "false"
features.operators.openshift.io/token-auth-aws: "false"
features.operators.openshift.io/token-auth-azure: "false"
features.operators.openshift.io/token-auth-gcp: "false"
features.operators.openshift.io/cni: "false"
features.operators.openshift.io/cnf: "false"
features.operators.openshift.io/csi: "false"
alm-examples: |-
[
{
"apiVersion": "operator.knative.dev/v1beta1",
"kind": "KnativeServing",
"metadata": {
"name": "knative-serving"
},
"spec": {
}
},
{
"apiVersion": "operator.knative.dev/v1beta1",
"kind": "KnativeEventing",
"metadata": {
"name": "knative-eventing"
},
"spec": {
}
},
{
"apiVersion": "operator.serverless.openshift.io/v1alpha1",
"kind": "KnativeKafka",
"metadata": {
"name": "knative-kafka"
},
"spec": {
"broker": {
"enabled": false,
"defaultConfig": {
"numPartitions": 10,
"replicationFactor": 3,
"bootstrapServers": "REPLACE_WITH_COMMA_SEPARATED_KAFKA_BOOTSTRAP_SERVERS"
}
},
"source": {
"enabled": false
},
"sink": {
"enabled": false
},
"channel": {
"enabled": false,
"bootstrapServers": "REPLACE_WITH_COMMA_SEPARATED_KAFKA_BOOTSTRAP_SERVERS"
}
}
}
]
capabilities: Full Lifecycle
categories: Networking,Integration & Delivery,Cloud Provider,Developer Tools
certified: "false"
createdAt: "2020-04-20T17:00:00Z"
description: |-
Deploy and manage event-driven serverless applications and functions using Knative.
repository: https://github.com/openshift-knative/serverless-operator
support: Red Hat
olm.skipRange:
labels:
operatorframework.io/arch.amd64: supported
operatorframework.io/arch.ppc64le: supported
operatorframework.io/arch.s390x: supported
operatorframework.io/arch.arm64: supported
name:
namespace: placeholder
spec:
# User-facing metadata
displayName: Red Hat OpenShift Serverless
description: |-
The Red Hat OpenShift Serverless operator provides a collection of APIs that
enables containers, microservices and functions to run "serverless".
Serverless applications can scale up and down (to zero) on demand and be triggered by a
number of event sources. OpenShift Serverless integrates with a number of
platform services, such as Monitoring and it is based on the open
source project Knative.
# Prerequisites
Knative Serving (and Knative Eventing respectively) can only be installed into the
`knative-serving` (`knative-eventing`) namespace. These namespaces will be
automatically created when installing the operator.
The components provided with the OpenShift Serverless operator require minimum cluster sizes on
OpenShift Container Platform. For more information, see the documentation on [Getting started
with OpenShift Serverless](https://docs.redhat.com/en/documentation/red_hat_openshift_serverless/__VERSION_MAJOR_MINOR__/html/serving/getting-started-with-knative-serving#serverless-applications).
# Supported Features
- **Easy to get started:** Provides a simplified developer experience to deploy
and run cloud native applications on Kubernetes, providing powerful
abstractions.
- **Immutable Revisions:** Deploy new features performing canary, A/B or
blue-green testing with gradual traffic rollout following best practices.
- **Use any programming language or runtime of choice:** From Java, Python, Go
and JavaScript to Quarkus, SpringBoot or Node.js.
- **Automatic scaling:** Removes the requirement to configure numbers of replicas
or idling behavior. Applications automatically scale to zero when not in use,
or scale up to meet demand, with built in reliability and fault tolerance.
- **Event Driven Applications:** You can build loosely coupled, distributed applications
that can be connected to a variety of either built in or third party event sources,
powered by operators.
- **Ready for the hybrid cloud:** Provides true, portable serverless functionality,
that can run anywhere OpenShift Container Platform runs. You can leverage data
locality and SaaS as you need it.
# Components & APIs
This operator provides the following components:
## Knative Serving
Knative Serving builds on Kubernetes to support deploying and serving of applications and functions as serverless containers.
Serving simplifies the application deployment, dynamically scales based on in incoming traffic and supports custom rollout strategies with traffic splitting.
Other features include:
- Simplified deployment of serverless containers
- Traffic-based auto-scaling, including scale-to-zero
- Routing and network programming
- Point-in-time application snapshots and their configurations
## Knative Eventing
Knative Eventing provides a platform that offers composable primitives to enable late-binding event sources and
event consumers.
Knative Eventing supports the following architectural cloud-native concepts:
- Services are loosely coupled during development and deployed independently to production
- A producer can generate events before a consumer is listening, and a consumer can express an interest in an event or class of events that are not yet being produced.
- Services can be connected to create new applications without modifying producer or consumer, and with the ability to select a specific subset of events from a particular producer.
## Knative Functions
Knative Functions allows developers to write functions that let them focus on business logic.
These functions are deployed as Knative Services and take advantage of Knative Serving and Eventing.
Knative Functions bring greater efficiency, more scalability and faster development to facilitate rapid go-to-market.
Other features include:
- Build strategies including Source-to-Image (S2I) and Buildpacks
- Multiple runtimes, including Node.js, Quarkus and Go
- Local developer experience through the kn CLI
- Project templates
- Support for receiving CloudEvents and plain HTTP requests
## Knative CLI `kn`
The Knative client `kn` allows you to create Knative resources from the command line or from within
Shell scripts.
With its extensive help pages and autocompletion support, it frees you from memorizing the detailed structure of the Knative resource schemas.
`kn` offers you:
- Full support for managing all features of Knative Serving: Services, Revisions and Routes
- Support for managing Knative Eventing entities: Sources, Brokers, Triggers, Channels and Subscriptions
- A kubectl-like plugin architecture to extend the built-in functionality
- Easy integration of Knative into Tekton pipelines by using `kn` in a Tekton task
- Create, build and deploy Knative Functions for multiple runtimes, including Node.js, Quarkus, and Go
# Further Information
For documentation on OpenShift Serverless, see:
- [Installation
Guide](https://docs.redhat.com/en/documentation/red_hat_openshift_serverless/__VERSION_MAJOR_MINOR__/html/installing_openshift_serverless/index)
- [Develop Serverless Applications](https://docs.redhat.com/en/documentation/red_hat_openshift_serverless/__VERSION_MAJOR_MINOR__/html/serving/getting-started-with-knative-serving#serverless-applications)
icon:
- base64data: PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzOCIgaGVpZ2h0PSIzOCIgdmlld0JveD0iMCAwIDM4IDM4Ij48ZGVmcz48c3R5bGU+LmF7ZmlsbDojZmZmO30uYntmaWxsOiNlMDA7fTwvc3R5bGU+PC9kZWZzPjxwYXRoIGNsYXNzPSJhIiBkPSJNMjgsMUgxMGE5LDksMCwwLDAtOSw5VjI4YTksOSwwLDAsMCw5LDlIMjhhOSw5LDAsMCwwLDktOVYxMGE5LDksMCwwLDAtOS05WiIvPjxwYXRoIGQ9Ik0yOCwyLjI1QTcuNzU4Nyw3Ljc1ODcsMCwwLDEsMzUuNzUsMTBWMjhBNy43NTg3LDcuNzU4NywwLDAsMSwyOCwzNS43NUgxMEE3Ljc1ODcsNy43NTg3LDAsMCwxLDIuMjUsMjhWMTBBNy43NTg3LDcuNzU4NywwLDAsMSwxMCwyLjI1SDI4TTI4LDFIMTBhOSw5LDAsMCwwLTksOVYyOGE5LDksMCwwLDAsOSw5SDI4YTksOSwwLDAsMCw5LTlWMTBhOSw5LDAsMCwwLTktOVoiLz48cGF0aCBjbGFzcz0iYiIgZD0iTTE0LDIzLjQ3NjZIMTBhLjYyNTMuNjI1MywwLDAsMS0uNjI1LS42MjV2LTRhLjYyNTIuNjI1MiwwLDAsMSwuNjI1LS42MjVoNGEuNjI1Mi42MjUyLDAsMCwxLC42MjUuNjI1djRBLjYyNTMuNjI1MywwLDAsMSwxNCwyMy40NzY2Wm0tMy4zNzUtMS4yNWgyLjc1di0yLjc1aC0yLjc1WiIvPjxwYXRoIGNsYXNzPSJiIiBkPSJNMjEsMjMuNDc2NkgxN2EuNjI1My42MjUzLDAsMCwxLS42MjUtLjYyNXYtNGEuNjI1Mi42MjUyLDAsMCwxLC42MjUtLjYyNWg0YS42MjUyLjYyNTIsMCwwLDEsLjYyNS42MjV2NEEuNjI1My42MjUzLDAsMCwxLDIxLDIzLjQ3NjZabS0zLjM3NS0xLjI1aDIuNzV2LTIuNzVoLTIuNzVaIi8+PHBhdGggY2xhc3M9ImIiIGQ9Ik0xNy41LDE2LjQ3NjZoLTRhLjYyNTMuNjI1MywwLDAsMS0uNjI1LS42MjV2LTRhLjYyNTIuNjI1MiwwLDAsMSwuNjI1LS42MjVoNGEuNjI1Mi42MjUyLDAsMCwxLC42MjUuNjI1djRBLjYyNTMuNjI1MywwLDAsMSwxNy41LDE2LjQ3NjZabS0zLjM3NS0xLjI1aDIuNzV2LTIuNzVoLTIuNzVaIi8+PHBhdGggY2xhc3M9ImIiIGQ9Ik0yNC41LDE2LjQ3NjZoLTRhLjYyNTMuNjI1MywwLDAsMS0uNjI1LS42MjV2LTRhLjYyNTIuNjI1MiwwLDAsMSwuNjI1LS42MjVoNGEuNjI1Mi42MjUyLDAsMCwxLC42MjUuNjI1djRBLjYyNTMuNjI1MywwLDAsMSwyNC41LDE2LjQ3NjZabS0zLjM3NS0xLjI1aDIuNzV2LTIuNzVoLTIuNzVaIi8+PHBhdGggY2xhc3M9ImIiIGQ9Ik0yOCwyMy40NzY2SDI0YS42MjUzLjYyNTMsMCwwLDEtLjYyNS0uNjI1di00YS42MjUyLjYyNTIsMCwwLDEsLjYyNS0uNjI1aDRhLjYyNTIuNjI1MiwwLDAsMSwuNjI1LjYyNXY0QS42MjUzLjYyNTMsMCwwLDEsMjgsMjMuNDc2NlptLTMuMzc1LTEuMjVoMi43NXYtMi43NWgtMi43NVoiLz48cGF0aCBkPSJNMjksMjYuNDc2Nkg5YS42MjUuNjI1LDAsMCwxLDAtMS4yNUgyOWEuNjI1LjYyNSwwLDAsMSwwLDEuMjVaIi8+PC9zdmc+
mediatype: image/svg+xml
installModes:
- supported: false
type: OwnNamespace
- supported: false
type: SingleNamespace
- supported: false
type: MultiNamespace
- supported: true
type: AllNamespaces
keywords:
- serverless
- FaaS
- microservices
- scale to zero
- knative
- serving
- eventing
- kafka
links:
- name: Documentation
url: https://docs.redhat.com/en/documentation/red_hat_openshift_serverless/__VERSION_MAJOR_MINOR__/html/installing_openshift_serverless/index
- name: Source Repository
url: https://github.com/openshift-knative/serverless-operator
maintainers:
- email: [email protected]
name: Serverless Team
maturity: stable
provider:
name: Red Hat
minKubeVersion:
customresourcedefinitions:
owned:
- description: A platform for streamlined application deployment, traffic-based auto-scaling from zero to N, and traffic-split rollouts
displayName: Knative Serving
kind: KnativeServing
name: knativeservings.operator.knative.dev
statusDescriptors:
- description: The version of Knative Serving installed
displayName: Version
path: version
- description: Conditions of Knative Serving installed
displayName: Conditions
path: conditions
x-descriptors:
- "urn:alm:descriptor:io.kubernetes.conditions"
version: v1beta1
- description: An event-driven application platform that leverages CloudEvents with a simple HTTP interface
displayName: Knative Eventing
kind: KnativeEventing
name: knativeeventings.operator.knative.dev
statusDescriptors:
- description: The version of Knative Eventing installed
displayName: Version
path: version
version: v1beta1
- description: An extension to Knative Eventing, merging HTTP accessibility with Apache Kafka's proven efficiency and reliability
displayName: Knative Kafka
kind: KnativeKafka
name: knativekafkas.operator.serverless.openshift.io
version: v1alpha1
install:
strategy: deployment
spec:
clusterPermissions:
- serviceAccountName: knative-openshift
rules:
- apiGroups:
- sources.knative.dev
resources:
- kafkasources
- kafkasinks
verbs:
- get
- list
- watch
- apiGroups:
- ""
resources:
- configmaps
- events
- namespaces
- serviceaccounts
- services
- secrets
- endpoints
- pods
verbs:
- create
- delete
- get
- list
- update
- watch
- apiGroups:
- apps
resources:
- deployments
- deployments/finalizers # For monitoring resources to set their ownerRef correctly
- statefulsets
- statefulsets/finalizers # For monitoring resources to set their ownerRef correctly
verbs:
- create
- delete
- get
- list
- update
- watch
- apiGroups:
- autoscaling
resources:
- horizontalpodautoscalers
verbs:
- create
- delete
- get
- list
- apiGroups:
- batch
resources:
- jobs
verbs:
- create
- delete
- get
- list
- watch
- update
- apiGroups:
- policy
resources:
- poddisruptionbudgets
verbs:
- create
- delete
- get
- list
- update
- apiGroups:
- rbac.authorization.k8s.io
resources:
- clusterroles
- roles
verbs:
- create
- delete
- get
- list
- update
- watch
# Escalate is necessary in order to create a role using cluster role aggregation,
# and to allow the Operator to bootstrap itself into the necessary set of permissions
# Bind is needed to bind roles and clusterRoles, with permissions
# that the operator itself does not hold
- escalate
- bind
- apiGroups:
- rbac.authorization.k8s.io
resources:
- clusterrolebindings
- rolebindings
verbs:
- create
- delete
- get
- list
- update
- watch
- apiGroups:
- admissionregistration.k8s.io
resources:
- mutatingwebhookconfigurations
- validatingwebhookconfigurations
verbs:
- create
- delete
- get
- list
- update
- watch
- apiGroups:
- networking.k8s.io
resources:
- networkpolicies
verbs:
- create
- delete
- get
- list
- update
- watch
- apiGroups:
- apiextensions.k8s.io
resources:
- customresourcedefinitions
- customresourcedefinitions/status
verbs:
- create
- delete
- get
- list
- update
- watch
- apiGroups:
- caching.internal.knative.dev
resources:
- images
verbs:
- create
- delete
- get
- list
- update
# Downstream additions
- apiGroups:
- monitoring.coreos.com
resources:
- servicemonitors
verbs:
- create
- delete
- get
- list
- update
- watch
- apiGroups:
- console.openshift.io
resources:
- consolequickstarts
- consoleclidownloads
verbs:
- create
- delete
- get
- list
- update
- watch
- apiGroups:
- config.openshift.io
resources:
- clusteroperators
- clusteroperators/status
verbs:
- "get"
- "watch"
- "list"
- apiGroups:
- route.openshift.io
resources:
- routes
- routes/custom-host
verbs:
- create
- delete
- get
- list
- update
- watch
# Leases are needed for leaderelection to work
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- create
- delete
- get
- list
- update
- watch
# These are resources we own
- apiGroups:
- operator.knative.dev
resources:
- knativeservings
- knativeservings/status
- knativeservings/finalizers
- knativeeventings
- knativeeventings/status
- knativeeventings/finalizers
verbs:
- create
- delete
- get
- list
- update
- watch
- patch
- apiGroups:
- operator.serverless.openshift.io
resources:
- knativekafkas
- knativekafkas/status
- knativekafkas/finalizers
verbs:
- create
- delete
- get
- list
- update
- watch
- patch
# These resources we only read
- apiGroups:
- config.openshift.io
resources:
- ingresses
verbs:
- get
- list
- watch
# Eventing TLS
- apiGroups:
- "cert-manager.io"
resources:
- certificates
- issuers
- clusterissuers
verbs:
- create
- delete
- update
- list
- get
- watch
- serviceAccountName: knative-operator
rules:
# These are needed to create the various different resources.
# Upstream manifests
- apiGroups:
- ""
resources:
- configmaps
- namespaces
- secrets
- serviceaccounts
- services
verbs:
- create
- delete
- get
- list
- update
- watch
- apiGroups:
- ""
resources:
- events
verbs:
- create
- delete
- get
- list
- update
- watch
- patch
- apiGroups:
- apps
resources:
- deployments
- deployments/finalizers # For monitoring resources to set their ownerRef correctly
- statefulsets
- statefulsets/finalizers # For monitoring resources to set their ownerRef correctly
verbs:
- create
- delete
- get
- list
- update
- watch
- apiGroups:
- autoscaling
resources:
- horizontalpodautoscalers
verbs:
- create
- delete
- get
- list
- update
- apiGroups:
- batch
resources:
- jobs
verbs:
- create
- delete
- get
- list
- watch
- update
- apiGroups:
- policy
resources:
- poddisruptionbudgets
verbs:
- create
- delete
- get
- list
- update
- apiGroups:
- rbac.authorization.k8s.io
resources:
- clusterroles
- roles
verbs:
- create
- delete
- get
- list
- update
- watch
# Escalate is necessary in order to create a role using cluster role aggregation,
# and to allow the Operator to bootstrap itself into the necessary set of permissions
# Bind is needed to bind roles and clusterRoles, with permissions
# that the operator itself does not hold
- escalate
- bind
- apiGroups:
- rbac.authorization.k8s.io
resources:
- clusterrolebindings
- rolebindings
verbs:
- create
- delete
- get
- list
- update
- watch
- apiGroups:
- admissionregistration.k8s.io
resources:
- mutatingwebhookconfigurations
- validatingwebhookconfigurations
verbs:
- create
- delete
- get
- list
- update
- watch
- apiGroups:
- networking.k8s.io
resources:
- networkpolicies
verbs:
- create
- delete
- get
- list
- update
- watch
- apiGroups:
- apiextensions.k8s.io
resources:
- customresourcedefinitions
- customresourcedefinitions/status
verbs:
- create
- delete
- get
- list
- update
- watch
- apiGroups:
- caching.internal.knative.dev
resources:
- images
verbs:
- create
- delete
- get
- list
- update
# Downstream additions
- apiGroups:
- monitoring.coreos.com
resources:
- servicemonitors
verbs:
- create
- delete
- get
- list
- update
- watch
- apiGroups:
- console.openshift.io
resources:
- consolequickstarts
- consoleclidownloads
verbs:
- create
- delete
- get
- list
- update
- watch
- apiGroups:
- config.openshift.io
resources:
- clusteroperators
- clusteroperators/status
verbs:
- get
- watch
- list
- apiGroups:
- route.openshift.io
resources:
- routes
- routes/custom-host
verbs:
- create
- delete
- get
- list
- update
- watch
# Leases are needed for leaderelection to work
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- create
- delete
- get
- list
- update
- watch
# These are resources we own
- apiGroups:
- operator.knative.dev
resources:
- knativeservings
- knativeservings/status
- knativeservings/finalizers
- knativeeventings
- knativeeventings/status
- knativeeventings/finalizers
verbs:
- create
- delete
- get
- list
- update
- watch
- patch
- apiGroups:
- operator.serverless.openshift.io
resources:
- knativekafkas
- knativekafkas/status
- knativekafkas/finalizers
verbs:
- create
- delete
- get
- list
- update
- watch
- patch
# These resources we only read
- apiGroups:
- config.openshift.io
resources:
- ingresses
verbs:
- get
- list
- watch
# Eventing TLS
- apiGroups:
- "cert-manager.io"
resources:
- certificates
- issuers
- clusterissuers
verbs:
- create
- delete
- update
- list
- get
- watch
- apiGroups:
- networking.internal.knative.dev
resources:
- certificates
verbs:
- create
- delete
- update
- get
- list
- watch
- serviceAccountName: knative-openshift-ingress
rules:
- apiGroups:
- ""
resources:
- events
verbs:
- create
- delete
- get
- list
- apiGroups:
- ""
resources:
- configmaps
verbs:
- get
- list
- watch
- apiGroups:
- networking.internal.knative.dev
resources:
- ingresses
- ingresses/finalizers
verbs:
- get
- list
- watch
- patch # for the finalizer
- apiGroups:
- route.openshift.io
resources:
- routes
- routes/custom-host
verbs:
- create
- delete
- get
- list
- update
- watch
deployments:
# Our version of the upstream operator. This is responsible for installing Knative
# itself.
- name: knative-operator-webhook
spec:
replicas: 1
selector:
matchLabels:
name: knative-operator
serverless.openshift.io/is: webhook
template:
metadata:
labels:
name: knative-operator
serverless.openshift.io/is: webhook
sidecar.istio.io/inject: "false"
spec:
serviceAccountName: knative-operator
containers:
- name: knative-operator
image:
readinessProbe:
periodSeconds: 1
httpGet:
scheme: HTTPS
port: 8443
httpHeaders:
- name: k-kubelet-probe
value: "webhook"
livenessProbe:
periodSeconds: 1
httpGet:
scheme: HTTPS
port: 8443
httpHeaders:
- name: k-kubelet-probe
value: "webhook"
failureThreshold: 6
initialDelaySeconds: 20
imagePullPolicy: Always
ports:
- containerPort: 9090
name: metrics
- containerPort: 8443
name: https-webhook
env:
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: OPERATOR_NAME
value: knative-operator
- name: SYSTEM_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: METRICS_DOMAIN
value: knative.dev/serving-operator
- name: REQUIRED_SERVING_NAMESPACE
value: "knative-serving"
- name: REQUIRED_SERVING_INGRESS_NAMESPACE
value: "knative-serving-ingress"
- name: REQUIRED_EVENTING_NAMESPACE
value: "knative-eventing"
- name: SERVICE_MONITOR_RBAC_MANIFEST_PATH
value: "/var/run/ko/monitoring/rbac-proxy.yaml"
- name: WEBHOOK_NAME
value: "knative-operator-service"
- name: USE_OLM_TLS
value: "true"
- name: KUBERNETES_MIN_VERSION
value: "v1.0.0"
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
runAsNonRoot: true
capabilities:
drop:
- ALL
# Openshift specific extensions in the "old" operator format. Ships KnativeKafka and
# other Openshift specifica that have not yet been moved to the operator above.
- name: knative-openshift
spec:
replicas: 1
selector:
matchLabels:
name: knative-openshift
template:
metadata:
labels:
name: knative-openshift
spec:
serviceAccountName: knative-openshift
initContainers:
- name: cli-artifacts
image: TO_BE_REPLACED
imagePullPolicy: Always
command:
[
"sh",
"-c",
"rm -rf /cli-artifacts/* && cp /usr/share/kn/**/* /cli-artifacts && chmod 444 /cli-artifacts/*",
]
volumeMounts:
- mountPath: /cli-artifacts
name: cli-artifacts
securityContext:
allowPrivilegeEscalation: false
runAsNonRoot: true
capabilities:
drop:
- ALL
containers:
- name: knative-openshift
image:
imagePullPolicy: Always
readinessProbe:
httpGet:
path: /readyz
port: 8687
livenessProbe:
httpGet:
path: /healthz
port: 8687
ports:
- name: http-cli
containerPort: 8080
volumeMounts:
- mountPath: /cli-artifacts
name: cli-artifacts
env:
- name: WATCH_NAMESPACE
value: ""
- name: NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: DEPLOYMENT_NAME
value: "knative-openshift"
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: OPERATOR_NAME
value: "knative-openshift"
- name: REQUIRED_SERVING_NAMESPACE
value: "knative-serving"
- name: REQUIRED_SERVING_INGRESS_NAMESPACE
value: "knative-serving-ingress"
- name: REQUIRED_EVENTING_NAMESPACE
value: "knative-eventing"
- name: REQUIRED_KAFKA_NAMESPACE
value: "knative-eventing"
- name: KAFKACHANNEL_MANIFEST_PATH
value: deploy/resources/knativekafka/channel
- name: KAFKASOURCE_MANIFEST_PATH
value: deploy/resources/knativekafka/source
- name: KAFKACONTROLLER_MANIFEST_PATH
value: deploy/resources/knativekafka/controller
- name: KAFKABROKER_MANIFEST_PATH
value: deploy/resources/knativekafka/broker
- name: KAFKASINK_MANIFEST_PATH
value: deploy/resources/knativekafka/sink
- name: QUICKSTART_MANIFEST_PATH
value: "deploy/resources/quickstart/serverless-application-quickstart.yaml"
- name: DASHBOARDS_ROOT_MANIFEST_PATH
value: "deploy/resources/dashboards"
- name: SOURCES_USE_CLUSTER_MONITORING
value: "true"
- name: SOURCES_GENERATE_SERVICE_MONITORS
value: "true"
- name: ENABLE_PPROF
value: "false"
- name: KUBERNETES_MIN_VERSION
value: "v1.0.0"
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
runAsNonRoot: true
capabilities: