This repository was archived by the owner on Aug 22, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +156
-110
lines changed
charts/provider-postgresql Expand file tree Collapse file tree 6 files changed +156
-110
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ type: application
15
15
# This is the chart version. This version number should be incremented each time you make changes
16
16
# to the chart and its templates, including the app version.
17
17
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18
- version : 0.3.1
18
+ version : 0.4.0
19
19
20
20
# This is the version number of the application being deployed. This version number should be
21
21
# incremented each time you make changes to the application. Versions are not expected to
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ webhook_gen_src = ../../package/webhook/manifests.yaml
2
2
webhook_gen_tgt = templates/webhook.yaml
3
3
4
4
rbac_gen_src = ../../package/rbac/role.yaml
5
- rbac_gen_tgt = templates/clusterrole.yaml
5
+ rbac_gen_tgt = templates/operator- clusterrole.yaml
6
6
7
7
ifeq ($(shell uname -s) ,Darwin)
8
8
sed := gsed -i
@@ -27,7 +27,7 @@ $(webhook_gen_tgt):
27
27
28
28
$(rbac_gen_tgt ) :
29
29
@cp $(rbac_gen_src ) $@
30
- @yq -i e ' .metadata.name="{{ include \"provider-postgresql.fullname\" . }}", del(.metadata.creationTimestamp)' $@
30
+ @yq -i e ' .metadata.name="{{ include \"provider-postgresql.fullname\" . }}-manager ", del(.metadata.creationTimestamp)' $@
31
31
@yq -i e ' .metadata.labels.replace="LABELS"' $@
32
32
@$(sed ) -e ' s/replace: LABELS/{{- include "provider-postgresql.labels" . | nindent 4 }}/g' $@
33
33
Original file line number Diff line number Diff line change 1
1
# provider-postgresql
2
2
3
- ![ Version: 0.3.1 ] ( https://img.shields.io/badge/Version-0.3.1 -informational?style=flat-square ) ![ Type: application] ( https://img.shields.io/badge/Type-application-informational?style=flat-square )
3
+ ![ Version: 0.4.0 ] ( https://img.shields.io/badge/Version-0.4.0 -informational?style=flat-square ) ![ Type: application] ( https://img.shields.io/badge/Type-application-informational?style=flat-square )
4
4
5
5
VSHN-opinionated PostgreSQL operator for AppCat
6
6
@@ -11,7 +11,7 @@ helm repo add appcat-service-postgresql https://vshn.github.io/appcat-service-po
11
11
helm install provider-postgresql appcat-service-postgresql/provider-postgresql
12
12
```
13
13
``` bash
14
- kubectl apply -f https://github.com/vshn/appcat-service-postgresql/releases/download/provider-postgresql-0.3.1 /crds.yaml
14
+ kubectl apply -f https://github.com/vshn/appcat-service-postgresql/releases/download/provider-postgresql-0.4.0 /crds.yaml
15
15
```
16
16
17
17
<!-- -
Original file line number Diff line number Diff line change 2
2
apiVersion : rbac.authorization.k8s.io/v1
3
3
kind : ClusterRole
4
4
metadata :
5
- name : ' {{ include "provider-postgresql.fullname" . }}'
5
+ name : ' {{ include "provider-postgresql.fullname" . }}-view '
6
6
labels :
7
7
{{- include "provider-postgresql.labels" . | nindent 4 }}
8
+ rbac.authorization.k8s.io/aggregate-to-view : " true"
8
9
rules :
9
- - apiGroups :
10
- - coordination.k8s.io
11
- resources :
12
- - leases
13
- verbs :
14
- - create
15
- - get
16
- - list
17
- - update
18
- - apiGroups :
19
- - " "
20
- resources :
21
- - namespaces
22
- verbs :
23
- - create
24
- - delete
25
- - get
26
- - list
27
- - patch
28
- - update
29
- - watch
30
- - apiGroups :
31
- - " "
32
- resources :
33
- - persistentvolumeclaims
34
- verbs :
35
- - create
36
- - delete
37
- - get
38
- - list
39
- - patch
40
- - update
41
- - watch
42
- - apiGroups :
43
- - " "
44
- resources :
45
- - secrets
46
- verbs :
47
- - create
48
- - delete
49
- - get
50
- - list
51
- - patch
52
- - update
53
- - watch
54
- - apiGroups :
55
- - " "
56
- resources :
57
- - services
58
- verbs :
59
- - get
60
- - list
61
- - watch
62
- - apiGroups :
63
- - helm.crossplane.io
64
- resources :
65
- - providerconfigs
66
- verbs :
67
- - get
68
- - list
69
- - watch
70
- - apiGroups :
71
- - helm.crossplane.io
72
- resources :
73
- - releases
74
- verbs :
75
- - create
76
- - delete
77
- - get
78
- - list
79
- - patch
80
- - update
81
- - watch
82
- - apiGroups :
83
- - k8up.io
84
- resources :
85
- - schedules
86
- verbs :
87
- - create
88
- - delete
89
- - get
90
- - list
91
- - patch
92
- - update
93
- - watch
94
10
- apiGroups :
95
11
- postgresql.appcat.vshn.io
96
12
resources :
97
- - postgresqlstandaloneoperatorconfigs
13
+ - postgresqlstandalones
98
14
verbs :
99
- - create
100
- - delete
101
15
- get
102
16
- list
103
- - patch
104
- - update
105
17
- watch
106
18
- apiGroups :
107
19
- postgresql.appcat.vshn.io
108
20
resources :
109
- - postgresqlstandaloneoperatorconfigs /finalizers
110
- - postgresqlstandaloneoperatorconfigs /status
21
+ - postgresqlstandalones /finalizers
22
+ - postgresqlstandalones /status
111
23
verbs :
112
24
- get
113
- - patch
114
- - update
25
+ ---
26
+ apiVersion : rbac.authorization.k8s.io/v1
27
+ kind : ClusterRole
28
+ metadata :
29
+ name : ' {{ include "provider-postgresql.fullname" . }}-edit'
30
+ labels :
31
+ {{- include "provider-postgresql.labels" . | nindent 4 }}
32
+ rbac.authorization.k8s.io/aggregate-to-admin : " true"
33
+ rbac.authorization.k8s.io/aggregate-to-edit : " true"
34
+ rules :
115
35
- apiGroups :
116
36
- postgresql.appcat.vshn.io
117
37
resources :
@@ -124,12 +44,3 @@ rules:
124
44
- patch
125
45
- update
126
46
- watch
127
- - apiGroups :
128
- - postgresql.appcat.vshn.io
129
- resources :
130
- - postgresqlstandalones/finalizers
131
- - postgresqlstandalones/status
132
- verbs :
133
- - get
134
- - patch
135
- - update
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ metadata:
8
8
roleRef :
9
9
apiGroup : rbac.authorization.k8s.io
10
10
kind : ClusterRole
11
- name : {{ include "provider-postgresql.fullname" . }}
11
+ name : {{ include "provider-postgresql.fullname" . }}-manager
12
12
subjects :
13
13
- kind : ServiceAccount
14
14
name : {{ include "provider-postgresql.serviceAccountName" . }}
Original file line number Diff line number Diff line change
1
+ ---
2
+ apiVersion : rbac.authorization.k8s.io/v1
3
+ kind : ClusterRole
4
+ metadata :
5
+ name : ' {{ include "provider-postgresql.fullname" . }}-manager'
6
+ labels :
7
+ {{- include "provider-postgresql.labels" . | nindent 4 }}
8
+ rules :
9
+ - apiGroups :
10
+ - coordination.k8s.io
11
+ resources :
12
+ - leases
13
+ verbs :
14
+ - create
15
+ - get
16
+ - list
17
+ - update
18
+ - apiGroups :
19
+ - " "
20
+ resources :
21
+ - namespaces
22
+ verbs :
23
+ - create
24
+ - delete
25
+ - get
26
+ - list
27
+ - patch
28
+ - update
29
+ - watch
30
+ - apiGroups :
31
+ - " "
32
+ resources :
33
+ - persistentvolumeclaims
34
+ verbs :
35
+ - create
36
+ - delete
37
+ - get
38
+ - list
39
+ - patch
40
+ - update
41
+ - watch
42
+ - apiGroups :
43
+ - " "
44
+ resources :
45
+ - secrets
46
+ verbs :
47
+ - create
48
+ - delete
49
+ - get
50
+ - list
51
+ - patch
52
+ - update
53
+ - watch
54
+ - apiGroups :
55
+ - " "
56
+ resources :
57
+ - services
58
+ verbs :
59
+ - get
60
+ - list
61
+ - watch
62
+ - apiGroups :
63
+ - helm.crossplane.io
64
+ resources :
65
+ - providerconfigs
66
+ verbs :
67
+ - get
68
+ - list
69
+ - watch
70
+ - apiGroups :
71
+ - helm.crossplane.io
72
+ resources :
73
+ - releases
74
+ verbs :
75
+ - create
76
+ - delete
77
+ - get
78
+ - list
79
+ - patch
80
+ - update
81
+ - watch
82
+ - apiGroups :
83
+ - k8up.io
84
+ resources :
85
+ - schedules
86
+ verbs :
87
+ - create
88
+ - delete
89
+ - get
90
+ - list
91
+ - patch
92
+ - update
93
+ - watch
94
+ - apiGroups :
95
+ - postgresql.appcat.vshn.io
96
+ resources :
97
+ - postgresqlstandaloneoperatorconfigs
98
+ verbs :
99
+ - create
100
+ - delete
101
+ - get
102
+ - list
103
+ - patch
104
+ - update
105
+ - watch
106
+ - apiGroups :
107
+ - postgresql.appcat.vshn.io
108
+ resources :
109
+ - postgresqlstandaloneoperatorconfigs/finalizers
110
+ - postgresqlstandaloneoperatorconfigs/status
111
+ verbs :
112
+ - get
113
+ - patch
114
+ - update
115
+ - apiGroups :
116
+ - postgresql.appcat.vshn.io
117
+ resources :
118
+ - postgresqlstandalones
119
+ verbs :
120
+ - create
121
+ - delete
122
+ - get
123
+ - list
124
+ - patch
125
+ - update
126
+ - watch
127
+ - apiGroups :
128
+ - postgresql.appcat.vshn.io
129
+ resources :
130
+ - postgresqlstandalones/finalizers
131
+ - postgresqlstandalones/status
132
+ verbs :
133
+ - get
134
+ - patch
135
+ - update
You can’t perform that action at this time.
0 commit comments