/
bindata.go
1511 lines (1388 loc) · 44.6 KB
/
bindata.go
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
// Code generated for package generated by go-bindata DO NOT EDIT. (@generated)
// sources:
// assets/controller.yaml
// assets/controller_pdb.yaml
// assets/controller_sa.yaml
// assets/csidriver.yaml
// assets/node.yaml
// assets/node_sa.yaml
// assets/rbac/attacher_binding.yaml
// assets/rbac/attacher_role.yaml
// assets/rbac/controller_privileged_binding.yaml
// assets/rbac/kube_rbac_proxy_binding.yaml
// assets/rbac/kube_rbac_proxy_role.yaml
// assets/rbac/node_privileged_binding.yaml
// assets/rbac/privileged_role.yaml
// assets/rbac/prometheus_role.yaml
// assets/rbac/prometheus_rolebinding.yaml
// assets/rbac/provisioner_binding.yaml
// assets/rbac/provisioner_role.yaml
// assets/rbac/resizer_binding.yaml
// assets/rbac/resizer_role.yaml
// assets/rbac/snapshotter_binding.yaml
// assets/rbac/snapshotter_role.yaml
// assets/service.yaml
// assets/servicemonitor.yaml
// assets/storageclass.yaml
// assets/volumesnapshotclass.yaml
package generated
import (
"fmt"
"io/ioutil"
"os"
"path/filepath"
"strings"
"time"
)
type asset struct {
bytes []byte
info os.FileInfo
}
type bindataFileInfo struct {
name string
size int64
mode os.FileMode
modTime time.Time
}
// Name return file name
func (fi bindataFileInfo) Name() string {
return fi.name
}
// Size return file size
func (fi bindataFileInfo) Size() int64 {
return fi.size
}
// Mode return file mode
func (fi bindataFileInfo) Mode() os.FileMode {
return fi.mode
}
// Mode return file modify time
func (fi bindataFileInfo) ModTime() time.Time {
return fi.modTime
}
// IsDir return file whether a directory
func (fi bindataFileInfo) IsDir() bool {
return fi.mode&os.ModeDir != 0
}
// Sys return file is sys mode
func (fi bindataFileInfo) Sys() interface{} {
return nil
}
var _controllerYaml = []byte(`kind: Deployment
apiVersion: apps/v1
metadata:
name: aws-ebs-csi-driver-controller
namespace: openshift-cluster-csi-drivers
annotations:
config.openshift.io/inject-proxy: csi-driver
spec:
selector:
matchLabels:
app: aws-ebs-csi-driver-controller
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 1
maxSurge: 0
template:
metadata:
labels:
app: aws-ebs-csi-driver-controller
spec:
hostNetwork: true
serviceAccount: aws-ebs-csi-driver-controller-sa
priorityClassName: system-cluster-critical
nodeSelector:
node-role.kubernetes.io/master: ""
tolerations:
- key: CriticalAddonsOnly
operator: Exists
- key: node-role.kubernetes.io/master
operator: Exists
effect: "NoSchedule"
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchLabels:
app: aws-ebs-csi-driver-controller
topologyKey: kubernetes.io/hostname
containers:
# CSI driver container
- name: csi-driver
image: ${DRIVER_IMAGE}
imagePullPolicy: IfNotPresent
args:
- --endpoint=$(CSI_ENDPOINT)
- --k8s-tag-cluster-id=${CLUSTER_ID}
- --logtostderr
- --http-endpoint=localhost:8206
- --v=${LOG_LEVEL}
env:
- name: CSI_ENDPOINT
value: unix:///var/lib/csi/sockets/pluginproxy/csi.sock
- name: AWS_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
name: ebs-cloud-credentials
key: aws_access_key_id
optional: true
- name: AWS_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
name: ebs-cloud-credentials
key: aws_secret_access_key
optional: true
- name: AWS_SDK_LOAD_CONFIG
value: '1'
- name: AWS_CONFIG_FILE
value: /var/run/secrets/aws/credentials
ports:
- name: healthz
# Due to hostNetwork, this port is open on a node!
containerPort: 10301
protocol: TCP
volumeMounts:
- name: aws-credentials
mountPath: /var/run/secrets/aws
readOnly: true
- name: bound-sa-token
mountPath: /var/run/secrets/openshift/serviceaccount
readOnly: true
- name: socket-dir
mountPath: /var/lib/csi/sockets/pluginproxy/
resources:
requests:
memory: 50Mi
cpu: 10m
# kube-rbac-proxy for csi-driver container.
# Provides https proxy for http-based csi-driver metrics.
- name: driver-kube-rbac-proxy
args:
- --secure-listen-address=0.0.0.0:9206
- --upstream=http://127.0.0.1:8206/
- --tls-cert-file=/etc/tls/private/tls.crt
- --tls-private-key-file=/etc/tls/private/tls.key
- --logtostderr=true
image: ${KUBE_RBAC_PROXY_IMAGE}
imagePullPolicy: IfNotPresent
ports:
- containerPort: 9206
name: driver-m
protocol: TCP
resources:
requests:
memory: 20Mi
cpu: 10m
volumeMounts:
- mountPath: /etc/tls/private
name: metrics-serving-cert
# external-provisioner container
- name: csi-provisioner
image: ${PROVISIONER_IMAGE}
imagePullPolicy: IfNotPresent
args:
- --csi-address=$(ADDRESS)
- --default-fstype=ext4
- --feature-gates=Topology=true
- --extra-create-metadata=true
- --http-endpoint=localhost:8202
- --leader-election
- --v=${LOG_LEVEL}
env:
- name: ADDRESS
value: /var/lib/csi/sockets/pluginproxy/csi.sock
volumeMounts:
- name: socket-dir
mountPath: /var/lib/csi/sockets/pluginproxy/
resources:
requests:
memory: 50Mi
cpu: 10m
# kube-rbac-proxy for external-provisioner container.
# Provides https proxy for http-based external-provisioner metrics.
- name: provisioner-kube-rbac-proxy
args:
- --secure-listen-address=0.0.0.0:9202
- --upstream=http://127.0.0.1:8202/
- --tls-cert-file=/etc/tls/private/tls.crt
- --tls-private-key-file=/etc/tls/private/tls.key
- --logtostderr=true
image: ${KUBE_RBAC_PROXY_IMAGE}
imagePullPolicy: IfNotPresent
ports:
- containerPort: 9202
name: provisioner-m
protocol: TCP
resources:
requests:
memory: 20Mi
cpu: 10m
volumeMounts:
- mountPath: /etc/tls/private
name: metrics-serving-cert
# external-attacher container
- name: csi-attacher
image: ${ATTACHER_IMAGE}
imagePullPolicy: IfNotPresent
args:
- --csi-address=$(ADDRESS)
- --http-endpoint=localhost:8203
- --leader-election
- --v=${LOG_LEVEL}
env:
- name: ADDRESS
value: /var/lib/csi/sockets/pluginproxy/csi.sock
volumeMounts:
- name: socket-dir
mountPath: /var/lib/csi/sockets/pluginproxy/
resources:
requests:
memory: 50Mi
cpu: 10m
- name: attacher-kube-rbac-proxy
args:
- --secure-listen-address=0.0.0.0:9203
- --upstream=http://127.0.0.1:8203/
- --tls-cert-file=/etc/tls/private/tls.crt
- --tls-private-key-file=/etc/tls/private/tls.key
- --logtostderr=true
image: ${KUBE_RBAC_PROXY_IMAGE}
imagePullPolicy: IfNotPresent
ports:
- containerPort: 9203
name: attacher-m
protocol: TCP
resources:
requests:
memory: 20Mi
cpu: 10m
volumeMounts:
- mountPath: /etc/tls/private
name: metrics-serving-cert
# external-resizer container
- name: csi-resizer
image: ${RESIZER_IMAGE}
imagePullPolicy: IfNotPresent
args:
- --csi-address=$(ADDRESS)
- --timeout=300s
- --http-endpoint=localhost:8204
- --leader-election
- --v=${LOG_LEVEL}
env:
- name: ADDRESS
value: /var/lib/csi/sockets/pluginproxy/csi.sock
volumeMounts:
- name: socket-dir
mountPath: /var/lib/csi/sockets/pluginproxy/
resources:
requests:
memory: 50Mi
cpu: 10m
- name: resizer-kube-rbac-proxy
args:
- --secure-listen-address=0.0.0.0:9204
- --upstream=http://127.0.0.1:8204/
- --tls-cert-file=/etc/tls/private/tls.crt
- --tls-private-key-file=/etc/tls/private/tls.key
- --logtostderr=true
image: ${KUBE_RBAC_PROXY_IMAGE}
imagePullPolicy: IfNotPresent
ports:
- containerPort: 9204
name: resizer-m
protocol: TCP
resources:
requests:
memory: 20Mi
cpu: 10m
volumeMounts:
- mountPath: /etc/tls/private
name: metrics-serving-cert
# external-snapshotter container
- name: csi-snapshotter
image: ${SNAPSHOTTER_IMAGE}
imagePullPolicy: IfNotPresent
args:
- --csi-address=$(ADDRESS)
- --metrics-address=localhost:8205
- --leader-election
- --v=${LOG_LEVEL}
env:
- name: ADDRESS
value: /var/lib/csi/sockets/pluginproxy/csi.sock
volumeMounts:
- mountPath: /var/lib/csi/sockets/pluginproxy/
name: socket-dir
resources:
requests:
memory: 50Mi
cpu: 10m
- name: snapshotter-kube-rbac-proxy
args:
- --secure-listen-address=0.0.0.0:9205
- --upstream=http://127.0.0.1:8205/
- --tls-cert-file=/etc/tls/private/tls.crt
- --tls-private-key-file=/etc/tls/private/tls.key
- --logtostderr=true
image: ${KUBE_RBAC_PROXY_IMAGE}
imagePullPolicy: IfNotPresent
ports:
- containerPort: 9205
name: snapshotter-m
protocol: TCP
resources:
requests:
memory: 20Mi
cpu: 10m
volumeMounts:
- mountPath: /etc/tls/private
name: metrics-serving-cert
- name: csi-liveness-probe
image: ${LIVENESS_PROBE_IMAGE}
imagePullPolicy: IfNotPresent
args:
- --csi-address=/csi/csi.sock
- --probe-timeout=3s
- --health-port=10301
volumeMounts:
- name: socket-dir
mountPath: /csi
resources:
requests:
memory: 50Mi
cpu: 10m
volumes:
- name: aws-credentials
secret:
secretName: ebs-cloud-credentials
# This service account token can be used to provide identity outside the cluster.
# For example, this token can be used with AssumeRoleWithWebIdentity to authenticate with AWS using IAM OIDC provider and STS.
- name: bound-sa-token
projected:
sources:
- serviceAccountToken:
path: token
audience: openshift
- name: socket-dir
emptyDir: {}
- name: metrics-serving-cert
secret:
secretName: aws-ebs-csi-driver-controller-metrics-serving-cert
`)
func controllerYamlBytes() ([]byte, error) {
return _controllerYaml, nil
}
func controllerYaml() (*asset, error) {
bytes, err := controllerYamlBytes()
if err != nil {
return nil, err
}
info := bindataFileInfo{name: "controller.yaml", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
var _controller_pdbYaml = []byte(`apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: aws-ebs-csi-driver-controller-pdb
namespace: openshift-cluster-csi-drivers
spec:
maxUnavailable: 1
selector:
matchLabels:
app: aws-ebs-csi-driver-controller
`)
func controller_pdbYamlBytes() ([]byte, error) {
return _controller_pdbYaml, nil
}
func controller_pdbYaml() (*asset, error) {
bytes, err := controller_pdbYamlBytes()
if err != nil {
return nil, err
}
info := bindataFileInfo{name: "controller_pdb.yaml", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
var _controller_saYaml = []byte(`apiVersion: v1
kind: ServiceAccount
metadata:
name: aws-ebs-csi-driver-controller-sa
namespace: openshift-cluster-csi-drivers
`)
func controller_saYamlBytes() ([]byte, error) {
return _controller_saYaml, nil
}
func controller_saYaml() (*asset, error) {
bytes, err := controller_saYamlBytes()
if err != nil {
return nil, err
}
info := bindataFileInfo{name: "controller_sa.yaml", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
var _csidriverYaml = []byte(`apiVersion: storage.k8s.io/v1
kind: CSIDriver
metadata:
name: ebs.csi.aws.com
annotations:
# This CSIDriver is managed by an OCP CSI operator
csi.openshift.io/managed: "true"
spec:
attachRequired: true
podInfoOnMount: false
`)
func csidriverYamlBytes() ([]byte, error) {
return _csidriverYaml, nil
}
func csidriverYaml() (*asset, error) {
bytes, err := csidriverYamlBytes()
if err != nil {
return nil, err
}
info := bindataFileInfo{name: "csidriver.yaml", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
var _nodeYaml = []byte(`kind: DaemonSet
apiVersion: apps/v1
metadata:
name: aws-ebs-csi-driver-node
namespace: openshift-cluster-csi-drivers
annotations:
config.openshift.io/inject-proxy: csi-driver
spec:
selector:
matchLabels:
app: aws-ebs-csi-driver-node
updateStrategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 10%
template:
metadata:
labels:
app: aws-ebs-csi-driver-node
spec:
hostNetwork: true
serviceAccount: aws-ebs-csi-driver-node-sa
priorityClassName: system-node-critical
tolerations:
- operator: Exists
nodeSelector:
kubernetes.io/os: linux
containers:
- name: csi-driver
securityContext:
privileged: true
image: ${DRIVER_IMAGE}
imagePullPolicy: IfNotPresent
args:
- --endpoint=$(CSI_ENDPOINT)
- --logtostderr
- --v=${LOG_LEVEL}
env:
- name: CSI_ENDPOINT
value: unix:/csi/csi.sock
volumeMounts:
- name: kubelet-dir
mountPath: /var/lib/kubelet
mountPropagation: "Bidirectional"
- name: plugin-dir
mountPath: /csi
- name: device-dir
mountPath: /dev
ports:
- name: healthz
# Due to hostNetwork, this port is open on all nodes!
containerPort: 10300
protocol: TCP
livenessProbe:
httpGet:
path: /healthz
port: healthz
initialDelaySeconds: 10
timeoutSeconds: 3
periodSeconds: 10
failureThreshold: 5
resources:
requests:
memory: 50Mi
cpu: 10m
- name: csi-node-driver-registrar
securityContext:
privileged: true
image: ${NODE_DRIVER_REGISTRAR_IMAGE}
imagePullPolicy: IfNotPresent
args:
- --csi-address=$(ADDRESS)
- --kubelet-registration-path=$(DRIVER_REG_SOCK_PATH)
- --v=${LOG_LEVEL}
lifecycle:
preStop:
exec:
command: ["/bin/sh", "-c", "rm -rf /registration/ebs.csi.aws.com-reg.sock /csi/csi.sock"]
env:
- name: ADDRESS
value: /csi/csi.sock
- name: DRIVER_REG_SOCK_PATH
value: /var/lib/kubelet/plugins/ebs.csi.aws.com/csi.sock
volumeMounts:
- name: plugin-dir
mountPath: /csi
- name: registration-dir
mountPath: /registration
resources:
requests:
memory: 50Mi
cpu: 10m
- name: csi-liveness-probe
image: ${LIVENESS_PROBE_IMAGE}
imagePullPolicy: IfNotPresent
args:
- --csi-address=/csi/csi.sock
- --probe-timeout=3s
- --health-port=10300
volumeMounts:
- name: plugin-dir
mountPath: /csi
resources:
requests:
memory: 50Mi
cpu: 10m
volumes:
- name: kubelet-dir
hostPath:
path: /var/lib/kubelet
type: Directory
- name: plugin-dir
hostPath:
path: /var/lib/kubelet/plugins/ebs.csi.aws.com/
type: DirectoryOrCreate
- name: registration-dir
hostPath:
path: /var/lib/kubelet/plugins_registry/
type: Directory
- name: device-dir
hostPath:
path: /dev
type: Directory
`)
func nodeYamlBytes() ([]byte, error) {
return _nodeYaml, nil
}
func nodeYaml() (*asset, error) {
bytes, err := nodeYamlBytes()
if err != nil {
return nil, err
}
info := bindataFileInfo{name: "node.yaml", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
var _node_saYaml = []byte(`apiVersion: v1
kind: ServiceAccount
metadata:
name: aws-ebs-csi-driver-node-sa
namespace: openshift-cluster-csi-drivers
`)
func node_saYamlBytes() ([]byte, error) {
return _node_saYaml, nil
}
func node_saYaml() (*asset, error) {
bytes, err := node_saYamlBytes()
if err != nil {
return nil, err
}
info := bindataFileInfo{name: "node_sa.yaml", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
var _rbacAttacher_bindingYaml = []byte(`kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: ebs-csi-attacher-binding
subjects:
- kind: ServiceAccount
name: aws-ebs-csi-driver-controller-sa
namespace: openshift-cluster-csi-drivers
roleRef:
kind: ClusterRole
name: ebs-external-attacher-role
apiGroup: rbac.authorization.k8s.io
`)
func rbacAttacher_bindingYamlBytes() ([]byte, error) {
return _rbacAttacher_bindingYaml, nil
}
func rbacAttacher_bindingYaml() (*asset, error) {
bytes, err := rbacAttacher_bindingYamlBytes()
if err != nil {
return nil, err
}
info := bindataFileInfo{name: "rbac/attacher_binding.yaml", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
var _rbacAttacher_roleYaml = []byte(`kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: ebs-external-attacher-role
rules:
- apiGroups: [""]
resources: ["persistentvolumes"]
verbs: ["get", "list", "watch", "update", "patch"]
- apiGroups: [""]
resources: ["nodes"]
verbs: ["get", "list", "watch"]
- apiGroups: ["storage.k8s.io"]
resources: ["csinodes"]
verbs: ["get", "list", "watch"]
- apiGroups: ["storage.k8s.io"]
resources: ["volumeattachments"]
verbs: ["get", "list", "watch", "update", "patch"]
- apiGroups: ["storage.k8s.io"]
resources: ["volumeattachments/status"]
verbs: ["patch"]
`)
func rbacAttacher_roleYamlBytes() ([]byte, error) {
return _rbacAttacher_roleYaml, nil
}
func rbacAttacher_roleYaml() (*asset, error) {
bytes, err := rbacAttacher_roleYamlBytes()
if err != nil {
return nil, err
}
info := bindataFileInfo{name: "rbac/attacher_role.yaml", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
var _rbacController_privileged_bindingYaml = []byte(`kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: ebs-controller-privileged-binding
subjects:
- kind: ServiceAccount
name: aws-ebs-csi-driver-controller-sa
namespace: openshift-cluster-csi-drivers
roleRef:
kind: ClusterRole
name: ebs-privileged-role
apiGroup: rbac.authorization.k8s.io
`)
func rbacController_privileged_bindingYamlBytes() ([]byte, error) {
return _rbacController_privileged_bindingYaml, nil
}
func rbacController_privileged_bindingYaml() (*asset, error) {
bytes, err := rbacController_privileged_bindingYamlBytes()
if err != nil {
return nil, err
}
info := bindataFileInfo{name: "rbac/controller_privileged_binding.yaml", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
var _rbacKube_rbac_proxy_bindingYaml = []byte(`# Allow kube-rbac-proxies to create tokenreviews to check Prometheus identity when scraping metrics.
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: ebs-kube-rbac-proxy-binding
subjects:
- kind: ServiceAccount
name: aws-ebs-csi-driver-controller-sa
namespace: openshift-cluster-csi-drivers
roleRef:
kind: ClusterRole
name: ebs-kube-rbac-proxy-role
apiGroup: rbac.authorization.k8s.io
`)
func rbacKube_rbac_proxy_bindingYamlBytes() ([]byte, error) {
return _rbacKube_rbac_proxy_bindingYaml, nil
}
func rbacKube_rbac_proxy_bindingYaml() (*asset, error) {
bytes, err := rbacKube_rbac_proxy_bindingYamlBytes()
if err != nil {
return nil, err
}
info := bindataFileInfo{name: "rbac/kube_rbac_proxy_binding.yaml", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
var _rbacKube_rbac_proxy_roleYaml = []byte(`# Allow kube-rbac-proxies to create tokenreviews to check Prometheus identity when scraping metrics.
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: ebs-kube-rbac-proxy-role
rules:
- apiGroups:
- "authentication.k8s.io"
resources:
- "tokenreviews"
verbs:
- "create"
`)
func rbacKube_rbac_proxy_roleYamlBytes() ([]byte, error) {
return _rbacKube_rbac_proxy_roleYaml, nil
}
func rbacKube_rbac_proxy_roleYaml() (*asset, error) {
bytes, err := rbacKube_rbac_proxy_roleYamlBytes()
if err != nil {
return nil, err
}
info := bindataFileInfo{name: "rbac/kube_rbac_proxy_role.yaml", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
var _rbacNode_privileged_bindingYaml = []byte(`kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: ebs-node-privileged-binding
subjects:
- kind: ServiceAccount
name: aws-ebs-csi-driver-node-sa
namespace: openshift-cluster-csi-drivers
roleRef:
kind: ClusterRole
name: ebs-privileged-role
apiGroup: rbac.authorization.k8s.io
`)
func rbacNode_privileged_bindingYamlBytes() ([]byte, error) {
return _rbacNode_privileged_bindingYaml, nil
}
func rbacNode_privileged_bindingYaml() (*asset, error) {
bytes, err := rbacNode_privileged_bindingYamlBytes()
if err != nil {
return nil, err
}
info := bindataFileInfo{name: "rbac/node_privileged_binding.yaml", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
var _rbacPrivileged_roleYaml = []byte(`# TODO: create custom SCC with things that the AWS CSI driver needs
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: ebs-privileged-role
rules:
- apiGroups: ["security.openshift.io"]
resourceNames: ["privileged"]
resources: ["securitycontextconstraints"]
verbs: ["use"]
`)
func rbacPrivileged_roleYamlBytes() ([]byte, error) {
return _rbacPrivileged_roleYaml, nil
}
func rbacPrivileged_roleYaml() (*asset, error) {
bytes, err := rbacPrivileged_roleYamlBytes()
if err != nil {
return nil, err
}
info := bindataFileInfo{name: "rbac/privileged_role.yaml", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
var _rbacPrometheus_roleYaml = []byte(`# Role for accessing metrics exposed by the operator
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: aws-ebs-csi-driver-prometheus
namespace: openshift-cluster-csi-drivers
rules:
- apiGroups:
- ""
resources:
- services
- endpoints
- pods
verbs:
- get
- list
- watch
`)
func rbacPrometheus_roleYamlBytes() ([]byte, error) {
return _rbacPrometheus_roleYaml, nil
}
func rbacPrometheus_roleYaml() (*asset, error) {
bytes, err := rbacPrometheus_roleYamlBytes()
if err != nil {
return nil, err
}
info := bindataFileInfo{name: "rbac/prometheus_role.yaml", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
var _rbacPrometheus_rolebindingYaml = []byte(`# Grant cluster-monitoring access to the operator metrics service
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: aws-ebs-csi-driver-prometheus
namespace: openshift-cluster-csi-drivers
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: aws-ebs-csi-driver-prometheus
subjects:
- kind: ServiceAccount
name: prometheus-k8s
namespace: openshift-monitoring
`)
func rbacPrometheus_rolebindingYamlBytes() ([]byte, error) {
return _rbacPrometheus_rolebindingYaml, nil
}
func rbacPrometheus_rolebindingYaml() (*asset, error) {
bytes, err := rbacPrometheus_rolebindingYamlBytes()
if err != nil {
return nil, err
}
info := bindataFileInfo{name: "rbac/prometheus_rolebinding.yaml", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
var _rbacProvisioner_bindingYaml = []byte(`kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: ebs-csi-provisioner-binding
subjects:
- kind: ServiceAccount
name: aws-ebs-csi-driver-controller-sa
namespace: openshift-cluster-csi-drivers
roleRef:
kind: ClusterRole
name: ebs-external-provisioner-role
apiGroup: rbac.authorization.k8s.io
`)
func rbacProvisioner_bindingYamlBytes() ([]byte, error) {
return _rbacProvisioner_bindingYaml, nil
}
func rbacProvisioner_bindingYaml() (*asset, error) {
bytes, err := rbacProvisioner_bindingYamlBytes()
if err != nil {
return nil, err
}
info := bindataFileInfo{name: "rbac/provisioner_binding.yaml", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
var _rbacProvisioner_roleYaml = []byte(`kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: ebs-external-provisioner-role
rules:
- apiGroups: [""]
resources: ["persistentvolumes"]
verbs: ["get", "list", "watch", "create", "delete"]
- apiGroups: [""]
resources: ["persistentvolumeclaims"]
verbs: ["get", "list", "watch", "update"]
- apiGroups: ["storage.k8s.io"]
resources: ["storageclasses"]
verbs: ["get", "list", "watch"]
- apiGroups: [""]
resources: ["events"]
verbs: ["get", "list", "watch", "create", "update", "patch"]
- apiGroups: ["snapshot.storage.k8s.io"]
resources: ["volumesnapshots"]
verbs: ["get", "list"]
- apiGroups: ["snapshot.storage.k8s.io"]
resources: ["volumesnapshotcontents"]
verbs: ["get", "list"]
- apiGroups: ["storage.k8s.io"]
resources: ["csinodes"]
verbs: ["get", "list", "watch"]
- apiGroups: [""]
resources: ["nodes"]
verbs: ["get", "list", "watch"]
`)
func rbacProvisioner_roleYamlBytes() ([]byte, error) {
return _rbacProvisioner_roleYaml, nil
}
func rbacProvisioner_roleYaml() (*asset, error) {
bytes, err := rbacProvisioner_roleYamlBytes()
if err != nil {
return nil, err
}
info := bindataFileInfo{name: "rbac/provisioner_role.yaml", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
var _rbacResizer_bindingYaml = []byte(`kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: ebs-csi-resizer-binding
subjects:
- kind: ServiceAccount
name: aws-ebs-csi-driver-controller-sa
namespace: openshift-cluster-csi-drivers
roleRef: