-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample-resources.yaml
127 lines (127 loc) · 2.3 KB
/
example-resources.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
apiVersion: bfiola.dev/v1
kind: MinioBucket
metadata:
name: bucket
spec:
deletionPolicy: IfEmpty
name: bucket
tenantRef:
namespace: minio-tenant
name: myminio
---
apiVersion: v1
kind: Secret
metadata:
name: builtin-user
stringData:
secretKey: password
---
apiVersion: bfiola.dev/v1
kind: MinioUser
metadata:
name: builtin-user
spec:
accessKey: builtin-user
secretKeyRef:
name: builtin-user
key: secretKey
tenantRef:
namespace: minio-tenant
name: myminio
---
apiVersion: bfiola.dev/v1
kind: MinioGroup
metadata:
name: builtin-group
spec:
name: builtin-group
tenantRef:
namespace: minio-tenant
name: myminio
---
apiVersion: bfiola.dev/v1
kind: MinioGroupBinding
metadata:
name: builtin-user-to-builtin-group
spec:
group: builtin-group
tenantRef:
namespace: minio-tenant
name: myminio
user: builtin-user
---
apiVersion: bfiola.dev/v1
kind: MinioPolicy
metadata:
name: policy
spec:
name: policy
statement:
- effect: "Allow"
action:
- "s3:AbortMultipartUpload"
- "s3:DeleteObject"
- "s3:ListMultipartUploadParts"
- "s3:PutObject"
- "s3:GetObject"
resource:
- "arn:aws:s3:::bucket/*"
- effect: "Allow"
action:
- "s3:GetBucketLocation"
- "s3:ListBucket"
- "s3:ListBucketMultipartUploads"
resource:
- "arn:aws:s3:::bucket"
tenantRef:
namespace: minio-tenant
name: myminio
version: "2012-10-17"
---
apiVersion: bfiola.dev/v1
kind: MinioPolicyBinding
metadata:
name: builtin-user-to-policy
spec:
policy: policy
tenantRef:
namespace: minio-tenant
name: myminio
user:
builtin: builtin-user
---
apiVersion: bfiola.dev/v1
kind: MinioPolicyBinding
metadata:
name: builtin-group-to-policy
spec:
group:
builtin: builtin-group
policy: policy
tenantRef:
namespace: minio-tenant
name: myminio
---
apiVersion: bfiola.dev/v1
kind: MinioPolicyBinding
metadata:
name: ldap-user-to-policy
spec:
policy: policy
tenantRef:
namespace: minio-tenant
name: myminio
user:
ldap: ldap-user1
---
apiVersion: bfiola.dev/v1
kind: MinioPolicyBinding
metadata:
name: ldap-group-to-policy
spec:
group:
ldap: "cn=ldap-group,ou=users,dc=example,dc=org"
policy: policy
tenantRef:
namespace: minio-tenant
name: myminio